Question About Topic

Post here questions and problems related to editing and publishing DITA content.
Le Basque
Posts: 147
Joined: Sat Oct 19, 2013 8:21 am

Question About Topic

Post by Le Basque »

Hi,

I am generating a publication for a topic (without ditamap)
But on the first page I have the title of the topic.
I want to format the first page.
I did not find the style sheet that addresses this page

Thank you
Radu
Posts: 9054
Joined: Fri Jul 09, 2004 5:18 pm

Re: Question About Topic

Post by Radu »

Hi,

The front matter should be generated in the same XSL:

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

The template called createFrontMatter has at some point the code:

Code: Select all

                            <fo:block xsl:use-attribute-sets="__frontmatter__title">
<xsl:choose>
<xsl:when test="//*[contains(@class, ' map/map ')]/@title">
<xsl:value-of select="//*[contains(@class, ' map/map ')]/@title"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="/descendant::*[contains(@class, ' topic/topic ')][1]/*[contains(@class, ' topic/title ')]"/>
</xsl:otherwise>
</xsl:choose>
</fo:block>
which distinguishes between obtaining the map title or obtaining the topic title if only a topic gets published.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Le Basque
Posts: 147
Joined: Sat Oct 19, 2013 8:21 am

Re: Question About Topic

Post by Le Basque »

thank you
Post Reply