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

Re: re-ordering nodes

Subject: Re: re-ordering nodes
From: Srinivasan Guruswami - CSIS Fellow <srini@xxxxxxxxxxxxxxxxx>
Date: Wed, 19 Dec 2001 18:04:33 -0500 (EST)
srinivasan guruswami
> > The goal is to re-group all the <o> nodes at the first level from
> > the root node. The relative order is not so much of a concern at
> > this time.
> 
> You can select all the o elements in your source document, at whatever
> level, with:
> 
>   <xsl:copy-of select="//o" />

Thanks Jeni. However, it is not quite what I wanted.

"<o>" elements can nest other "<o>" elements as well, among other several
tags. It seems like <xsl:copy> will copy the entire contents of the "<o>"
element, including nested "<o>" tags. But, that is not the desired
behavior.
All "<o>" nodes should be re-ordering at the first level from the
root. Other tags inside the "<o>" elements are to be preserved in the same
parent node.

Thanks for your help,
-Srini

> 
> Jeni
> 
> ---
> Jeni Tennison
> http://www.jenitennison.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.