"Joris Gillis" <ro**@pandora.be> дÈëÓʼþ
news:op**************@news.pandora.be...
Tempore 20:24:12, die Monday 28 February 2005 AD, hinc in foro
{comp.text.xml} scripsit Li Ming <ra*******@eyou.com>: <category>
<cd type="pop">Pop music</cd>
<cd type="rock">Rock</cd>
<cd type="classical">Classical music</cd>
</category>
Yes it's perfect and thanks for your reply. But if the element of <category>
is the first element in the xml document, and I want it appear in the last
in my html file, what should I do? I mean, the xml is:
<shop name="myshop">
<category>
<cd type="pop">Pop music</cd>
<cd type="rock">Rock</cd>
<cd type="classical">Classical music</cd>
</category>
<welcome>Welcome to myshop</welcome>
<content>
<headline>Music CD</headline>
<cdshelf>
<disc name="CCC" cg="pop"/>
<disc name="BBB" cg="pop"/>
<disc name="AAA" cg="pop"/>
<disc name="DDD" cg="classical"/>
<disc name="EEE" cg="rock"/>
<disc name="FFF" cg="classcial"/>
<disc name="GGG" cg="pop"/>
</cdshelf>
</content>
</shop>
And I want the desired html web page to be:
Welcome to myshop
Music CD
Pop music:
1. CCC
2. BBB
3. AAA
4. GGG
Rock:
1. EEE
Classical music:
1. DDD
2. FFF
Because <category> element appears before <welcome> element, so it is
matched first and displayed before <welcome>. Can I display it in the order
that I like, just as the output above, without modifying the layout of the
xml document (even the element order)? Thank you.