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

Re: flatened hiearchies for xslt2

Subject: Re: flatened hiearchies for xslt2
From: David Carlisle <davidc@xxxxxxxxx>
Date: Thu, 8 Mar 2007 09:56:03 GMT
Re:  flatened hiearchies for xslt2
> First David, yours works fine, but I had to modify
> 
> <xsl:param name="s" select="section"/>
> to
> <xsl:param name="s" select="following-sibling::*"/>

Hmm looks suspicious, it worked as posted on the example you gave
(wherethe top level element (only) was a section that contained the
other section elements as content). If the node on which you start the
grouping is a sibling of the other nodes 9as implied by your change
then the first template that starts the process would need to ensure
that it only applies templates to that node, not to all its siblings.

David



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.