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

Re: XSL equivalent of SQL having

Subject: Re: XSL equivalent of SQL having
From: Francesco Barresi <kywocs@xxxxxxxxx>
Date: Wed, 22 Sep 2004 13:00:28 -0400
sql having
Hi John,

Yes, just use the XPath expresion: 

//two[child::*]
or
//two[child::three]
or
/one/two[child::*]
or
/one/two[child::three]

Any of this should work to match those elements <two> that have children.

Bye
Francesco.


On Wed, 22 Sep 2004 12:49:46 -0400, john-xsl-list
<john-xsl-list@xxxxxxxx> wrote:
> I want to process all second level nodes that have children.  Is there an
> XPath to retrieve all nodes having children, or do I add logic to ignore
> nodes without children after the XPath has already been evaluated?
> 
> <one>
>   <two>
>     <three>
>   </two>
>   <two />
>   <two>
>     <three>
>   </two>
> </one>
> 
> Is there an XPath that will only return the first and third instances of
> <two>?
> 
> 



-- 
www.GetFirefox.com !!

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.