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

RE: Variable containing sorted node-set?

Subject: RE: Variable containing sorted node-set?
From: "Michael Kay" <mhkay@xxxxxxxxxxxx>
Date: Mon, 15 Oct 2001 16:29:07 +0100
xslt variable containing node set
> The document is marked up with <index> tags. In others
> languages, it would
> be natural to put these elements in a list and sort the list.
> And *then*
> doing smart things with that sorted list. I have found no way
> of doing this
> in XSLT. Is it possible to get a variable of sorted <index> elements?

XSLT 1.0 has five data types: boolean, number, string, node-set, and
result-tree-fragment. Node-sets are no use to you here, because by
definition sets don't hold ordering information. Your best bet is a result
tree fragment; though this can only hold copies of the original nodes rather
than references to them; and you need the xx:node-set() extension to process
the RTF.

Mike Kay


 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.