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-a08a831b6...@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