Re: HTML sortable columns
<table> <row> <column sortid="1">value</column> <column sortid="2">value</column> </row> <row> <column sortid="1">value</column> <column sortid="2">value</column> </row> </table>
If the application server passes a valid sortid value, shouldn't it be possible to have multiple sorts in the XSL, or sort using the parameter as criteria? What I type below is just "pseudo code" as this really isn't my problem and I don't have time to test. Sorry for my for-each but I'm not yet good with apply-templates.
<xsl:param name="sortid" select="'1'" />
<xsl:for-each select="/table/row/column[@sortid=$sortid"]> <xsl:sort select="text()" /> <xsl:call-template name="row" /> </xsl:for-each>
The row template would need to know about the column's siblings. Seems possible, what am I missing?
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