|
Subject: [xsl] Re: contains any child nodes attribute value From: "Dimitre Novatchev" <dnovatchev@xxxxxxxxx> Date: Wed, 11 Jun 2003 23:30:57 +0200 |
In case you just want to know that at least one node satisfies the
condition, you can use:
1. the "someTrueP" template from FXSL
2. Something like this:
<xsl:variable name="vsomeTrue">
<xsl:for-each select="$node-set-to-test">
<xsl:if test="condition">1</xsl:if>
</xsl:for-each>
</xsl:variable>
The above is just pseudocode, because "condition" must be replaced by some
XPath expression.
Then the value of $vsomeTrue will evaluate to true if at least one of the
tests succeeded (non-empty string), and false otherwise (empty string).
3. I guess in XPath 2/XSLT 2 there is a more elegant way to do this.
=====
Cheers,
Dimitre Novatchev.
http://fxsl.sourceforge.net/ -- the home of FXSL
"florian" <csshsh@xxxxxxxxxxxxxxx> wrote in message
news:3F8CD58A-9C2E-11D7-B683-000393C79362@xxxxxxxxxxxxxxxxxx
> i just wanted to add to the last mail: i dont only
> wanna check the first bars name value.. i want
> to check if any of the bars name value appears
> in the foo name value..
>
>
> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
>
>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: [xsl] contains any child nodes , florian | Thread | RE: [xsl] XSLT real time use of XML, HEATH ALLISON |
| [xsl] Re: Re: xsl:for-each evaluato, Dimitre Novatchev | Date | Re: [xsl] redundancy in string(numb, Robert P. J. Day |
| Month |