|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: HTML sortable columns
Thanks. The developer is currently planning to generate multiple HTML
files with pre-sorted, which seems a little silly to me. I was hoping
to suggest XML/XSL as an alternative, as I would really expect it to be
possible with these tools. For instance, assuming the following
simplified XML:
<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? Thanks again, -John Jarno.Elovirta@xxxxxxxxx wrote: Hi,
|
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








