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

RE: Dynamic Table

Subject: RE: Dynamic Table
From: Pieter Reint Siegers Kort <pieter.siegers@xxxxxxxxxxx>
Date: Mon, 20 Dec 2004 11:37:36 -0600
xsl dynamic table
Hi Frangois,

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

HTH,
<prs/>

-----Original Message-----
From: Frangois Torche [mailto:torche@xxxxxxxxxx]
Sent: Monday, December 20, 2004 11:21 AM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject:  Dynamic Table

Hello,

I have a very basic XML document that looks like:
<domain>
  <variable> abc </variable>
  <variable> def </variable>
  <variable> ghi </variable>
  <variable> abcdefgh </variable>
  <variable> abcdef </variable>
  <variable> abc </variable>
  ...
</domain>

And I would like to create an HTML table with, for example, 3 columns. Each
column can contain 3 characters max. The result of my transformation should
look like:
<table>
  <tr>
    <td> abc </td>
    <td> def </td>
    <td> def </td>
  </tr>
  <tr>
    <td colspan = "3"> abcdefgh </td>
  </tr>
  <tr>
    <td colspan = "2"> abcdef </td>
    <td> abc </td>
  </tr>
</table>

I don't have a clue how to dynamically determine the colspan attribute and
start a new row if there is not enough room to put the content of a
variable.

Many thanks in advance for your help,
Frangois

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.