This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: [docbook-apps] xsl/xhtml: IDs into the generated index
- From: Bob Stayton <bobs at sco dot com>
- To: Sam Steingold <sds at gnu dot org>
- Cc: docbook-apps at lists dot oasis-open dot org
- Date: Mon, 2 Jun 2003 02:12:42 -0700
- Subject: Re: [docbook-apps] xsl/xhtml: IDs into the generated index
- References: <m3smqz3req.fsf@loiso.podval.org>
On Wed, May 28, 2003 at 01:35:57PM -0400, Sam Steingold wrote:
> consider this mouthful:
>
> <firstterm><emphasis role="first"><function>CLOS:NO-PRIMARY-METHOD</function></emphasis>
> <indexterm id="no-prim-meth" significance="preferred"><primary id="no-prim-meth-i"><function>NO-PRIMARY-METHOD</function></primary></indexterm></firstterm>
>
> and
>
> <index id="idx"></index>
>
> I want to be able to write (elsewhere)
>
> idx.html#no-prim-meth-i
>
> to refer the users to the location of NO-PRIMARY-METHOD in the index.
> Unfortunately, the ID of the element `primary' is not passed into the
> file idx.html.
> Is this a known bug?
> What can I do?
Probably not a bug, probably no one thought to try
it before. You could file a feature request.
But since some index entries are merged, it isn't clear
to me where to put primary ids. For example, given
these two indexterms:
<indexterm>
<primary id="foo">important methods</primary>
<secondary>this method</secondary>
</indexterm>
<indexterm>
<primary id="bar">important methods</primary>
<secondary>that other method</secondary>
</indexterm>
Since the primary terms match, these two entries are merged
into one primary and two secondary listings. But you
can't put two ids on one primary. Perhaps you meant
there should be two <a name="..."> anchors preceding
the primary term?
--
Bob Stayton 400 Encinal Street
Publications Architect Santa Cruz, CA 95060
Technical Publications voice: (831) 427-7796
The SCO Group fax: (831) 429-1887
email: bobs@sco.com
---------------------------------------------------------------------
To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org