Hi,

here is my whole xslt.
Maybe the code is not very good - its my first try ;)


        <fo:block font-size='8px' font-family='Helvetica' color='&cSchwarz;'>
                <fo:block line-height='6px' font-size='14px' font-weight='bold'
margin-left='1mm'>
                        Auswertung
                </fo:block>                                                     
                <fo:block line-height='14px'><fo:leader leader-pattern='rule'
leader-length='180mm' color='&cGrauDunkel;'/></fo:block>
                <fo:block font-size='10px' margin-left='1mm' 
padding-after='0.7mm'>
                        <xsl:if test="substring(metadaten/inh1name, 0, 5) = 
'null'">
                                <xsl:value-of 
select='substring(metadaten/inh1name, 6)'/>       
                        </xsl:if>
                        <xsl:if test="substring(metadaten/inh1name, 0, 5) != 
'null'">
                                <xsl:apply-templates 
select='metadaten/inh1name'/>
                        </xsl:if>
                </fo:block>
                <xsl:if test="metadaten/inh2name != ''">
                        <fo:block font-size='10px' margin-left='1mm'
padding-after='0.7mm'><xsl:apply-templates
select='metadaten/inh2name'/></fo:block>
                </xsl:if>
                <fo:block font-size='10px' margin-left='1mm'>
                        <xsl:apply-templates 
select="nummer_bez"/>&nbsp;<xsl:apply-templates
select="nummer"/>
                </fo:block>                                                     
        </fo:block>     
        
        <fo:block line-height='5mm'>&nbsp;</fo:block>

        
        <xsl:for-each select='Collection'>

        <fo:block line-height='12px' text-align='left'
font-weight='bold'><xsl:apply-templates select='categoryname'/>:</fo:block>
        
        <fo:block keep-with-next="always" color='&cSchwarz;' font-size='7px'
font-family='Helvetica' line-height='12px' text-align='justify'>
        <fo:table table-layout='fixed' width='180mm'> 
                <fo:table-column column-width='60mm'/>
                <fo:table-column column-width='3mm'/>
                <fo:table-column column-width='38mm'/>
                <fo:table-column column-width='3mm'/>
                <fo:table-column column-width='40mm'/>
                <fo:table-column column-width='3mm'/>
                <fo:table-column column-width='20mm'/>
                <fo:table-column column-width='3mm'/>
                <fo:table-column column-width='10mm'/><!--sum 180-->
            <fo:table-header>
                <fo:table-row line-height='12px'> 
                                <fo:table-cell display-align='after' 
padding-left='1mm'><fo:block
color='&cGrau;' line-height='7px' >Zeile</fo:block></fo:table-cell>
                                <fo:table-cell />
                                <fo:table-cell display-align='after'><fo:block 
color='&cGrau;'
text-align='right'>Zeile</fo:block></fo:table-cell>
                                <fo:table-cell />
                                <fo:table-cell display-align='after'><fo:block 
color='&cGrau;'
text-align='right'>Zeile</fo:block></fo:table-cell>
                                <fo:table-cell />
                                <fo:table-cell display-align='after'><fo:block 
color='&cGrau;'
text-align='right'>Zeile</fo:block></fo:table-cell>
                                <fo:table-cell />
                                <fo:table-cell display-align='after'><fo:block 
color='&cGrau;'
text-align='right'>Zeile</fo:block></fo:table-cell>
                </fo:table-row>
                        <fo:table-row line-height='1px'
number-columns-spanned='11'>&nbsp;</fo:table-row> 
                </fo:table-header>
                
                <fo:table-body>
                        <xsl:for-each select='collectionWrapper/anteil'>
                <fo:table-row line-height='1px' keep-with-next="always">
                                <fo:table-cell><fo:block><fo:leader 
rule-thickness='1px'
leader-pattern='rule' rule-style='dotted' leader-length='60mm'
color='&cGrauHell;'/></fo:block></fo:table-cell>
                                <fo:table-cell />
                                <fo:table-cell><fo:block><fo:leader 
rule-thickness='1px'
leader-pattern='rule' rule-style='dotted' leader-length='38mm'
color='&cGrauHell;'/></fo:block></fo:table-cell>
                                <fo:table-cell />
                                <fo:table-cell><fo:block><fo:leader 
rule-thickness='1px'
leader-pattern='rule' rule-style='dotted' leader-length='40mm'
color='&cGrauHell;'/></fo:block></fo:table-cell>
                                <fo:table-cell />
                                <fo:table-cell><fo:block><fo:leader 
