Subject: Re: [xsl] Getting a list of node Text() From: Nicholas Orr <nick@xxxxxxxxxxx> Date: Wed, 20 Jun 2007 09:05:40 +1000 |
-----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, Nick
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] Getting a list of node Te, Houghton,Andrew | Thread | RE: [xsl] Getting a list of node Te, Houghton,Andrew |
RE: [xsl] When/How to use templates, Michael Kay | Date | RE: [xsl] Getting a list of node Te, Houghton,Andrew |
Month |