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

formatting of lists

Subject: formatting of lists
From: Dieter Böll <dieter.boell@xxxxxx>
Date: Tue, 06 Sep 2005 18:57:21 +0200
formating a lists
Dear community

I have following problem.

It is a list of elements given e.g.

  <people>
    <person id="id1" name="John"/>
    <person id="id2" name="Peter"/>
    <person id="id3" name="Anne"/>
    <person id="id4" name="Joan"/>
    <person id="id5" name="Pit"/>
    <person id="id6" name="Jeff"/>
    <person id="id7" name="Chris"/>
    <person id="id8" name="Elke"/>
    <person id="id9" name="Mark"/>
    <person id="id10" name="Frank"/>
    <person id="id11" name="Tom"/>
    <person id="id.." name=".."/>
  </people>

The aim is to generate a table in HTML with 3 or 4 columns but so many rows as
necessary.
Like that:
    <table>
      <tbody>
        <tr>
          <td>John</td>
          <td>Peter</td>
          <td>Anne</td>
        </tr>
        <tr>
          <td>Joan</td>
          <td>Pit</td>
          <td>Jeff</td>
        </tr>
        <tr>
          <td>Chris</td>
          <td>Elke</td>
          <td>Mark</td>
        </tr>
        <tr>
          <td>Frank</td>
          <td>Tom</td>
        </tr>
      </tbody>
    </table>

Sorry but I have no idea how to do that with xslt :(
I am thankful for every help.

Many thanks in advance

  Dieter
_________________________________________________________________________
Mit der Gruppen-SMS von WEB.DE FreeMail kvnnen Sie eine SMS an alle
Freunde gleichzeitig schicken: http://freemail.web.de/features/?mc=021179

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.