docbook-apps

  • 1.  Re: [docbook-apps] Custom page master

    Posted 12-07-2006 17:09
    Hi Daniela,
    It looks like you have set up your user.pagemasters correctly, but your
    select.user.pagemaster is not working. The stylesheets work off the
    page-sequence-master names, not the simple-page-master names. You should
    be able to use this:

    <xsl:choose>
    <xsl:when test="$default-pagemaster = 'body'">adito_body</xsl:when>
    <xsl:otherwise><xsl:value-of
    select="$default-pagemaster"/></xsl:otherwise>
    </xsl:choose>

    The handling of the first, odd, even, etc. is handled by the
    page-sequence-master.

    Bob Stayton
    Sagehill Enterprises
    DocBook Consulting
    bobs@sagehill.net





  • 2.  Re: [docbook-apps] Custom page master

    Posted 12-08-2006 08:02
    Hi Bob,

    thanks a lot for your reply. I tried your suggestion and it works
    fine, now my custom page masters are called.
    But: I want to use these page masters to draw a vertical line on the
    outer side of my text body. You suggested the way to do this not long
    ago in this message: "vertical line between margin and text" on this
    list. However, this doesn't work for me. I added a
    "background-color="red"" to the region-body of the simple-page-master
    'adito_body-odd' to make sure the right page master is used

    <fo:simple-page-master master-name="adito_body-odd"
    page-width="{$page.width}" page-height="{$page.height}"
    margin-top="{$page.margin.top}"
    margin-bottom="{$page.margin.bottom}"
    margin-left="{$margin.left.inner}"
    margin-right="{$page.margin.outer}">
    <fo:region-body margin-bottom="{$body.margin.bottom}"
    margin-top="{$body.margin.top}"

    column-gap="{$column.gap.body}" column-count="{$column.count.body}"

    border-start-color="black" border-start-width="2pt"
    border-start-style="solid"
    background-color="red" />
    <fo:region-before region-name="xsl-region-before-odd"
    extent="{$region.before.extent}" display-align="before"/>
    <fo:region-after region-name="xsl-region-after-odd"
    extent="{$region.after.extent}" display-align="after"/>
    </fo:simple-page-master>

    and this works fine. But I never get to see the border.

    Am I missing something?

    Regards,
    Daniela

    On 12/7/06, Bob Stayton <bobs@sagehill.net> wrote:
    > Hi Daniela,
    > It looks like you have set up your user.pagemasters correctly, but your
    > select.user.pagemaster is not working. The stylesheets work off the
    > page-sequence-master names, not the simple-page-master names. You should
    > be able to use this:
    >
    > <xsl:choose>
    > <xsl:when test="$default-pagemaster = 'body'">adito_body</xsl:when>
    > <xsl:otherwise><xsl:value-of
    > select="$default-pagemaster"/></xsl:otherwise>
    > </xsl:choose>
    >
    > The handling of the first, odd, even, etc. is handled by the
    > page-sequence-master.
    >
    > Bob Stayton
    > Sagehill Enterprises
    > DocBook Consulting
    > bobs@sagehill.net
    >
    >
    >