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

RE: Using node-sets in reverse document order?

Subject: RE: Using node-sets in reverse document order?
From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx>
Date: Mon, 12 Jul 1999 07:53:29 -0700
RE: Using node-sets in reverse document order?
Hi Mike,

At 99/07/12 09:41 +0100, Kay Michael wrote:
>> How can I do something ... that will order the selected
>> nodes in reverse document order?
>> 
>I don't think the (Apr 21) standard allows it (haven't had a chance to study
>the July 9 version in detail).

In my response to Tony I used XT19990514 that supports XSL19990421:

   http://www.mulberrytech.com/xsl/xsl-list/archive/msg05481.html

In that posting you will see a working solution.

>You can do it in SAXON by exploiting the fact that generate-id() returns
>identifiers that collate in document order. 

My understanding of generate-id() is that it must be used blindly:  values
are not persistent between executions of the stylesheet, but within any one
execution of the stylesheet the value for each node is persistent ... but
that is all.  I believe engines can assign any value they wish and that
their only lexical constraint is that they be parseable as name tokens
(*very* useful for indexes and TOCs), not that they be in any particular
order.

............ Ken

--
G. Ken Holman                    mailto:gkholman@xxxxxxxxxxxxxxxxxxxx
Crane Softwrights Ltd.             http://www.CraneSoftwrights.com/s/
Box 266, Kars, Ontario CANADA K0A-2E0   +1(613)489-0999   (Fax:-0995)
Website:  XSL/XML/DSSSL/SGML services, training, libraries, products.
Publications:   Introduction to XSLT (3rd Edition) ISBN 1-894049-00-4
Next instructor-led training:   MS'99 1999-08-16  MT'99 1999-12-05/06


 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.