- From: Steve Vachon <vachon@irosoft.com>
- Date: Thu, 28 Feb 2002 11:30:18 -0500 (EST)
- To: www-xsl-fo@w3.org
Hi,
I have to write a title with a paragraph and I want that they stay
together when I change of page. My code is
<xsl:template match="Section">
<fo:block text-indent="15pt">
<xsl:apply-templates/>
</fo:block>
</xsl:template>
<xsl:template match="MarginalNote">
<fo:block font-size="9pt" color="green" margin-left="0pt"
padding-top="12pt" padding-bottom="12pt"
keep-with-next.within-page="always">
<xsl:value-of select="."/>
</fo:block>
</xsl:template>
<xsl:template match="Section/Label">
<fo:inline font-weight="bold">
<xsl:value-of select="."/>. 
</fo:inline>
</xsl:template>
where MarginalNote is the Title and Label is the paragraph. This two tags
are in the Section.
I tried with the keep-with-next.within-page but i doesn't work. I also
tried with the keep-together in the Section-block but it doesn't work too.
Maybe someone have a solution to my problem.
Thanks in advance
Steve from Irosoft Inc. vachon@irosoft.com
Received on Thursday, 28 February 2002 17:53:04 UTC