Limiting levels of chapter numbering in ditamaps
Posted: Tue Jun 09, 2015 11:19 pm
Hello,
I work with ditamaps and I am able to number all the levels of my ditamap in my pdf output. I would like to limit the numbering to the 2 first levels of the ditamap.
In the customs.xsl file ( under xsl) I added
[/code]
And I got the exact same result: all levels are numbered.
I tried adding but with no success.
Is there something equivalent to the for chapter numbering? Is there a way to limit the levels included in the numbering?
Regards
Carole
I work with ditamaps and I am able to number all the levels of my ditamap in my pdf output. I would like to limit the numbering to the 2 first levels of the ditamap.
In the customs.xsl file ( under xsl) I added
Code: Select all
<xsl:number count="*[contains(@class, ' map/topicref ')] [not(ancestor-or-self::*[contains(@class, ' bookmap/frontmatter ')])]" format="1.1" level="multiple" />
And it numbered all the levels.
the I replaced the previous code by
[code]
<xsl:number format="1" count="topicref|topicref" level="multiple" />
And I got the exact same result: all levels are numbered.
I tried adding
Code: Select all
<xsl:for-each select="topicref [position()< 2]"/>
Is there something equivalent to the
Code: Select all
<xsl:variable name="tocMaximumLevel">4</xsl:variable>
Regards
Carole