From: SourceForge.net <no...@so...> - 2003-06-23 22:27:19
|
Bugs item #758158, was opened at 2003-06-20 13:51 Message generated for change (Comment added) made by bobstayton You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=373747&aid=758158&group_id=21935 Category: DocBook XSL Group: None >Status: Closed >Resolution: Fixed Priority: 5 Submitted By: Matthias Clasen (mcdb) Assigned to: Nobody/Anonymous (nobody) Summary: HTML: dangling links in generated index Initial Comment: the problem is that autoidx.xsl creates links pointing to the section containing the indexterm, without ensuring that the (possibly generated) section id actually appears in the html output. Possible fixes would be to link back directly to the indexterms (for which the generated ids are converted to <a name="...">) or making sure that all sections containing indexterms produce suitable anchors in the HTML). ---------------------------------------------------------------------- >Comment By: Robert Stayton (bobstayton) Date: 2003-06-23 15:27 Message: Logged In: YES user_id=193218 OK, I see the problem now. The template named 'anchor' outputs its <a name=""> only if it is an @id attribute or if the $conditional parameter is 0. This parameter needed to be set to zero in the call from the refsection templates. I checked the fix into CVS (html/refentry.xsl 1.16) if you want to try it out. ---------------------------------------------------------------------- Comment By: Robert Stayton (bobstayton) Date: 2003-06-23 14:38 Message: Logged In: YES user_id=193218 The XSL stylesheets automatically generate a <a name=""> anchor for each section title, chunked or non-chunked. It uses the object.id named template to do so. So there should be no dangling index entries. If you are seeing section titles without such anchors, then that's a bug. Can you supply a document that exhibits this behavior, along with the command that you use to process it? ---------------------------------------------------------------------- Comment By: Matthias Clasen (mcdb) Date: 2003-06-23 14:27 Message: Logged In: YES user_id=804589 Yes, I see the <a name=""> being generated, and the name is generated from the id on the section (a refsect2 in this case), but the href in the generated index points to an id as it would be generated by generate-id() for that section. I'll attach a small test case and the output of xsltproc /usr/local/share/sgml/docbook-xsl-1.61.3/html/docbook.xsl test.xml > test.html ---------------------------------------------------------------------- Comment By: Robert Stayton (bobstayton) Date: 2003-06-23 13:33 Message: Logged In: YES user_id=193218 The XSL stylesheets automatically generate a <a name=""> anchor for each section title, chunked or non-chunked. It uses the object.id named template to do so. So there should be no dangling index entries. If you are seeing section titles without such anchors, then that's a bug. Can you supply a document that exhibits this behavior, along with the command that you use to process it? ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=373747&aid=758158&group_id=21935 |