Patrick, I think this is really more of an XSL question.

I suggest you look through http://www.w3schools.com/xsl/ and you'll find
several different ways to handle your problem.

Pay particular attention to templates and for-each routines.

Michael Teator
[EMAIL PROTECTED] 



-----Original Message-----
From: Patrick Mannhart [mailto:[EMAIL PROTECTED]
Sent: Monday, June 09, 2003 2:28 PM
To: [EMAIL PROTECTED]
Subject: Dynamic Table Rows


Hi

I need some important help!

How can I generate dynamical table rows?
I have a xml-file like this

...
<foo>
  <bar>aa</bar>
  <42>bb</42>
</foo>
<foo>
  <bar>xx</bar>
  <42>yy</42>
</foo>

etc.
...

now, I want a table in my xsl-file with 2 columns and n rows - it means each
<foo> is a own row.

One possibility is, to do it like:
<fo:table-row font....>
   <fo:table-cell ....><fo:block><xsl:value-of
select="foo/bar"/></fo:block></fo:table-cell>
   <fo:table-cell ....><fo:block><xsl:value-of
select="foo/42"/></fo:block></fo:table-cell>
</fo:table-row>

<fo:table-row font...>
... etc. etc. ....

What is the best way?
Thanks a lot for help!!
Patrick


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to