Sign In/My Account | View Cart  
advertisement

Article:
 Sorting in XSLT
Subject: Custom built xsl:sort
Date: 2005-09-07 12:22:45
From: srinivasvemuri
Response to: Custom built xsl:sort

Thanks for the suggestion. Could you explain in detail. I have a different xml file that maps each time period to an integer.
ex. period.xml --->
<entry period="middlebronze">1</entry>
<entry period="byzantine">2</entry>
<entry period="Roman">3</entry>
<entry period="islamic">4</entry>


How do above file in xslt sort based on time period? I am trying something like this!!!!
<xsl:for-each select="timeperiod">
<xsl:sort select='key(?,?)' />
</xsl:for-each>


No Previous Message Previous Message Move up to Parent Message Up Next Message No Next Message


Titles Only Titles Only Newest First
  • Custom built xsl:sort
    2005-09-07 14:02:01 Bob DuCharme

    I haven't followed through on this myself, and doing so and then providing a detailed explanation will take more time than I have available right now. I suggest you try the XSL-list at http://www.mulberrytech.com/xsl/xsl-list/.


Sponsored By: