[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: contains any child nodes attribute value
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
|
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
|