Re: nested <a> tags in glossary entries in html docs

From: Alexander Lakhin <exclusion(at)gmail(dot)com>
To: Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>, Erik Wienhold <ewie(at)ewie(dot)name>
Cc: Anton Voloshin <a(dot)voloshin(at)postgrespro(dot)ru>, pgsql-docs <pgsql-docs(at)lists(dot)postgresql(dot)org>
Subject: Re: nested <a> tags in glossary entries in html docs
Date: 2024-04-25 20:00:00
Message-ID: 672a27ae-0d77-2b28-62ea-83c9ccf2b424@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-docs

Hello,

25.04.2024 12:24, Alvaro Herrera wrote:
> On 2024-Apr-12, Erik Wienhold wrote:
>
>> There's this bug[1] in the DocBook XSLT stylesheets. Looks like the
>> fix[2] landed in 1.79.2 (latest version on Arch,
> Maybe one of these days we should get going with the migration to
> Docbook 5.x that Jürgen Purtz proposed.
>
> https://postgr.es/m/21ed3fd9-9020-4b53-b04f-a08a831b6085@purtz.de
>
> In the meantime, if anyone wants to suggest a XSLT patch to carry in our
> local definition, we could try that.

Please try the attached patch, which adds <xsl:template match="glossterm"
name="glossterm">, borrowed from /usr/share/xml/docbook/stylesheet/
docbook-xsl/xhtml/inline.xsl (I have docbook-xsl 1.79.2 installed), to our
local stylesheet-html-common.xsl.

I applied the modification from [1] (in two places) and it looks like the
nested <a> issue is gone.

[1] https://github.com/docbook/xslt10-stylesheets/pull/72/commits/62144252364492aecd71a3c8d5e6e1624af84785

Best regards,
Alexander

Attachment Content-Type Size
fix-bad-nested-anchor-elements-for-glossterm.patch text/x-patch 6.1 KB

In response to

Responses

Browse pgsql-docs by date

  From Date Subject
Next Message PG Doc comments form 2024-05-01 16:09:55 roles that have the CREATEROLE privilege can no longer GRANT predefined roles
Previous Message Alvaro Herrera 2024-04-25 17:35:55 Re: nested <a> tags in glossary entries in html docs