Re: [xsl] Carlos Problem (II) how to show some results y some places:

Subject: Re: [xsl] Carlos Problem (II) how to show some results y some places:
From: Joerg Heinicke <joerg.heinicke@xxxxxx>
Date: Fri, 10 May 2002 01:01:00 +0200
Have a look at http://sources.redhat.com/ml/xsl-list/2002-04/msg00221.html. The stylesheet can sort your data in columns or rows (selected with parameter $by). If you need a simplified stylesheet, you must select the first 3 <NUMBER> elements, create a <tr> for them and add for these and all following-siblings <NUMBER>s, with a position()=3 a new <td>.

Regards,

Joerg

Carlos wrote:
I have one xml file (bellow), and i don't know how to nake a xslt template
for showing the numbers in this form:
<table><tr>
<td>
1 4 7 10
</td>
<td>
2 5 8
</td>
<td>
3 6 9
</td>
</tr></table>

can anybody help me?
THANKS

############
XML FILE
############
<?xml version="1.0" encoding="UTF-8"?>
<NUMBERS>
<NUMBER>
<VALUE>1
</VALUE>
</NUMBER>
<NUMBER>
<VALUE>2
</VALUE>
<NUMBER>
<VALUE>3
</VALUE>
</NUMBER>
<NUMBER>
<VALUE>4
</VALUE>
</NUMBER>
<NUMBER>
<VALUE>5
</VALUE>
</NUMBER>
<NUMBER>
<VALUE>6
</VALUE>
</NUMBER>
<NUMBER>
<VALUE>7
</VALUE>
</NUMBER>
<NUMBER>
<VALUE>8
</VALUE>
</NUMBER>
<NUMBER>
<VALUE>9
</VALUE>
</NUMBER>
<NUMBER>
<VALUE>10
</VALUE>
</NUMBER>
</NUMBER>
</NUMBERS>



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





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



Current Thread