[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

[xsl] finding attributes values


Subject: [xsl] finding attributes values
From: Carlos Durand <groupdurand@xxxxxxxxxxxx>
Date: Wed, 7 Aug 2002 13:17:13 -0300 (ART)

Hi people,

for example:

<root>
   <item id="1"/>
   <item id="2"/>
   <item id="3"/>
   <item id="4"/>
</root>

how can I know if exists an id with specific value

I'm trying this...

<xsl:if test="root/item[@id = '2']">
   ...
</xsl:if>

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



Current Thread