This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: gettin value of a node




		<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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]