Subject: Re: Tables Again From: David Carlisle <davidc@xxxxxxxxx> Date: Wed, 5 May 1999 17:01:30 +0100 (BST) |
something like this? David <xsl:stylesheet xmlns:xsl="http://www.w3.org/XSL/Transform/1.0" xmlns="http://www.w3.org/TR/REC-html40" result-ns=""> <xsl:variable name="n" expr="3"/> <xsl:template match="doc"> <table> <xsl:call-template name="grab-row"> <xsl:param name="x" expr="0"/> </xsl:call-template> </table> </xsl:template> <xsl:template name="grab-row"> <xsl:param-variable name="x"/> <tr> <xsl:for-each select="*[position() <= ($n+$x) and position() > $x]"> <td><xsl:value-of select="@value"/></td> </xsl:for-each> </tr> <xsl:if test="count(*) > $x"> <xsl:call-template name="grab-row"> <xsl:param name="x" expr="$x + $n"/> </xsl:call-template> </xsl:if> </xsl:template> </xsl:stylesheet> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Tables Again, John Kohler | Thread | Re: Tables Again, Steve Muench |
Re: Creating HTML FORM with DataCha, John E. Simpson | Date | RE: Creating HTML FORM with DataCha, Rob Nichols |
Month |