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

RE: Flow data in table

Subject: RE: Flow data in table
From: "Andreas L. Delmelle" <a_l.delmelle@xxxxxxxxxx>
Date: Wed, 12 Nov 2003 09:24:03 +0100
flow data co.
> -----Original Message-----
> From: Andrew Glass
>
> I am trying to flow a set of data through a table by rows and
> columns. I am having trouble working out how to trigger a new row.
>
> I would like to have results appear in sequence as follows:
>
> 1 2 3 4 5
> 6 7 8 9 10
> 11 12  etc.
>
> I have looked at various approaches including fo:flow, fo:table,
> but my tests with these have not brouth results, or I have not
> understood how I can apply to my situation. Surely others have
> encountered this problem?
>

Hi,

Check http://www.dpawson.co.uk/xsl/sect2/N7450.html#d8136e352

to find out how to process every five elements as a group, then, create a
template for the data elements that generates a <td/>, and use a modified
version of the <xsl:for-each > example on the page...

draft

<xsl:template match="modified">
  <xsl:for-each select="data[position() mod 5 = 1]">
    <tr>
      <xsl:apply-templates select=". | following-sibling::data[position()
&lt; 5]" />
    </tr>
  </xsl:for-each>
</xsl:template>

<xsl:template match="data">
  <td width="20%">
    <i>&#xA0;
	<xsl:value-of select="rm"/>
    </i>&#xA0;
    <span style="font-size: 22pt">
      <font face="Schoyen01"><xsl:value-of select="kh"/></font>
    </span>
  </td>
</xsl:template>

Hope this helps!

Greetz,

Andreas Delmelle


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