|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Need to Transform a Flat XML Struture to a Hierarc
Hi, > I'm using TIBCO Business Works and unsure of the XSLT processor. I'm > attempted to create a hierarchical XML document containing > nested elements > from a flat document. [snip] > Desired Result Structure: > > <0010> An XML element name cannot start with a digit. > <prefix>chunk of data</prefix> > <rec_nbr>0010</rec_nbr> > <data>another chunk of data</data> > </0010> > <0020> > <prefix>chunk of data</prefix> > <rec_nbr>0020</rec_nbr> > <data>another chunk of data</data> > <0030> > <prefix>chunk of data</prefix> > <rec_nbr>0030</rec_nbr> > <data>another chunk of data</data> > <0040> > <prefix>chunk of data</prefix> > <rec_nbr>0040</rec_nbr> > <data>another chunk of data</data> > </0040> > </0030> > </0020> > <0010> > <prefix>chunk of data</prefix> > <rec_nbr>0010</rec_nbr> > <data>another chunk of data</data> > </0010> > <0020> > <prefix>chunk of data</prefix> > <rec_nbr>0020</rec_nbr> > <data>another chunk of data</data> > ... > </0020> [snip]> > I'm not sure how to nest a <0030> in a <0020> and a <0040> in > a <0030> and > control the opening and closing of the container tags - > <0020> and <0030> > being the containers for <0030> and <0040> respectively. What's the logic? Every row with rec_nbr greater than 0010 will contain the following rows with even greater rec_nbr inside it? Cheers, Jarno - VNV Nation: Cold (MIG-29 mix) 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








