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

creating nesting from flat xml

Subject: creating nesting from flat xml
From: darrell <ddupasedm@xxxxxxxxxxxx>
Date: Tue, 27 Aug 2002 14:32:20 -0600
darrell dupas
hello xsl list,

this problem has me scratching my head, i do not require a total solution, but perhaps a hint. I have run into mismatched tags quite a bit, i am thinking i have to use position()?

a new <div> is required every time an <a> is encountered

surely this list has seen this before?

thank you in advance.
darrell dupas


===================== <xmlfile type="before-transform" > <a>grp1 title</a> <b>grp1 member a </b> <b>grp1 member b </b> <a>grp2 title</a> <b>grp2 member a </b> <b>grp2 member b </b> <b>grp2 member c </b> <b>grp2 member d </b> <a>grp3 title </a> <b>grp3 member a</b> </xmlfile> ========================= <xmlfile type="desired-result" > <div> <a>grp1 title</a> <b>grp1 member a </b> <b>grp1 member b </b> </div> <div> <a>grp2 title</a> <b>grp2 member a </b> <b>grp2 member b </b> <b>grp2 member c </b> <b>grp2 member d </b> </div> <div> <a>grp3 title </a> <b>grp3 member a</b> </div> </xmlfile>


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.