Parent index topic includes page numbers for all child index
Posted: Fri Aug 23, 2013 6:09 pm
Hello, when I generate a PDF file with an Index, the parent topics in the index list the page numbers for all of the children topics as follows (I am putting it into code tags for this post, so you can see the indentation):
When I read through the dita spec it clearly shows that this should not happen. It should look like:
This is how I have index terms tagged up in the DITA:
<indexterm>shutting down the connection<indexterm>Server Disconnect</indexterm></indexterm>
This would not be a big deal, except I have some parent index topics with a number of children topics, so I get something like this in my index:
We had a home-grown ditaot implementation where I could comment out some code to suppress the duplication of child page numbers in the parent topic. We would change the following in the index.xls file (under \ditaot\demo\fo\xsl\fo) of our earlier version of the ditaot from this:
To this (just commented out the one section):
We have recently started working with the ditaot that comes with Oxygen. I was wondering if this issue is on the radar for a fix, or if there is a solution for this?
Thanks
Ursula
Code: Select all
shutting down the connection 562
Server Disconnect 562
Code: Select all
shutting down the connection
Server Disconnect 562
<indexterm>shutting down the connection<indexterm>Server Disconnect</indexterm></indexterm>
This would not be a big deal, except I have some parent index topics with a number of children topics, so I get something like this in my index:
Code: Select all
functions
44–45, 57, 85–90, 93, 96–97, 100–109,
111–112, 117–119, 127, 136, 139–141,
145–147, 160, 179, 195, 212, 215–222,
226, 235, 246, 254–258, 261, 264, 268–
271, 277, 281, 283–285, 287, 293, 297–
302, 305–308, 317–320, 322–326, 328,
331–333, 340–341, 343–344, 346–347,
349–351, 353–355, 357–362, 365, 368,
372–375, 378–381, 386–390, 392, 395–
401, 418, 427–430, 433–437, 441, 443,
445–446, 448, 450, 462, 468–469, 471–
473, 483, 486–488, 497, 500, 503, 509,
515–517, 519–520, 523–524, 531, 621,
632–640, 642–647, 650, 656, 658, 662–
664, 666–667, 669, 671–674, 678–680,
684–685, 691
Abs( )
44
Acos( )
45
AdornmentInfo( )
57
ApplicationDirectory$( )
85
ApplicationName$( )
86
Area( )
86
...
Code: Select all
<xsl:when test="opentopic-index:index.entry">
<xsl:for-each select="child::opentopic-index:refID[last()]">
<fo:inline index-key="{@value}"/>
</xsl:for-each>
</xsl:when>
Code: Select all
<xsl:when test="opentopic-index:index.entry">
<!--<xsl:for-each select="child::opentopic-index:refID[last()]">
<fo:inline index-key="{@value}"/>
</xsl:for-each> -->
</xsl:when>
Thanks
Ursula