xpath on the fly 2003-02-13 - By John Ollier
Thanks for that. The current node is <childID>.
However , <xsl:value-of select="/page/node[@(protected)=.]/left"/> outputs nothing in the output tree and to="{/page/node[@(protected)=.]/left}" outputs NaN
John
David Marston/Cambridge/IBM wrote: > > > >>What I want to do is produce: >> <line from="350" to="150" /> >>i.e. take some data from the first <node> and some from the <node> >>with @(protected)=chest_1_2 that being the id stored in the <childID> element >>of the first Node. > > > What will be your current node at the time that you want to produce > that output? If it's the first <node>, I'd think something like this > would do it: > <line > from="{left}" > to="{../node[@(protected)=./childID[1]]/left}" > /> > You can build up to this by first working out the expression that gets > the ID value you want to match. > .................David Marston > >
-- Capula Elan Palmerston Court Palmerston Way London SW8 4AJ
www.capula.co.uk doing IT for you in healthcare
phone: [+44 ] 020 7840 6200 fax: [+44] 020 7840 6222
|
|