[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: RE: [docbook-apps] Inline markup in table of contents
| -----Original Message----- | From: Sam Varshavchik | | When using older stylesheets (I don't remember the version of XSL | stylesheets that I used before), in the resulting XHTML output from | onechunk.xsl, the "authshadow" part was marked up in the | table of contents | portion of the output using <code>: | | <dt><span class="sect1"><a href="#authshadow" | shape="rect">The <code | class="literal">authshadow</code> | authentication module</a></span></dt> | | After rebuilding with 1.74.0, this markup is gone: This is caused by a bug fix that seems to have been a little careless. See https://sourceforge.net/tracker/index.php?func=detail&aid=1797492&group_id=2 1935&atid=373747 In common/titles.xsl, there is a test that looks like this: <xsl:when test="descendant-or-self::footnote or descendant-or-self::anchor or descendant-or-self::ulink or descendant-or-self::link or descendant-or-self::olink or descendant-or-self::xref or descendant-or-self::indexterm or ancestor::title"> <xsl:apply-templates mode="no.anchor.mode"/> </xsl:when> The problem should go away if you change 'ancestor::title' to '(ancestor::title and (@id or @xml:id))'. This allows inline elements in titles to be properly formatted in the TOC, provided that they don't have id or xml:id attributes. Not allowing id/xml:id attributes feels awkward, but I can't think of a better solution at the moment. Can you please test this? Mauritz
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]