One Chapter/Topic with different overall formatting in a Bookmap
Posted: Wed Dec 09, 2015 6:43 pm
Hi there,
I have a Bookmap with the structure as below:
My question is, for those chapters inside part1, can I format them differently than the rest of the topics/parts in the rest of the books?
I was thinking about adding an outputclass to those as follows:
Then in file attr-set-reflection.xsl, I found the section that triggers the topics styles, i.e.:
Are these the sections where i have to put a conditional for this to work?
I will create new attrributes/styles, i.e. section.topic.topic.topic.title, but how do I add the conditional into attr-set-reflection.xsl and is this the right approach?
Thanks for all your help,
I have a Bookmap with the structure as below:
Code: Select all
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE bookmap PUBLIC "-//OASIS//DTD DITA BookMap//EN"
"bookmap.dtd">
<bookmap xml:lang="en">
<!-- METADATA HERE -->
<part format="dita" href="Part1.xml"/>
<chapter format="ditamap" href="Section1-1.ditamap"/>
<chapter format="ditamap" href="Section2-2.ditamap"/>
<chapter format="ditamap" href="Section3-3.ditamap"/>
</part>
<part format="ditamap" href="Part2.ditamap"/>
<part format="ditamap" href="Part3.ditamap"/>
<part format="ditamap" href="Part4.ditamap"/>
<appendix format="ditamap" href="AppendixA.ditamap"/>
</bookmap>
I was thinking about adding an outputclass to those as follows:
Code: Select all
<chapter format="ditamap" href="Section1-1.ditamap" outputclass="section"/>
<chapter format="ditamap" href="Section2-2.ditamap" outputclass="section"/>
<chapter format="ditamap" href="Section3-3.ditamap" outputclass="section"/>
Code: Select all
....
<xsl:when test="$attrSet = 'topic.topic.topic.title'">
<xsl:call-template name="new-attr-set-reflection">
<xsl:with-param name="temp-element">
<xsl:element name="placeholder" use-attribute-sets="topic.topic.topic.title"/>
</xsl:with-param>
</xsl:call-template>
</xsl:when>
....
I will create new attrributes/styles, i.e. section.topic.topic.topic.title, but how do I add the conditional into attr-set-reflection.xsl and is this the right approach?
Thanks for all your help,