|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Sort By Multiple Values?
Quoting "Bjorndahl, Brad" <brad.bjorndahl@xxxxxxxxxxxxxxxx>:
Thanks, but when I put it in, it made no difference. What is stranger is, it appears that when as Abel said, telling me to insert inHi, Your sort statement should probably be something like: <xsl:sort select="ability/@rank" order="ascending"/> because the language element does not have a rank attribute. <xsl:sort select="type" order="ascending"/> after the <xsl:sort select="ability/@rank" order="ascending"/>, it generates a different order compared with the one without before. Before, XML 1.0 was the first element that is on the left, but now is HTML. However, what it does not do is that it should have kept CSS in the first one, since it has the same ranking. What have I done wrong? Here is the document again: <computer>
<language>
<ability rank="1">XML 1.0</ability>
<type>XML</type>
</language>
<language>
<ability rank="1">XSLT 1.0</ability>
<type>XML</type>
</language>
<language>
<ability rank="2">XSLT 2.0</ability>
<type>XML</type>
</language>
<language>
<ability rank="1">HTML 4.01 / XHTML 1.0</ability>
<type>HTML</type>
</language>
<language>
<ability rank="1">CSS</ability>
<type>HTML</type>
</language>Brad
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








