W3C home > Mailing lists > Public > www-xsl-fo@w3.org > February 2002

keep-together

From: Steve Vachon <vachon@irosoft.com>
Date: Thu, 28 Feb 2002 11:30:18 -0500 (EST)
Message-Id: <5.1.0.14.0.20020228112417.00a5f710@mail.irosoft.com>
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="."/>.&#32;
	</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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 3 October 2007 16:06:09 GMT