This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: gettin value of a node
- To: xsl-list at lists dot mulberrytech dot com
- Subject: Re: [xsl] gettin value of a node
- From: David Carlisle <davidc at nag dot co dot uk>
- Date: Sat, 21 Jul 2001 17:50:02 +0100
- References: <F109xavjrRZ1UbDBRAr000021b0@hotmail.com>
- Reply-To: xsl-list at lists dot mulberrytech dot com
<xsl:value-of select="//y[//x=$pos]"/>
> this statement does not work for me it gives me the same value for all
> the y's
firstly your predicate //x does not depend on the current nnode as it is
an absolute path from the root, so clearly will give th esame value
always. But also you don't want to use value-of as that just gives the
string value of the first node selected, and discards all other nodes.
You probably want copy-of or allpy-templates, depending on what you want
to do.
David
_____________________________________________________________________
This message has been checked for all known viruses by Star Internet
delivered through the MessageLabs Virus Scanning Service. For further
information visit http://www.star.net.uk/stats.asp or alternatively call
Star Internet for details on the Virus Scanning Service.
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list