Subject: Re: [xsl] Accessing attributes From: Joerg Heinicke <joerg.heinicke@xxxxxx> Date: Sat, 10 Aug 2002 00:17:38 +0200 |
Hi all,
How can I access an attribute value inside an if and for-each functions?
For example
<xsl:for-each select="site/passeio/item">
<xsl:choose> <xsl:when test="/site/dadosPasseio/correlato/item[@correlato = @idPasseio]"> <option value="{@idPasseio}" selected="selected"><xsl:value-of select="@passeio"/></option> </xsl:when> <xsl:otherwise> <option value="{@idPasseio}" ><xsl:value-of select="@passeio"/></option> </xsl:otherwise> </xsl:choose>
</xsl:for-each>
@correlato belongs to if and @idPasseio belongs to for-each...
Thanks
Durand
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Accessing attributes, Carlos Durand | Thread | Re: [xsl] Accessing attributes, Charles Knell |
Re: [xsl] Formatting Objects Implem, Oleg Tkachenko | Date | Re: [xsl] xslt pagnation help..., Joerg Heinicke |
Month |