Re: [xsl] Selecting node at a certain position from a nodeset

Subject: Re: [xsl] Selecting node at a certain position from a nodeset
From: David Carlisle <davidc@xxxxxxxxx>
Date: Wed, 22 Jan 2003 13:06:51 GMT
> Hi David,
>   so how do you solve this problem?

You haven't said what the problem is, only that some expression did not
generate the result you expected. But I don't know what result you did

In particular if the third version produced what you want, why can't you
use that? (Actually you probably want the third expression without teh
node-set function (but still with the brackets).

>  Is the exsl:node-set solution the better one

I can't see that node-set is relevant here at all. that converts result
tree fragments to node sets, but you don't have any result tree

The subject line of this thread is confusing as "position" in XPath
normally relates to the position() function, but position() does not
correspond to a position in a document. it just refers to teh current
node list, for example the position() of any node selected by . is
always 1 as . selects a node list of 1 so teh node is always the first
(and only) node in the current node list.


This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:

 XSL-List info and archive:

Current Thread