|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Accessing attributes
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
_______________________________________________________________________
Yahoo! PageBuilder
O super editor para criação de sites: é grátis, fácil e rápido.
http://br.geocities.yahoo.com/v/pb.html
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








