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

RE: Using position() with sorted node

Subject: RE: Using position() with sorted node
From: Jenny Simpson <simpson@xxxxxxxxxxx>
Date: Wed, 14 Mar 2001 10:35:55 -0700
xsl access node using position
Thanks for the suggestions on this problem.  Instead of using
position() to identify sorted nodes, I ended up just assigning
unique numerical identifiers (in this case the date stamp) to each
node and accessing them that way.  This makes the processing/sorted
order unimportant.  Unsurprisingly, this is a simple solution for what
seemed like a complicated problem.  Thanks.

Jenny Simpson
SCI Institute
 
 
> On Wed, 14 Mar 2001, Michael Kay wrote:
> 
> > > position() does return the position of the current node in
> > > the current node
> > > list (which is created using an <xsl:apply-templates> or
> > > <xsl:for-each> with
> > > or without any <xsl:sort> elements.) Unfortunately, sorting
> > > the node list
> > > makes accessing the preceding nodes rather tricky since the
> > > preceding and
> > > preceding-sibling axes work on the document and not the
> > > sorted node list.
> > 
> > I think the only way of accessing the preceding node in sorted order is to
> > create a sorted copy of the original data and then process this using the
> > node-set() extension function. Either that, or find a different solution to
> > the requirement.
> > 
> > Mike Kay
> > Software AG
> > 
> > 
> >  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> > 
> 
> 


 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.