This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

from random tags to an ordered tags


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]