ASP Error: 70
Description: Permission denied
Source: Microsoft VBScript runtime error

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

Formatting in an HTML table...DOWNwise!

Subject: Formatting in an HTML table...DOWNwise!
From: Patrick van Halderen <patrick@xxxxxxxxxxxxx>
Date: Wed, 02 Jul 2003 17:13:39 +0200
html table formatting
Hi list,

I have the following XSLT (well, actually it's a snippet), which formats
some data from XML nicely into an HTML table. However, the data is pasted
left-to-right, while I'd like it better when it's put up-to-down first.
Anyone knows of a solution for this? Thanks in advance!

The XSL-snippet:

<xsl:template match="modellen">
<table border="1">
<xsl:for-each select="model[position() mod 3 = 1]">
<tr>
<xsl:for-each select=".|following-sibling::model[position() &lt; 3 ]">
<td><xsl:apply-templates/></td>
</xsl:for-each>
</tr>
</xsl:for-each>
</table>
</xsl:template>

(For the completeness) Some data:

<?xml version="1.0" encoding="ISO-8859-1" ?>

<page>

<modellen>
    <model>Lancia Y</model>
    <model>Lancia Delta</model>
    <model>Lancia Lybra</model>
    <model>Lancia k</model>
    <model>Lancia Zeta</model>
    <model>Alfa 156</model>
    <model>Fiat Panda</model>
    <model>Mercedes CLK</model>
</modellen>

</page>



Greetings,

Patrick


 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.