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

from random tags to an ordered tags

Subject: from random tags to an ordered tags
From: yan bai <bytj@xxxxxxxxx>
Date: Thu, 11 Oct 2001 11:44:59 -0700 (PDT)
libxslt random
Hi, Gurus, 

I have a source file in .xml type.  Except the root
element <root_elem>......</root_elem>, all elements
come in a time sequence from a server.  For instance,
<root_elem>
<tag_0 id="b12313" seq="1" content="Here is the
summary the the book"/>
<tag_5 id="i234234" seq="2" information="here is some
info"/>
<tag_2 id="b12334" seq="3" name="The book title here:
A"/>
<tag_8 id="b12337" seq="4" name="Here is a
publisher"/>
<tag_4 id="b34533" seq="5" name="here is the date"/>

.
.
.
</root_elem>

Please note <tag_0>, <tag_1>, ..., <tag_x> comes in a
random sequence.  Any tag may come before another in
this source .xml file.  the attribute "seq" indicates
in the order of tags.

I need to use xslt to transform these tags into a
well-formed xml file according to the sequence
attribute "seq".  Whatever tag comes the first, it
needs to be the first tag in the destination xml file.

Anyone knows how?

Thanks a ton in advance.



__________________________________________________
Do You Yahoo!?
Make a great connection at Yahoo! Personals.
http://personals.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.