docs: Work around bug in the docbook xsl stylesheets.
authorAndres Freund <andres@anarazel.de>
Tue, 15 Feb 2022 21:44:22 +0000 (13:44 -0800)
committerAndres Freund <andres@anarazel.de>
Tue, 15 Feb 2022 21:52:40 +0000 (13:52 -0800)
commit1f6e0ce3beb45f23e4774148bd654d915be8d611
tree4cefc48c12b8e48be28009604fd1d69180e62c77
parent2523928b285b06242e0c669fadfc76d73bafdd66
docs: Work around bug in the docbook xsl stylesheets.

docbook-xsl's index generation stylesheet (autoidx.xsl) has a small bug: It
doesn't include xlink in exclude-result-prefixes. Normally just leads to a a
single xmlns:xlink in the <div> containing the index, but because our
customization emits that, xmlns:xlink intead gets added to every element
output by autoidx.xsl below the <div>, totalling around 100kB.

Adding the spurious xmlns:xlink to the <div> ourselves isn't great, but avoids
the duplication.

Reviewed-By: Peter Eisentraut <peter@eisentraut.org>
Discussion: https://postgr.es/m/20220213201618.qz6p6noon3wagr3f%40alap3.anarazel.de
doc/src/sgml/stylesheet-html-common.xsl