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

RE: xpath help?

Subject: RE: xpath help?
From: "Michael Kay" <mhk@xxxxxxxxx>
Date: Wed, 9 Jul 2003 19:28:30 +0100
ct.id
Really imaginative subject titles we're seeing today.

> How do I get all possible sizes from the following XML
> using only one xPath given the criteria of
> ot[@id = 2 or @id  = 3] and ct[@id = 1]?
> 
> so, I'd want size id's = (2,4)??

It's far from clear from this description what your actual criteria are,
but how about

/hls/hl[ots[ot/@id="2" or ot/@id="3"] and cts[ct[@id=1]]/sizes/size/@id

Michael Kay

> 
> thanks in advance.
> 
> 
> <hls>
>   <hl>
>     <ots>
>        <ot id="2"/>
>        <ot id="3"/>
>     </ots>
>     <cts>
>        <ct id="1"/>
>        <ct id="5"/>
>     </cts>
>     <sizes>
>        <size id="2"/>
>        <size id="4"/>
>     </sizes>
>   </hl>
>   <hl>
>     <ots>
>        <ot id="2"/>
>        <ot id="4"/>
>     </ots>
>     <cts>
>        <ct id="2"/>
>        <ct id="5"/>
>     </cts>
>     <sizes>
>        <size id="3"/>
>        <size id="8"/>
>     </sizes>
>   </hl>
> </hls>
> 
> __________________________________
> Do you Yahoo!?
> SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com
> 
>  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.