[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Organizing list of items in HTML table

Subject: Re: Organizing list of items in HTML table
From: "Yang" <sfyang@xxxxxxxxxxxxx>
Date: Fri, 28 Sep 2001 11:11:01 +0800
multicolumn select html
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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2011 All Rights Reserved.