[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Building tables with XSLT
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... ;-) Juggy 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
|