- From: Maurice Ray <mray@absolute.ch>
- Date: Wed, 7 Nov 2001 08:35:12 -0500 (EST)
- To: www-xsl-fo@w3.org
first of all, my english is terrible (I'm swiss), but i hope you
understand my question and answer to it soon...
Lets Start :
I got a document with 2 rows something like this
CPU(first row) PRICE(second row)
athlon tbird 1,4ghz 130$
athlon xp 1700+ 180$
intel p4 2ghz 290$
the important line in my XSL is
<fo:table>
<fo:table-column column-width="8.5cm"/>
<fo:table-body>
<xsl:for-each select="row">
<fo:table-row><fo:table-cell><fo:block><xsl:value-of
select="cpu"/></fo:block></fo:table-cell></fo:table-row>
</xsl:for-each>
</fo:table-body>
</fo:table>
there is no problem to get the cpu but i like to get the price too...
may be someone can help me ?
it would be great if you could put XSL and XML in the answer...
the second question is how i could do that this way :
CPU(first row) PRICE(second row)
athlon tbird 1,4ghz 130$
athlon xp 1700+ 180$
intel p4 2ghz 290$
RAM(first row) PRICE(second row)
Kingston ddr 128 130$
Kingston ddr 256 180$
Kingston ddr 512 290$
how must my XML and XSL be formed to get this result ?
something like this ?
XML :
<list1>
<cpu><athlon...></cpu>
<cpu><athlon...></cpu>
<cpu><athlon...></cpu>
</list1>
<list2>
<ram><kingston...></ram>
<ram><kingston...></ram>
<ram><kingston...></ram>
<ram><kingston...></ram>
</list2>
is this right done ?
thanks for your time and your answer...
I just hope so , that you understand it...
greetz maurice ray
absolute development
ch-8005 zurich
Received on Friday, 9 November 2001 03:17:36 UTC