This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

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


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@mulberrytech.com
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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]