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

Re: problems in loop creation in a table--help require

Subject: Re: problems in loop creation in a table--help required..
From: "Yang" <sfyang@xxxxxxxxxxxxx>
Date: Sun, 30 Sep 2001 13:42:16 +0800
table creation using for loop
Re: problems in loop creation in a table--help required..

Praveen;

Hopefully you can get your problem solved using suggestions as:

1.  correct the xsl space name  by Chris, Bayes
2   change 'call-template' to 'apply-templates', and 'match'  to 'select' by
Paul Tyson
3.  using generic xslt by Dimitre  (msg01259.html) in following way:

  <xsl:param name="numCols" select="4" />
  <xsl:variable name="source"
select="/configuration_package/configuration/subsystem_id" />
  on the top of your xslt

  Replacing all subsystm id template in your original xslt  with
      <xsl:call-template name="subsystem"/>

  and after the template,  append the named templated subsystem as following

  <xsl:template name="subsystem">
     <xsl:template name="subsystem">
            <xsl:apply-templates mode="multiColumn"
                                 select="$source[position() &lt;=$numCols]">
                <xsl:with-param name="numCols" select="$numCols" />
                <xsl:with-param name="nodes" select="$source" />
            </xsl:apply-templates>
   </xsl:template>

   <xsl:template mode="multiColumn" match="*">
    then  using Dimitre code here    ..

 4.  Do your part in reading material about using xslt element, xpath
commands
     for your goods in the long run.
     Or you can take hard-wired approach as suggested by Paul.

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-2007 All Rights Reserved.