Re: [xep-support] Marginalia as a DocBook customisation

From: Bob Stayton (
Date: Wed May 05 2004 - 13:27:47 PDT

  • Next message: G. Ken Holman: "[xep-support] Birmingham UK added to Hong Kong and Bremen for XSL Training [XML-Dev]"

    I used something that was a little closer to XEP's example, which included a

        <fo:float float="start"
          <fo:block-container width="-{$title.margin.left}">

    It tested this in both XEP and Antenna House, and it works for both. I was
    thinking that it might become a feature of the DocBook stylesheets, which is
    why I wanted it to work with all processors (although FOP does not support
    side floats yet).

    I had tried something like Jirka's example, but in Antenna House the content
    did not wrap, it just stayed on one line and intruded into the body area. I
    think the difference is that XEP supports width on fo:block, even though
    that property is not in the spec for fo:block. Is that an XEP extension?

    Bob Stayton
    Sagehill Enterprises
    DocBook Consulting

    ----- Original Message -----
    From: "Jirka Kosek" <>
    To: <>
    Sent: Wednesday, May 05, 2004 12:43 AM
    Subject: Re: [xep-support] Marginalia as a DocBook customisation

    Paul A. Hoadley wrote:

    > Has anyone written (or seen) a DocBook customisation to produce
    > marginalia using side floats?
    > I'm thinking of something like <note role="margin">...</note>. I'll
    > have a look at it if no one has done it.

    I was prototyping this some time ago, see attachement. I'm not sure if
    it still works with the latests stylesheets, but you can give it a try.
    Content of <remark> elements are formatted as marginalia, but you can
    change this very easily.


       Jirka Kosek     e-mail:
       ProfesionßlnÝ ╣kolenÝ a poradenstvÝ v oblasti technologiÝ XML.
             ┌vod do XML 3.5.            DocBook 18.-19.5.
             XSLT 24.-26.5.              XML pro vřvojß°e 7.-8.6.
    <?xml version="1.0" encoding="utf-8"?>
    <xsl:stylesheet xmlns:xsl=""
    <!-- Element remark se zobrazuje jako marginálie -->
    <!-- Úpravy parametrů -->
    <!-- Velikost pap├şru -->
    <xsl:param name="paper.type" select="'A4'"/>
    <!-- XSLT procesor m┼»┼że pou┼ż├şvat roz┼í├ş┼Öen├ş pro callouts apod. -->
    <xsl:param name="use.extensions" select="1"/>
    <!-- Roz┼í├ş┼Öen├ş specifick├í pro dan├Ż FO procesor -->
    <!-- <xsl:param name="passivetex.extensions" select="1"/> -->
    <xsl:param name="xep.extensions" select="1"/>
    <!-- Velikost p├şsma textu -->
    <xsl:param name="body.font.master">11</xsl:param>
    <!-- Velikost okrajů -->
    <xsl:param name="page.margin.inner" select="'8pc'"/>
    <xsl:param name="page.margin.outer" select="'8pc'"/>
    <!-- ─î├şslov├ín├ş sekc├ş a kapitol -->
    <xsl:param name="section.autolabel" select="1"/>
    <xsl:param name="section.label.includes.component.label" select="1"/>
    <xsl:param name="chapter.autolabel" select="1"/>
    <xsl:param name="appendix.autolabel" select="1"/>
    <xsl:param name="part.autolabel" select="1"/>
    <xsl:param name="preface.autolabel" select="0"/>
    <!-- Nechceme obrázek -->
    <xsl:param name="draft.watermark.image" select="''"/>
    <!-- Nadpisy jsou zarovn├íny s textem, jak je zvykem v evropsk├ę
    typografii -->
    <xsl:param name="title.margin.left" select="'-5pc'"/>
    <xsl:param name="" select="1"/>
    <xsl:template match="comment|remark">
      <xsl:if test="$show.comments != 0">
          <xsl:when test="$ = 1">
            <fo:float float="start">
              <fo:block width="4pc" text-align="end" font-family="Helvetica"
    font-size="8pt" font-weight="bold" margin-left="{$title.margin.left}">
                <xsl:call-template name="inline.charseq"/>
            <fo:block font-style="italic">
              <xsl:call-template name="inline.charseq"/>
    (*) To unsubscribe, send a message with words 'unsubscribe xep-support'
    in the body of the message to from the address
    you are subscribed from.
    (*) By using the Service, you expressly agree to these Terms of Service

    This archive was generated by hypermail 2.1.5 : Wed May 05 2004 - 13:38:30 PDT