Hi,
I am trying to use the break-before attribute to put a page break when I
test a category changement in the XML.
Here is my XSL code :
---------------------------------------------------------------------
<xsl:template match="FICHE">
<fo:table table-layout="fixed">
<xsl:if test="SOUSTHEME != following-sibling :: SOUSTHEME">
<xsl:attribute name="break-before">page</xsl:attribute>
</xsl:if>
<!-- [...] end of the template after [...] -->
---------------------------------------------------------------------
I think my XPath expression is right : "SOUSTHEME != following-sibling ::
SOUSTHEME".
Here's a part of the XML datas incoming from a servlet :
---------------------------------------------------------------------
<?xml version="1.0" encoding="ISO-8859-1"?>
<CATALOGUE>
<FICHE cdId="663" catanetId="13343" type="P" lang="FRA">
<TITRE>140 000 CHINOIS POUR LA GRANDE GUERRE</TITRE>
<THEME>Histoire</THEME>
<SOUSTHEME>Histoire Contemporaine</SOUSTHEME>
<GENERIQUE>
<!-- [...] lot of subtags here [...] -->
</GENERIQUE>
<PRESENTATION>
<!-- [...] lot of subtags here [...] -->
</PRESENTATION>
</FICHE>
<FICHE cdId="1997" catanetId="49205" type="P" lang="FRA">
<TITRE>1929, LE SPECTRE DE LA CRISE</TITRE>
<THEME>Histoire</THEME>
<SOUSTHEME>Documentaires musicaux</SOUSTHEME>
<GENERIQUE>
<!-- [...] lot of subtags here [...] -->
</GENERIQUE>
<PRESENTATION>
<!-- [...] lot of subtags here [...] -->
</PRESENTATION>
</FICHE>
---------------------------------------------------------------------
If someone can help me to find my error... Maybe I didn't understand the
break-before attribute well.
Thanks,
Simon
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]