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

Re: Getting a list of node Text()

Subject: Re: Getting a list of node Text()
From: Nicholas Orr <nick@xxxxxxxxxxx>
Date: Wed, 20 Jun 2007 09:05:40 +1000
Re:  Getting a list of node Text()
On 20/06/2007, at 8:51 AM, Houghton,Andrew wrote:

-----Original Message-----
From: Nicholas Orr [mailto:nick@xxxxxxxxxxx]

Essentially I'm trying to get a <Calculation> node which will
be a child node of the current one.  But the issue is that
there will sometimes be one calculation node, and sometimes
multiple nodes.  And
they're not always just child nodes, they might be sub child nodes.
So I might have for my path :

./Calculation

or

./Value/Calculation
./StartPosition/Calculation

I think you are over thinking the problem. If all you want is the text from all the elements named Calculation then you should be able to do:

./descendant-or-self::Calculation/text()

Thanks, but in my testing this only returns the first Calculation node, not all of them. I need all of them in a return separated list...


Thanks,
Nick

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.