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 expect. 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 fragments. 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. David ________________________________________________________________________ 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: http://www.star.net.uk ________________________________________________________________________ XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Selecting node at a certa, Marco Guazzone | Thread | Re: [xsl] Selecting node at a certa, Marco Guazzone |
[xsl] Selecting node at a certain p, Marco Guazzone | Date | Re: [xsl] Selecting node at a certa, David Carlisle |
Month |