OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: Re: [docbook-apps] Problem with user pagemaster


Hi,
The body.start.indent is set on a page-sequence by the template named 
'set.flow.properties' in fo/pagesetup.xsl. See this section for details:

http://www.sagehill.net/docbookxsl/PrintOutput.html#IndentingBodyText

That template tests to see if the page master name starts with 'body':

    <xsl:when test="starts-with($pageclass, 'body') or

so you'll need to customize it to add your page-master names.

Bob Stayton
Sagehill Enterprises
bobs@sagehill.net


----- Original Message ----- 
From: "Tobias Anstett [k15t.com]" <tobias@k15t.com>
To: <docbook@lists.oasis-open.org>; <docbook-apps@lists.oasis-open.org>
Sent: Friday, January 30, 2009 12:26 AM
Subject: [docbook-apps] Problem with user pagemaster


> Hi,
>
> I am using docbook since several months and have experimented a lot
> with the customization layer. Yesterday I noticed that using a user
> pagemaster "deletes" the regular indentation of para/admonitions/...
> after a section title.
>
> Defining the select.user.pagemaster in my customization layer and
> linking to the original body pagemaster won't cause any problems.
>
> <xsl:template name="select.user.pagemaster">
> <xsl:param name="element"/>
> <xsl:param name="pageclass"/>
> <xsl:param name="default-pagemaster"/>
>
> <xsl:choose>
> <xsl:when test="$default-pagemaster = 'body'">
> <xsl:value-of select="'body'" />
> </xsl:when>
> <xsl:otherwise>
> <xsl:value-of select="$default-pagemaster"/>
> </xsl:otherwise>
> </xsl:choose>
> </xsl:template>
>
> But when i replace "body" with "my-body" which is defined in the
> "user.pagemasters" template i am loosing indentation.
>
> <xsl:template name="user.pagemasters">
> ...
> <!-- setup for body pages -->
>    <fo:page-sequence-master master-name="my-body">
>      <fo:repeatable-page-master-alternatives>
>        <fo:conditional-page-master-reference master-reference="my-blank"
>                                              blank-or-not-blank="blank"/>
>        <fo:conditional-page-master-reference 
> master-reference="my-body-first"
>                                              page-position="first"/>
>        <fo:conditional-page-master-reference 
> master-reference="my-body-odd"
>                                              odd-or-even="odd"/>
>        <fo:conditional-page-master-reference
>                                              odd-or-even="even">
>          <xsl:attribute name="master-reference">
>            <xsl:choose>
>              <xsl:when test="$double.sided != 0">my-body-even</xsl:when>
>              <xsl:otherwise>my-body-odd</xsl:otherwise>
>            </xsl:choose>
>          </xsl:attribute>
>        </fo:conditional-page-master-reference>
>      </fo:repeatable-page-master-alternatives>
>    </fo:page-sequence-master>
> </xsl:template>
>
> I also tried (for problem discovery) to use the original blank,
> body-first, body-odd, body-even in the my-body page-sequence-master
> without success (loosing indentation too).
>
> For workaround i tried several options I found on sagehill.net or on
> some mailinglist, but they won't work... somehow the e.g.
> body.start.indent is never used.
>
> Any ideas?
>
> Cheers, Tobias
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
> For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org
>
>
> 



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]