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

From: Erik Wienhold <ewie(at)ewie(dot)name>
To: Alexander Lakhin <exclusion(at)gmail(dot)com>
Cc: Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>, 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-05-01 19:24:47
Message-ID: nfykx4quyxtygaveoslooo5o5a4234bjk6easwek7dsvwtwzkv@rz4upyxjw4ic
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-docs

On 2024-04-25 22:00 +0200, Alexander Lakhin wrote:
> 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

It works.

There are already a couple of upstream fixes copied into our
stylesheets, with links to bug reports. So I also created one for
reference, with my upthread test case:

https://github.com/docbook/xslt10-stylesheets/issues/267

--
Erik

In response to

Browse pgsql-docs by date

  From Date Subject
Next Message Laurenz Albe 2024-05-02 10:36:41 Re: roles that have the CREATEROLE privilege can no longer GRANT predefined roles
Previous Message PG Doc comments form 2024-05-01 16:09:55 roles that have the CREATEROLE privilege can no longer GRANT predefined roles