Re: [xsl] Creating Headers in XSL:FO that correspond to chapter numbers

Subject: Re: [xsl] Creating Headers in XSL:FO that correspond to chapter numbers
From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx>
Date: Mon, 30 Jul 2001 12:36:54 -0400
Aadel,

To support the kind of headers you want, use the fo:marker and fo:retrieve-marker elements. Sorry I can't speak to whether they're implemented yet in your formatter.

BTW (on the XSLT side), the code

<xsl:if test="@pagebreak='yes'">
  <fo:block break-before="page" font-size="30pt"
   space-before.optimum="125pt" text-align-last="centered"
   line-height="40pt" font-weight="bold">
    <xsl:text>Chapter&#160;</xsl:text>
    <xsl:number />
  </fo:block>
</xsl:if>
<xsl:if test="not(@pagebreak='yes')">
  <fo:block font-size="30pt" space-before.optimum="125pt"
   text-align-last="centered" line-height="40pt" font-weight="bold">
    <xsl:text>Chapter&#160;</xsl:text>
    <xsl:number/>
  </fo:block>
</xsl:if>

would be cleaner and more easily maintained as:


<fo:block break-before="page" font-size="30pt"
   space-before.optimum="125pt" text-align-last="centered"
   line-height="40pt" font-weight="bold">
  <xsl:if test="@pagebreak='yes'">
    <xsl:attribute name="break-before">page</xsl:attribute>
  </xsl:if>
  <xsl:text>Chapter&#160;</xsl:text>
  <xsl:number />
</fo:block>



======================================================================
Wendell Piez                            mailto:wapiez@xxxxxxxxxxxxxxxx
Mulberry Technologies, Inc.                http://www.mulberrytech.com
17 West Jefferson Street                    Direct Phone: 301/315-9635
Suite 207                                          Phone: 301/315-9631
Rockville, MD  20850                                 Fax: 301/315-8285
----------------------------------------------------------------------
  Mulberry Technologies: A Consultancy Specializing in SGML and XML
======================================================================


XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list



Current Thread