Subject: [xsl] custom xsl sorting From: srinivas vemuri <s_vas98@xxxxxxxxx> Date: Wed, 7 Sep 2005 20:01:16 -0700 (PDT) |
Hi, I have to perform xsl sorting based on time period instead of regular ascii or integer based sorting. For ex: According to ascii, BYZANTINE comes before MIDDLE BRONZE. But, according to this sort(time period): MIDDLE BRONZE comes before BYZANTINE. My initial idea is like this. A separate xml: 'period.xml' has this period to ascii mapping. <entry period="middlebronze">1</entry> <entry period="byzantine">2</entry> <entry period="Roman">3</entry> <entry period="islamic">4</entry> ...... ---------------------------------------- Now, my stylesheet should be applied to a dynamic xml page & should order period values occur in that page. <dynamicpage> <val>Roman</val> <val>Islamic</val> <val> byzantine </val> </dynamicpage> desired output after xslt application: byzantine, Roman, Islamic Please help regarding how xslt should look like? __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] Moving an element to a ne, Christopher R. Maden | Thread | RE: [xsl] custom xsl sorting, Michael Kay |
RE: [xsl] Moving an element to a ne, Christopher R. Maden | Date | Re: [xsl] custom xsl sorting, omprakash . v |
Month |