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

RE: XSLT 2.0 Grouping in XSLT 1.0 (was TEI > XML)

Subject: RE: XSLT 2.0 Grouping in XSLT 1.0 (was TEI > XML)
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Wed, 13 Apr 2005 09:47:50 +0100
xslt positional grouping
> Is there a way of reproducing the results one gets in XSLT 2.0 (using 
> the various grouping elements and attributes) in XSLT 1.0 
> (where these 
> commands are not available).

It can be done, but it's pretty tough, and I don't have the mental energy
for it this morning. It needs a recursive scan along the sibling axis. Try a
search for "XSLT positional grouping".

Alternatively, you can sometimes turn these positional grouping problems
into conventional value-based grouping problems by devising a suitable key.
For example, to group adjacent bullet elements, the key might be something
et])][1]) - or in English, the identity of the first preceding bullet whose
first preceding element is not a bullet.

Michael Kay

Current Thread


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.
First Name
Last Name
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.