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

Re: How Can I Reference previous XML in Subsequent It

Subject: Re: How Can I Reference previous XML in Subsequent Iterations?
From: David Carlisle <davidc@xxxxxxxxx>
Date: Wed, 18 Apr 2007 17:06:53 +0100
Re:  How Can I Reference previous XML in Subsequent  It
> I found out the hard way that a sorted node-set is not iterated in  
> the sorted order,

XSLT has sets, "sets" as always denotes a datatype with no order
property, the set {1,2,3] is the same as the set {2,3,1}.

XSLT2 changes the underlying datatype to sequences which do have an
order, which is sometimes useful when processing sorted data.

> (the libxslt implementation used in PHP  
I believe libxslt supports teh node-set extension function which means
that you can create a document with things in the right order and then
process that (in-memory) document without having to serialise and
re-parse it. This allows you to do a two-stage process, forst sort and
filter then process, without having to use two explict transformation
steps.

David

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.