[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

Subject: RE: Need to Transform a Flat XML Struture to a Hierarchical One
From: Jarno.Elovirta@xxxxxxxxx
Date: Thu, 27 Mar 2003 13:04:43 +0200
prefix 0040
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


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.