[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] How do I check to see if any of my descendants contain
I am trying to check me XML to see if any of the descendants contain a certian value. The XML is: <root> <type> <id>5</id> <inUse>0</inUse> <childTypes> <key>1</key> <value> <type> <id>6</id> <inUse>1</inUse> <childTypes> <key>4</key> <value> ...... </value> </childTypes> </type> </value> </childTypes> </type> </root> I can have unlimited Child Types in each type. When I get to a certain type, I want to check and see if this node or any descendants of this node has a value of 0 for the inUse node. This is what I tried but it did not work: <xsl:if test="descendant-or-self::inUse = 0"> </xsl:if> Is there any way to do this? Thank you, Rich
|
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
|