This is the mail archive of the
docbook@lists.oasis-open.org
mailing list for the DocBook project.
HTML ID problem
- To: DocBook <docbook at lists dot oasis-open dot org>
- Subject: DOCBOOK: HTML ID problem
- From: Todd Babinski <todd dot babinski at dynetics dot com>
- Date: Tue, 24 Oct 2000 10:47:36 -0500
Hello,
I sent this question in a couple weeks ago, but it appears to have
slipped through the cracks.
I have come across a small problem that may just be a
configuration bug
on my part. I am using DocBook v4.1 (SGML) with the 1.57 DSSSL
stylesheets. In my content, I am using the id attribute for items that
I want to link back to. I am using the xref tag to link back to these
ids, and it is generating the text from the given xreflabel or
generating auto-text fine. The problem is the link. Xref is generating
an appropriate link to the id, such as:
x206.htm#HMADDMENUHELP
However, the link does not always work. For the ids that are on the
chapters or section tags, this is working fine, as in the HTML output,
DocBook
has placed <A NAME="..."> at the appropriate locations. for the above
example, I have the following markup in my content:
<command id="HMADDMENUHELP"> ...
I would have expected to get something like the following in the HTML
output:
<A NAME="HMADDMENUHELP"> ... </A>
but I am not getting the anchor put in place. As a result, any xrefed
link for that command is not going to the appropriate location in the
file
when a user links to it. I know I can just get around this by using the
anchor tag instead of the id, but I thought that this was what the id
attribute
was for.
Any insight would be appreciated.
Todd Babinski