|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: creating nesting from flat xml
> 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? Yes, it came up yesterday: see http://www.biglist.com/lists/xsl-list/archives/200208/msg01182.html Michael Kay Software AG home: Michael.H.Kay@xxxxxxxxxxxx work: Michael.Kay@xxxxxxxxxxxxxx > > 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 > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








