XSL template for chapter titles
Oxygen general issues.
-
- 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
The problem is, I don't know what to put between <xsl:otherwise> and </xsl:otherwise>, does anyone know? Thanks.
I am trying to create a condition using
Code: Select all
<xsl:choose>...<xsl:when test="*[contains (@class ' topic/title ')]/@outputclass = '@value@'" >......<xsl:otherwise>...
-
- Posts: 9439
- Joined: Fri Jul 09, 2004 5:18 pm
Re: XSL template for chapter titles
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
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
<oXygen/> XML Editor
http://www.oxygenxml.com
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service