From: Ziad EL KHATIB (z.elkhatib@vivacances.fr)
Date: 15/12/2003 - 16:04
Quelqu'un sait il pourquoi ce code est considéré comme invalide dans mon éditeur XMLSpy ? Il me dit que "$titleValue "invalid variable reference"...
Voici mon code:
<select>
<xsl:attribute name="name">CABIN</xsl:attribute>
<xsl:attribute name="checked"><xsl:value-of select="./CABIN_OUT/CODE"/></xsl:attribute>
<xsl:attribute name="class">content_listbox</xsl:attribute>
<xsl:call-template name="selection">
<xsl:with-param name="tag"><xsl:value-of select="./CABIN_OUT/CODE"/></xsl:with-param>
<xsl:with-param name="valeur">B</xsl:with-param>
<xsl:with-param name="titleValue">Business</xsl:with-param>
</xsl:call-template>
<xsl:call-template name="selection">
<xsl:with-param name="tag"><xsl:value-of select="./CABIN_OUT/CODE"/></xsl:with-param>
<xsl:with-param name="valeur">E</xsl:with-param>
<xsl:with-param name="titleValue">Economique</xsl:with-param>
</xsl:call-template>
<xsl:call-template name="selection">
<xsl:with-param name="tag"><xsl:value-of select="./CABIN_OUT/CODE"/></xsl:with-param>
<xsl:with-param name="valeur">F</xsl:with-param>
<xsl:with-param name="titleValue">Première</xsl:with-param>
</xsl:call-template>
</select>
<xsl:template name="selection">
<xsl:param name="valeur" />
<xsl:param name="tag" />
<option>
<xsl:attribute name="value"><xsl:value-of select="$valeur" /></xsl:attribute>
<xsl:choose>
<xsl:when test="$tag=$valeur">
<xsl:attribute name="selected">selected</xsl:attribute>
</xsl:when>
</xsl:choose>
<xsl:value-of select="$titleValue" />
</option>
</xsl:template>
--
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)
Archive générée par hypermail 2.1.3 le 28/06/2004 - 11:06 UTC
webmaster@xmlfr.org
|