Subject: [xsl] populating table with sorted elements From: "Christian Marc Schmidt" <christianmarc@xxxxxxxxx> Date: Sat, 29 Jul 2006 10:43:07 -0400 |
I am a newcomer to XML/XSLT and am struggling with a bit of code in which I am attempting to populate a six-column table, while allowing an xsl:sort.
<?xml version="1.0" encoding="utf-8"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<table width="970" border="0" cellspacing="0" cellpadding="0"> <xsl:for-each select="xml/work/*[position() mod 6 = 1]"> <tr> <xsl:apply-templates select=".|following-sibling::*[position() < 6]" /> </tr> </xsl:for-each> </table>
<xml> <work> <piece> </piece> <piece> </piece> ... </work> </xml>
How would I go about adding sort functionality? It seems like it would be easy enough, yet all of my attempts so far have failed...
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Occurences of comma-separated, Smoother | Thread | Re: [xsl] populating table with sor, andrew welch |
[xsl] Occurences of comma-separated, Smoother | Date | [xsl] Occurences of comma-separated, Smoother |
Month |