xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Roxana Constandes" <Roxana.Constan...@tripleg.com>
Subject RE: Dynamic Table Rows
Date Mon, 09 Jun 2003 18:38:34 GMT
Try this:
<xsl:for-each select="foo">
	<fo:table-row font....>
	   <fo:table-cell ....>
		<fo:block><xsl:value-of select="bar"/></fo:block>
	   </fo:table-cell>
	   <fo:table-cell ....>
		<fo:block><xsl:value-of select="42"/></fo:block>
         </fo:table-cell>
	</fo:table-row>
</xsl:for-each>

I hope it helps.

-----Original Message-----
From: Patrick Mannhart [mailto:patrick.mannhart@bluewin.ch]
Sent: Monday, June 09, 2003 2:28 PM
To: fop-user@xml.apache.org
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: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org


Mime
View raw message