[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Selecting node at a certain position from a nodese

Subject: Re: Selecting node at a certain position from a nodeset
From: David Carlisle <davidc@xxxxxxxxx>
Date: Wed, 22 Jan 2003 13:06:51 GMT
xsl selecting node position
> 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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.