This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: [docbook-apps] Title Page Layout in FO
Hi,
On Sunday, 27. February 2005 19:13, Bob Stayton wrote:
> There is an example for this in:
> http://www.sagehill.net/docbookxsl/TitleFontSizes.html#ChapterTitles
Thanks, Bob. I overlooked that in your book, I had only the second edition
in front of me. Obviously it would be better if I had checked the third
release too. :)
Unfortunatly xsltproc complains about the misplaced xsl:choose inside the
xsl:call-template:
<xsl:template name="chapappendix.title">
...
<xsl:call-template name="gentext">
<xsl:choose><!-- xsltproc complains here -->
<xsl:when test="self::chapter">
<xsl:with-param name="key" select="'chapter'"/>
</xsl:when>
<xsl:when test="self::appendix">
<xsl:with-param name="key" select="'appendix'"/>
</xsl:when>
</xsl:choose>
</xsl:call-template>
...
</xsl:template>
I changed that order of the xsl:with-param and xsl:choose; the
self::appendix and self::chapter didn't work either so I changed that
too:
<xsl:template name="chapappendix.title">
...
<xsl:call-template name="gentext">
<xsl:with-param name="key">
<xsl:choose>
<xsl:when test="local-name($node)='chapter'">
<xsl:text>chapter</xsl:text>
</xsl:when>
<xsl:when test="local-name($node)='appendix'">
<xsl:text>appendix</xsl:text>
</xsl:when>
</xsl:choose>
</xsl:with-param>
</xsl:call-template>
...
</xsl:template>
It seems that xsltproc is right, or do you see any errors in my above
code?
Apart from these small issues it works like a charm. :)
Thanks,
Tom
--
Thomas Schraitle <tom_schr@web.de>