[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: contains any child nodes attribute value

Subject: Re: contains any child nodes attribute value
From: "Dimitre Novatchev" <dnovatchev@xxxxxxxxx>
Date: Wed, 11 Jun 2003 23:30:57 +0200
check for child nodes
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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.