Generate the map title with additional metadata
Posted: Wed Aug 10, 2022 6:29 pm
Hello, everyone!
I have a bookmap that includes plenty of information in its metadata.
For instance, I have prodname or vrm version.
In my situation, I would like to adapt the HTML5 output to concatenate the mainbooktitle with the prodname.
I analyzed the map2html5-coverImpl.xsl in the plugin org.dita.html5 and I didn't see where I could apply this change.
The only place where I can find the class mainbooktitle is in the template generateChapterTitle and it seems to apply at the chapter level, or I could find it in the parent template but I think it generates the main title for the topics.
So, where would you advise me to look to change the title of the main map?
I have a bookmap that includes plenty of information in its metadata.
For instance, I have prodname or vrm version.
In my situation, I would like to adapt the HTML5 output to concatenate the mainbooktitle with the prodname.
I analyzed the map2html5-coverImpl.xsl in the plugin org.dita.html5 and I didn't see where I could apply this change.
The only place where I can find the class mainbooktitle is in the template generateChapterTitle and it seems to apply at the chapter level, or I could find it in the parent template but I think it generates the main title for the topics.
Code: Select all
<xsl:template match="*[contains(@class,' bookmap/bookmap ')]/*[contains(@class,' bookmap/booktitle ')]" priority="10">
<h1 class="title topictitle1">
<xsl:call-template name="gen-user-panel-title-pfx"/>
<xsl:apply-templates select="*[contains(@class, ' bookmap/mainbooktitle ')]/node()"/>
</h1>
</xsl:template>