From: SourceForge.net <no...@so...> - 2005-05-26 07:28:15
|
Bugs item #851598, was opened at 2003-11-30 08:18 Message generated for change (Comment added) made by bobstayton You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=373747&aid=851598&group_id=21935 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: DocBook XSL Group: HTML >Status: Closed >Resolution: Fixed Priority: 5 Submitted By: Oleg Paraschenko (olpa) >Assigned to: Robert Stayton (bobstayton) Summary: links to <legalnotice> in html are broken Initial Comment: Code is from CVS, dated 30 november 2003 I try to make a link to "legalnotice": ----- <ln1.xml> <!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" "docbookx.dtd"> <article> <articleinfo> <title>Title of article</title> <legalnotice id="ln"><para>Legal notice of article</para></legalnotice> </articleinfo> <section> <title>Title of section</title> <para>See our <link linkend="ln">legal notice</link>.</para> </section> </article> ----- </ln1.xml> After running: $ /sourceforge/docbook/cvstools/saxon ln1.xml /sourceforge/docbook/xsl/html/docbook.xsl I get ----- <result> ... <div class="legalnotice"><p>Legal notice of article</p></div> ... <p>See our <a href="#ln">legal notice</a>. ... ----- </result> First problem is that output does not contain <a name="ln"> It is possible to workaround first problem by moving "id" inside "legalnotice": ----- <ln2.xml> <!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" "docbookx.dtd"> <article> <articleinfo> <title>Title of article</title> <legalnotice><para id="ln">Legal notice of article</para></legalnotice> </articleinfo> <section> <title>Title of section</title> <para>See our <link linkend="ln">legal notice</link>.</para> </section> </article> ----- </ln2.xml> First problem disappears, but appears a problem with chunking when "legalnotice" should be in separate file: $ /sourceforge/docbook/cvstools/saxon ln2.xml /sourceforge/docbook/xsl/html/chunk.xsl dummy generate.legalnotice.link=1 Now content of "legalnotice" is in separate file, but link points to main file: <p>See our <a href="index.html#ln">legal notice</a> instead of "legalnotice" file, for example: <p>See our <a href="ln-d0e7.html#ln">legal notice</a> ---------------------------------------------------------------------- Comment By: Robert Stayton (bobstayton) Date: 2005-05-26 00:28 Message: Logged In: YES user_id=193218 A fix for this issue has been added to the current codebase. Please test the fix with the latest snapshot from: http://docbook.sourceforge.net/snapshots/ ---------------------------------------------------------------------- Comment By: Robert Stayton (bobstayton) Date: 2004-08-13 00:06 Message: Logged In: YES user_id=193218 For nonchunked legalnotice, I added the <a name> element so it can be linked to. The same on the FO side. But when the legalnotice is chunked, I'm not clear on how to handle it since it is not a normal chunk, but a special chunk, so it isn't handled properly by the xref machinery. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=373747&aid=851598&group_id=21935 |