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

removing superfluous nodes

Subject: removing superfluous nodes
From: "dave peeters" <elechi76@xxxxxxxxxxx>
Date: Tue, 10 Jun 2003 13:45:57 +0200
david peeters
I'm having the following XML

<Chapter>
 <FirstPage>
   <PAGE id="1">
     ...
     <Next>
       <PAGE id="2">
       ...
         <Next>
           <PAGE id="3">
           ...
           </PAGE>
         </Next>
       </PAGE>
     </Next>
   </PAGE>
 </FirstPage>
</Chapter>

The PAGE (and the id attributes) nodes are not necessary and I want to remove them so I get the following

<Chapter>
 <FirstPage>
     ...
     <Next>
       ...
         <Next>
           ...
         </Next>
     </Next>
 </FirstPage>
</Chapter>

With other words I want all the childnodes of all the PAGE nodes moved one level up. Since PAGE nodes contain other PAGE nodes I'm at a loss here.

Anybode has an idea how to solve this I'm not a genius concerning XSLT.

Cheers
Dave

_________________________________________________________________
MSN Zoeken, voor duidelijke zoekresultaten! http://search.msn.be


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.