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

grouping and sorting milestone elements

Subject: grouping and sorting milestone elements
From: Fred Boon <fredboon@xxxxxxxxx>
Date: Mon, 22 Jan 2001 11:55:08 -0800 (PST)
 grouping and sorting milestone elements
Can anyone help with the following transformation,
please?

input:
<text>
 <chapter>
  <page n="1"/>
  page1Text
  <page n="2"/>
  page2Text
  <page n="3"/>
  page3Text
  <page n="4"/>
  page4Text
 </chapter>
</text>

desired output:

<pageLayout>
 <pageGroup n="1">
  <page n="1">page1Text</page>
  <page n="2">page2Text</page>
 </pageGroup>

 <pageGroup n="2">
  <page n="3">page3Text</page>
  <page n="4">page4Text</page>
 </pageGroup>
</pageLayout>

There should never be an odd number of <page> elements
so not catching the exception is not necessary.
Desireable, yes, but not necessary.

I tried modifing the XSLT code from a previous post by
Jeni Tennison 010119 in reply to changing <br/>s to
<p>...</p>, but to no avail.

thanks,

fred

__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - Buy the things you want at great prices. 
http://auctions.yahoo.com/

 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.