XSL template for chapter titles

<oXygen/> general issues.
surangamas
Posts: 47

XSL template for chapter titles

Fri May 06, 2016 8:02 pm

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: 5585

Re: XSL template for chapter titles

Mon May 09, 2016 3:39 pm

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

Return to “Other Issues”

Who is online

Users browsing this forum: No registered users and 1 guest