#956 bad TOC entry for xref in title

output: HTML
XSL (1066)

section title

<section id="mop-clisp"><title>Deviations from <xref linkend="amop"/></title>

where "amop" is a <biblioentry id="amop">
is rendered incorrectly in TOC:

<dt><span class="section"><a href="mop-clisp.html">29.12. Deviations from </a></span></dt>

i.e., nothing is rendered from the xref.

note that the section title in the text is correct:

<h2 class="title" style="clear: both"><a id="mop-clisp"></a>29.12. Deviations from <a class="xref" href="references.html#amop" title="The Art of the Metaobject Protocol">[<abbr class="abbrev">AMOP</abbr>]</a></h2>

$ xsltproc --version
Using libxml 20630, libxslt 10122 and libexslt 813
xsltproc was compiled against libxml 20629, libxslt 10122 and libexslt 813
libxslt 10122 was compiled against libxml 20629
libexslt 813 was compiled against libxml 20629

Docbook XSL: "rsync -av --port=5873 docbook.xml-doc.org::xsl" at Sun Nov 25 11:22:39 EST 2007


  • Mauritz Jeanson

    Mauritz Jeanson - 2007-11-30

    Logged In: YES
    Originator: NO

    This is caused by the fix I made in response to bug #1811721. Sigh... :-).

    I have now changed "not(ancestor::title)" to "not(ancestor::*[@id = $target/@id] or ancestor::*[@xml:id = $target/@xml:id])" in titles.xsl. This makes an xref in a title be rendered in the TOC, provided that the target is not an ancestor element.

  • Mauritz Jeanson

    Mauritz Jeanson - 2007-11-30
    • status: open --> pending-fixed
  • SourceForge Robot

    Logged In: YES
    Originator: NO

    This Tracker item was closed automatically by the system. It was
    previously set to a Pending status, and the original submitter
    did not respond within 14 days (the time period specified by
    the administrator of this Tracker).

  • SourceForge Robot

    • status: pending-fixed --> closed-fixed

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks