|
Subject: Re: [xsl] Building tables with XSLT From: juggy@xxxxxxx Date: Tue, 10 Sep 2002 16:15:35 +0200 |
Grr - of course the name should be "rowdisplay"
<xsl:template name="rowdisplay">
<xsl:param name="pos" />
<xsl:param name="width" />
<xsl:choose>
<xsl:when test="(position()+$width) < last()">
<xsl:for-each select="IMAGES/IMAGE[position() >= $pos and
position() <($pos+$width)">
<td>...put your image...</td>
</xsl:for-each>
</xsl:when>
<xsl:otherwise>
<xsl:variable name="left"><xsl:value-of select="$width- (last() -
(position()))" /></xsl:variable>
<xsl:for-each select="IMAGES/IMAGE[position() >= $pos and
position() <($pos+$width)">
<td>...put your image...</td>
</xsl:for-each>
<td colspan="$left"></td>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
Sorry about that - maybe I'm a little too tired already... ;-)| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: [xsl] Building tables with XSLT, juggy | Thread | [xsl] contains(), Alia Mikati |
| Re: [xsl] Building tables with XSLT, juggy | Date | Re: [xsl] encoding and XSL Transfor, Chuck White |
| Month |