[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: FW: [docbook-apps] Trouble formatting PDF TOC entries
From: Wood Nick
Janice, If you could run maven docbkx with your original customization (i.e. <choose> instead of <xsl:choose>) and it did not fail, then your customization is not being
called – I have just tested it. Therefore, you need to look at your customization layer to make sure the customized stylesheets is being called. Regards Nick From: Janice Manwiller [mailto:janice@sqrrl.com]
Nope, that didn't do it. Still no bold for the chapter TOC entries. On Thu, Oct 16, 2014 at 7:57 AM, Wood Nick <Nick.Wood@ncia.nato.int> wrote: Janice, Try <xsl:choose/>. Regards Nick From: Janice Manwiller [mailto:janice@sqrrl.com]
I'm trying to update the formatting of a PDF TOC. I mostly want to add additional space above and bold the chapter entries. I found the following sample for toc.line.properties in the DocBook XSL reference, and as a test added it to my FO stylesheet. <xsl:attribute-set name="toc.line.properties"> <xsl:attribute name="font-size">10pt</xsl:attribute> <xsl:attribute name="font-weight"> <xsl:when test="self::chapter | self::preface | self::appendix">bold</xsl:when> <xsl:otherwise>normal</xsl:otherwise> </xsl:attribute> </xsl:attribute-set> According to the guide, this should make all entries 10pt and chapter entries bold. However, when I try to generate the DocBook output using our maven docbkx tool, it doesn't generate at all, and I get an error indicating that a "when" element must always be enclosed
by a "choose" element. If I add the choose element, like: <xsl:attribute-set name="toc.line.properties"> <xsl:attribute name="font-size">10pt</xsl:attribute> <xsl:attribute name="font-weight"> <choose> <xsl:when test="self::chapter | self::preface | self::appendix">bold</xsl:when> <xsl:otherwise>normal</xsl:otherwise> </choose> </xsl:attribute> </xsl:attribute-set> then the output generates, but there is no effect on the TOC formatting. The chapter entries aren't bold. Any ideas on how to get this to work? Thanks, Janice
-- |
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]