[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
> 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|