[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] keywordset not displayed in article
Hi Stefan,The stylesheets treat keywordset as metadata that can be used in a variety of ways. Since there is no standard for presenting key words in print, the stylesheet leaves that to customization. If you want them to appear in the page header, then you would need to customize the template named 'header.content', and the general method is described here:
http://www.sagehill.net/docbookxsl/PrintHeaders.html#PrintHeadersText The customization of 'header.content' would include <xsl:apply-templates select="/d:article/d:info/d:keywordset"/>And then you would also need to add templates to your customization layer for formatting the keywordset, for example:
<xsl:template match="d:keywordset"> <xsl:apply-templates/> </xsl:template> <xsl:template match="d:keyword"> <xsl:apply-templates/> <xsl:if test="position() != last()"> <xsl:text>, </xsl:text> </xsl:if> </xsl:template> Untested, but something like that. Bob Stayton Sagehill Enterprises bobs@sagehill.net----- Original Message ----- From: "Stefan Seefeld" <stefan@seefeld.name>
To: "DocBook Apps Mailing List" <docbook-apps@lists.oasis-open.org> Sent: Tuesday, May 15, 2012 7:32 AM Subject: [docbook-apps] keywordset not displayed in article
Hello, I would like to include a keywordset in an article, but it appears it is being ignored by the fo stylesheets, and thus no keywords appear in the pdf header. Are there any parameters I need to set, or even titlepage templates to create ? Thanks, Stefan -- ...ich hab' noch einen Koffer in Berlin... --------------------------------------------------------------------- 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]