rule-thickness='1px'
leader-pattern='rule' rule-style='dotted' leader-length='20mm'
color='&cGrauHell;'/></fo:block></fo:table-cell>
                                <fo:table-cell />
                                <fo:table-cell><fo:block><fo:leader 
rule-thickness='1px'
leader-pattern='rule' rule-style='dotted' leader-length='10mm'
color='&cGrauHell;'/></fo:block></fo:table-cell>
                </fo:table-row>
                        <fo:table-row height='5px' number-columns-spanned='11'
keep-with-next="always">&nbsp;</fo:table-row> 
                <fo:table-row line-height='1px' keep-together="always">
                        <fo:table-cell padding-left='1mm'><fo:block 
line-height='9px'
text-align='left' hyphenate='true' font-weight='bold'><xsl:apply-templates
select='attribut1'/></fo:block></fo:table-cell>
                                <fo:table-cell />
                        <fo:table-cell><fo:block line-height='9px'
text-align='right'><xsl:apply-templates
select='attribut2'/></fo:block></fo:table-cell>
                                <fo:table-cell />
                        <fo:table-cell><fo:block line-height='9px'
text-align='right'><xsl:apply-templates
select='attribut3'/></fo:block></fo:table-cell>
                                <fo:table-cell />
                        <fo:table-cell><fo:block line-height='9px'
text-align='right'><xsl:apply-templates select='attribut4'/>
EUR</fo:block></fo:table-cell>
                                <fo:table-cell />
                        <fo:table-cell><fo:block line-height='9px'
text-align='right'><xsl:apply-templates
select='attribut5'/></fo:block></fo:table-cell>
                </fo:table-row>
                        </xsl:for-each>
                </fo:table-body>
        </fo:table>
        </fo:block>
                
        <xsl:variable name="kategorie" select ="categoryname" />
        <xsl:variable name="servletURL" select ="encodedURL" />

        <xsl:if test="$kategorie='Gesamt'">     
        <fo:block line-height='8mm'>&nbsp;</fo:block>
                <fo:block text-align="center">
                         <fo:external-graphic
src="{$servletURL}?chartTyp=pie&amp;kategorie={$kategorie}&amp;unterkategorie=1"
width="18cm"></fo:external-graphic>
                </fo:block>
        </xsl:if>
        
        <fo:block line-height='14mm'>&nbsp;</fo:block>
        
        <fo:block keep-with-next="always">
        <fo:table table-layout='fixed' width='180mm'> 
                <fo:table-column column-width='88mm'/>
                <fo:table-column column-width='4mm'/>
                <fo:table-column column-width='88mm'/><!--sum 180-->
                

                <xsl:choose>
                        <xsl:when test="$kategorie='Gesamt'">
                                <fo:table-body>
                        <fo:table-row line-height='1px' keep-together="always">
                                        <fo:table-cell 
padding-left='1mm'><fo:block line-height='9px'
text-align='left'><fo:external-graphic
src="{$servletURL}?chartTyp=bar&amp;kategorie={$kategorie}&amp;unterkategorie=2"
width="85mm"></fo:external-graphic></fo:block></fo:table-cell>
                                        <fo:table-cell />
                                        <fo:table-cell><fo:block 
line-height='9px'
text-align='left'><fo:external-graphic
src="{$servletURL}?chartTyp=bar&amp;kategorie={$kategorie}&amp;unterkategorie=3"
width="85mm"></fo:external-graphic></fo:block></fo:table-cell>
                        </fo:table-row>         
                                </fo:table-body>
                        </xsl:when>
                        
                        <xsl:when test="$kategorie='Teil1'">
                                <fo:table-body>
                        <fo:table-row line-height='1px' keep-together="always">
                                        <fo:table-cell 
padding-left='1mm'><fo:block line-height='9px'
text-align='left'><fo:external-graphic
src="{$servletURL}?chartTyp=bar&amp;kategorie={$kategorie}&amp;unterkategorie=1"
width="85mm"></fo:external-graphic></fo:block></fo:table-cell>
                                        <fo:table-cell />
                                        <fo:table-cell><fo:block 
line-height='9px'
text-align='left'><fo:external-graphic
src="{$servletURL}?chartTyp=bar&amp;kategorie={$kategorie}&amp;unterkategorie=2"
width="85mm"></fo:external-graphic></fo:block></fo:table-cell>
                        </fo:table-row>
                                <fo:table-row height='50px' 
