This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Organizing list of items in HTML table
- To: <xsl-list at lists dot mulberrytech dot com>
- Subject: [xsl] Re: Organizing list of items in HTML table
- From: "Yang" <sfyang at unisvr dot net dot tw>
- Date: Fri, 28 Sep 2001 11:11:01 +0800
- Reply-To: xsl-list at lists dot mulberrytech dot com
Hi,Ron
A nice xslt for the problem you are addressing has been given by Dimitre
http://sources.redhat.com/ml/xsl-list/2001-07/msg01845.html
you get The included multiple-column-template.xsl from this post,
and work with following revised listing.
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:include href="multiple-column-template.xsl"/>
<xsl:output omit-xml-declaration="yes"/>
<xsl:variable name="source" select="/imageList/image"/>
<xsl:variable name="numCols" select="3"/>
<xsl:template match="/">
<table>
<xsl:apply-templates mode="multiColumn"
select="$source">
<xsl:with-param name="numCols" select="$numCols"/>
<xsl:with-param name="nodes"
select="$source"
/>
</xsl:apply-templates>
</table>
</xsl:template>
</xsl:stylesheet>
Hope you can find it useful.
Cheers,
Sun-fu Yang
sfyang@unisvr.net.tw
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list