#1067 Eclipse output toc.xml invalid

other
closed-wont-fix
nobody
XSL (1066)
5
2009-10-02
2009-09-02
Michael Ihde
No

In the etoc template the top-level topic doesn't have an href attribute, instead it has a topic attribute.

The eclipse.xsl has this:

<toc label="{normalize-space($title)}" topic="{$href}">
<xsl:apply-templates select="key('id',$rootid)/*"
mode="etoc" />
</toc>

When it should have this:

<toc label="{normalize-space($title)}" href="{$href}">
<xsl:apply-templates select="key('id',$rootid)/*"
mode="etoc" />
</toc>

Discussion

  • Is this really a bug? According to the Eclipse Platform Plug-in Developer Guide, three attributes are possible on <toc> elements in TOC files: link_to, label, and topic.
    See http://is.gd/2O7rt.

    If you think that this is wrong, please provide a reference.

     
  • Michael Ihde
    Michael Ihde
    2009-10-02

    My apologies, you are correct. The problem I had was that the index.html did exist at topic="{$href}" so I got a "Topic not found" error. I made the change above and regenerated the files and and the error went away; therefore I incorrectly assumed that the change fixed the issue.

    You may close this as non-discrepant.

     
    • status: open --> closed-wont-fix