number-columns-spanned='3'
keep-with-next="always">&nbsp;</fo:table-row> 
                                <fo:table-row line-height='1px' 
keep-together="always">
                                        <fo:table-cell 
padding-left='1mm'><fo:block line-height='9px'
text-align='left'><fo:external-graphic
src="{$servletURL}?chartTyp=bar&amp;kategorie={$kategorie}&amp;unterkategorie=3"
width="85mm"></fo:external-graphic></fo:block></fo:table-cell>
                                        <fo:table-cell />
                                        <fo:table-cell><fo:block 
line-height='9px'
text-align='left'><fo:external-graphic
src="{$servletURL}?chartTyp=bar&amp;kategorie={$kategorie}&amp;unterkategorie=4"
width="85mm"></fo:external-graphic></fo:block></fo:table-cell>
                        </fo:table-row>
                                </fo:table-body>
                        </xsl:when>
                        
                        <xsl:when test="$kategorie='Teil3'">
                                <fo:table-body>
                        <fo:table-row line-height='1px' keep-together="always">
                                        <fo:table-cell 
padding-left='1mm'><fo:block line-height='9px'
text-align='left'><fo:external-graphic
src="{$servletURL}?chartTyp=bar&amp;kategorie={$kategorie}&amp;unterkategorie=1"
width="85mm"></fo:external-graphic></fo:block></fo:table-cell>
                                        <fo:table-cell />
                                        <fo:table-cell><fo:block 
line-height='9px'
text-align='left'><fo:external-graphic
src="{$servletURL}?chartTyp=bar&amp;kategorie={$kategorie}&amp;unterkategorie=4"
width="85mm"></fo:external-graphic></fo:block></fo:table-cell>
                        </fo:table-row>
                                <fo:table-row height='50px' 
number-columns-spanned='3'
keep-with-next="always">&nbsp;</fo:table-row> 
                                <fo:table-row line-height='1px' 
keep-together="always">
                                        <fo:table-cell 
padding-left='1mm'><fo:block line-height='9px'
text-align='left'><fo:external-graphic
src="{$servletURL}?chartTyp=bar&amp;kategorie={$kategorie}&amp;unterkategorie=7"
width="85mm"></fo:external-graphic></fo:block></fo:table-cell>
                                        <fo:table-cell />
                                        <fo:table-cell><fo:block 
line-height='9px'
text-align='left'><fo:external-graphic
src="{$servletURL}?chartTyp=bar&amp;kategorie={$kategorie}&amp;unterkategorie=8"
width="85mm"></fo:external-graphic></fo:block></fo:table-cell>
                        </fo:table-row>
                                <fo:table-row height='50px' 
number-columns-spanned='3'
keep-with-next="always">&nbsp;</fo:table-row> 
                                <fo:table-row line-height='1px' 
keep-together="always">
                                        <fo:table-cell 
padding-left='1mm'><fo:block line-height='9px'
text-align='left'><fo:external-graphic
src="{$servletURL}?chartTyp=bar&amp;kategorie={$kategorie}&amp;unterkategorie=9"
width="85mm"></fo:external-graphic></fo:block></fo:table-cell>
                                        <fo:table-cell />
                                        <fo:table-cell />
                        </fo:table-row>
                                </fo:table-body>
                        </xsl:when>
                        
                </xsl:choose>
        </fo:table>
        </fo:block>
        
        <fo:block>
      <xsl:choose>
            <xsl:when test="position() != last()">
                  <xsl:attribute name="break-after">page</xsl:attribute>
            </xsl:when>
            <xsl:otherwise>
                  <xsl:attribute name="break-after">auto</xsl:attribute>
            </xsl:otherwise>
      </xsl:choose>
        </fo:block> 
        
        </xsl:for-each> 


Andreas L Delmelle wrote:
> 
> On Oct 31, 2007, at 11:38, m_dieu wrote:
> 
> Can you check (just to make sure) whether there is a force-page-count  
> property specified on the fo:page-sequence? If this would force the  
> sequence to end on an odd page, this /could/ explain why you get an  
> extra blank page.
> 
> OTOH, it's *very* difficult to judge from an XSLT fragment. Can you  
> perhaps post the FO-output of the transform? To obtain this via the  
> command-line, use:
> fop -xml 'test.xml' -xsl 'test.xsl' -foout 'test.fo'
> 
> Cheers
> 
> Andreas
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Empty-pages-after-%22break-after%22-tf4723712.html#a13524781
Sent from the FOP - Users mailing list archive at Nabble.com.


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

Reply via email to