XSL template for chapter titles

Oxygen general issues.
surangamas
Posts: 47
Joined: Tue Feb 21, 2012 10:17 pm

XSL template for chapter titles

Post by surangamas »

Hi: I was wondering if anyone knows which XSL template is responsible for generating and outputting chapter titles to PDF? What I am trying to do is to create a value for the outputclass for a particular chapter's title wherein if the user specifies that value in the outputclass field of the chapter title, that chapter's title would be styled differently from other chapter titles.

I am trying to create a condition using

Code: Select all

<xsl:choose>...<xsl:when test="*[contains (@class ' topic/title ')]/@outputclass = '@value@'" >......<xsl:otherwise>...
The problem is, I don't know what to put between <xsl:otherwise> and </xsl:otherwise>, does anyone know? Thanks.
Radu
Posts: 9439
Joined: Fri Jul 09, 2004 5:18 pm

Re: XSL template for chapter titles

Post by Radu »

Hi,

The XSLT stylesheet:

OXYGEN_INSTALL_DIR\frameworks\dita\DITA-OT\plugins\org.dita.pdf2\xsl\fo\commons.xsl

seems to have a template:

<xsl:template match="*[contains(@class,' topic/topic ')]/*[contains(@class,' topic/title ')]">

but there seems to be special processing when a chapter title is presented in the PDF by default and that processing is done by the template:

<xsl:template match="*" mode="createMiniToc">.

So those are probably the places where you can try to add some xsl:messages, see how the templates are called and make customizations.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Post Reply