Subject: Re: [xsl] How do I check to see if any of my descendants contain a certain value? From: Abel Braaksma <abel.online@xxxxxxxxx> Date: Fri, 03 Aug 2007 15:36:29 +0200 |
Richard Sayre wrote:I am trying to check me XML to see if any of the descendants contain a certian value.
<snip />
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">
Change it to the following and you should be fine (you are looking for string, not for a number):
<xsl:if test="descendant-or-self::inUse = '0'" >
Cheers, -- Abel Braaksma
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] How do I check to see if , Abel Braaksma | Thread | [xsl] Image problem in FO, Andy Carr1 |
Re: [xsl] Understanding why <tag></, Andrew Welch | Date | Re: [xsl] Understanding why <tag></, Andrew Welch |
Month |