[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Getting a list of node Text()
> -----Original Message----- > From: Nicholas Orr [mailto:nick@xxxxxxxxxxx] > Sent: 19 June, 2007 18:45 > To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx > Subject: Getting a list of node Text() > > 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() Andy.
|
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
|