I repost this message because I haven't find the solution yet !

This test always return TRUE :

<xsl:if test="not(string(./SOUSTHEME) = string(following-sibling :: 
./SOUSTHEME))">

And the old one always return FALSE :

<xsl:if test="SOUSTHEME != following-sibling :: SOUSTHEME">

Please someone, any idea ?

I thought it was an error with sorting, here's my apply templates FICHE 
tag :

<xsl:apply-templates select="FICHE">
        <xsl:sort select="SOUSTHEME" />
</xsl:apply-templates>

But I removed it and nothing change ... Pleas heeeeeelp a poor beginner in 
needs ! ;o)

Thanks.

Simon

------------------------------------------------------------------------------------------------------------------------------------------

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]




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

Reply via email to