Hi,
I use FOP 
I wan't to make a table with 2 columns and I want to make that with one for-each.
I make so:
<fo:table> 
<fo:table-body> 
<xsl:for-each select="toto/albert"> 
<xsl:if test="position() mod 2 !=0"> 
<xsl:text disable-output-escaping="yes"><![CDATA[<fo:table-row>]]> </xsl:text></xsl:if> 
<fo:table-cell> 
<xsl:value-of select="node()"/> 
</fo:table-cell> 
<xsl:if test="position() mod 2 =0"> 
<xsl:text disable-output-escaping="yes"><![CDATA[</fo:table-row>]]> </xsl:text></xsl:if> 
</xsl:for-each> 
</fo:table-body> 
</fo:table> 
All work great if I parse with Msxml for example and after I parse with FOP for have my PDF
But If I parse directly with FOP that make me an error:
A table cell must child of fo:table-row not fo:table-body
 but at the end the file is correct so why FOP make me an error! It is while at the beginnig of the transformation FOP validate the xml with a DTD?
Is there a work around for make this with FOP only ?
Thanks for your help
It's very appreciated
++
Thierry
			
		
 
	
Partager