Bonjour,
Merci bien Dimitri Mouffet pour votre réponse de qualité. Je décris ci-dessous
ce que je fais pour que vous puissiez imaginez.
What I want is exactly the thing Eric Taylor want:
Perhaps just a bizarre idea (novices are good on this front), but is it
possible to add a parameter when opening an xml file so that I can do
something different in the XSL depending on what the parameter is? e.g.
The first, I do in HTML file :
<FORM ACTION="dictionnary.xml" METHOD="?????">
<INPUT TYPE="TEXT" NAME="keyword" value="">
..... button submit : SEARCH for search
</FORM>
and then, in the XML file, there are many data of the dictionnary such
as :
<xml:stylesheet href="dict.xsl">
<WORD>
<ORTH>france</ORTH>
<DEFINE>is a country in the world</DEFINE>
</WORD>
<WORD>
<ORTH>world</ORTH>
<DEFINE>there are many countries in the
world</DEFINE>
</WORD>
...
and then in XSL file, I do :
<xsl:stylesheet ...>
<xsl:param name="keyword"/>
.....
<xsl:for all word in the dictionnary do>
<xsl:if test="$keyword=ORTH">
output the content of word.
</xsl:if>
...
</xsl:for>
yes, that's all. But I can not get the value of the parameter in the XSL
file. That's my problem.
Somme one can help me?
--
NGUYEN Thành Bôn
Institut de la Francophonie pour l'Informatique
Bâtiment D, allée 42, rue Ta Quang Buu, Hanoi, Vietnam
LORIA - Equipe Langue et Dialogue
Campus scientifique
BP 239
54506 Vandoeuvre-lès-Nancy CEDEX
France
--
Devenez redacteur <XML>fr et contribuez au developpement du
xml francophone (http://xmlfr.org/infos/redacteurs/) !
Liste de diffusion "xml-tech@xmlfr.org" (http://xmlfr.org).
Cette liste est a votre disposition pour discuter en francais de
tout sujet technique lie a XML.
Pour resilier votre abonnement, envoyez un message contenant
la commande "unsubscribe" a xml-tech-request@xmlfr.org
(mailto:xml-tech-request@xmlfr.org?Subject=unsubscribe)
Received on Fri Apr 11 15:19:52 2003