Subject: [xsl] Re: Organizing list of items in HTML table From: "Yang" <sfyang@xxxxxxxxxxxxx> Date: Fri, 28 Sep 2001 11:11:01 +0800 |
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@xxxxxxxxxxxxx XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] ancestor question, Amy Kaizerman | Thread | [xsl] Global disable-output-escapin, Joshua . Kuswadi |
Re: [xsl] "apply-templates" doesn't, Wendell Piez | Date | [xsl] Global disable-output-escapin, Joshua . Kuswadi |
Month |