[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Tables Again
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
|
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
|