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

Re: Tables Again

Subject: Re: Tables Again
From: David Carlisle <davidc@xxxxxxxxx>
Date: Wed, 5 May 1999 17:01:30 +0100 (BST)
Re: Tables Again
something like this?

David


<xsl:stylesheet 
  xmlns:xsl="http://www.w3.org/XSL/Transform/1.0"
  xmlns="http://www.w3.org/TR/REC-html40"
  result-ns="">

<xsl:variable name="n" expr="3"/>
 
<xsl:template match="doc">
  <table>
    <xsl:call-template name="grab-row">
      <xsl:param name="x" expr="0"/>
    </xsl:call-template>
  </table>
</xsl:template>

<xsl:template name="grab-row">
  <xsl:param-variable name="x"/>
  <tr>
    <xsl:for-each select="*[position() &lt;= ($n+$x) and position() > $x]">
      <td><xsl:value-of select="@value"/></td>
    </xsl:for-each>
  </tr>
  <xsl:if test="count(*) > $x">
    <xsl:call-template name="grab-row">
      <xsl:param name="x" expr="$x + $n"/>
    </xsl:call-template>
  </xsl:if>
</xsl:template>


</xsl:stylesheet>


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread
  • Tables Again
    • John Kohler - Wed, 5 May 1999 08:54:06 -0600
      • David Carlisle - Wed, 5 May 1999 17:01:30 +0100 (BST) <=
      • <Possible follow-ups>
      • Steve Muench - 05 May 99 12:11:34 -0700

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