Page 1 of 1
Question About Topic
Posted: Mon Nov 24, 2014 4:20 pm
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
Re: Question About Topic
Posted: Tue Nov 25, 2014 12:47 pm
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
Re: Question About Topic
Posted: Wed Nov 26, 2014 11:35 am
by Le Basque
thank you