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: [email protected]
For additional commands, e-mail: [email protected]