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

Re: Re: Réf.[2]_:_Réf.[2]_:_Transforming_non_structure

Subject: Re: Re: Réf.[2]_:_Réf.[2]_:_Transforming_non_structured_XML_into structured XML with XSLT
From: Dimitre Novatchev <dnovatchev@xxxxxxxxx>
Date: Thu, 9 Aug 2001 06:29:23 -0700 (PDT)
Re:  Re: Réf.[2]_:_Réf.[2]_:_Transforming_non_structure
> While this works for the first level, it does not for the seccond, or
> how would you represent my full example above:
> 
> <row folder1="ROOT" folder2="f1"/>
> <row folder1="f1"   folder2="f2"/>
> <row folder1="f2"   folder2="f3"/>
> <row folder1="f3"   folder2="f4"/>
> <row folder1="ROOT" folder2="f2"/>
> <row folder1="f2"   folder2="f4"/>
> 
> could also describe:
> 
> /
> +- f1
> |  `- f2
> |     +- f3
> |     |  `- f4
> |     `- f4      
> `- f2
> 

No, not if there's the convention that the order of "row" elements is according to a
depth-first traversal.

In this case your last example will be represented as:
 <row folder1="ROOT" folder2="f1"/>
 <row folder1="f1"   folder2="f2"/>
 <row folder1="f2"   folder2="f3"/>
 <row folder1="f3"   folder2="f4"/>
 <row folder1="f2"   folder2="f4"/>
 <row folder1="ROOT" folder2="f2"/>

I agree that this is getting off-topic.

Cheers,
Dimitre Novatchev.


__________________________________________________
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/

 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.