Hi,
This turns out to be a bug in how the cross reference text to a varlistentry is
generated. The indexterm in the term is generating an empty <a name> anchor as part
of the xref text. When that is wrapped with the <a href> to make the link, that
produces an invalid nested <a> and browsers don't display it as a link.
This template could be added to your customization layer to patch the problem. I'll
fix it in the XSL source files for the next release.
<xsl:template match="d:varlistentry/d:term" mode="xref-to">
<xsl:param name="referrer"/>
<xsl:param name="xrefstyle"/>
<xsl:apply-templates mode="no.anchor.mode"/>
</xsl:template>
The mode="no.anchor.mode" causes it to omit indexterms from the xref text.
Bob Stayton
Sagehill Enterprises
----- Original Message -----
From: "Robert Pasternak" <>
To: "Bob Stayton" <>
Cc: <>
Sent: Monday, August 01, 2011 11:50 PM
Subject: Re: [docbook-apps] olinking to varlistentry with indexterm inside term
Hi,
I use xhtml/profile-chunk.xsl.
Robert
On Mon, Aug 1, 2011 at 8:07 PM, Bob Stayton <> wrote:
> Hi,
> It works for me in PDF output. Does your XML file validate? You didn't
> mention what kind of output you are generating.
>
> Bob Stayton
> Sagehill Enterprises
>
>
>
> ----- Original Message ----- From: "Robert Pasternak" <>
> To: <>
> Sent: Monday, August 01, 2011 7:13 AM
> Subject: [docbook-apps] olinking to varlistentry with indexterm inside term
>
>
>> Hi,
>>
>> Let's consider the following XML fragment:
>>
>> <varlistentry xml:id="border-color">
>> <term>border-color</term>
>> <listitem>
>> <para>Specifies the color of all four borders of an
>> element.</para>
>> </listitem>
>> </varlistentry>
>>
>> When I use <olink targetptr="border-color"/>, then the link to the
>> varlistentry is created properly.
>> Now, if there is an indexterm element like this:
>>
>> <varlistentry xml:id="border-color">
>> <term>
>> <indexterm xml:id="id8856773342938128">
>> <primary>themes</primary>
>> <secondary>border style properties</secondary>
>> <tertiary>border-color</tertiary>
>> </indexterm>border-color</term>
>> <listitem>
>> <para>Specifies the color of all four borders of an
>> element.</para>
>> </listitem>
>> </varlistentry>
>>
>> then the same <olink targetptr="border-color"/> does not generate a
>> link, even though it properly outputs the label, i.e. "border-color"
>> text.
>>
>> Any ideas what's wrong with my docbook page?
>>
>> Robert
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail:
>> For additional commands, e-mail:
>>
>>
>>
>
>