Skip to content

Commit 1f6e0ce

Browse files
committed
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
1 parent 2523928 commit 1f6e0ce

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

doc/src/sgml/stylesheet-html-common.xsl

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,11 @@ set toc,title
127127
&uppercase;),
128128
substring(&primary;, 1, 1)))]"/>
129129

130-
<div class="index">
131-
<!-- pgsql-docs: begin added stuff -->
130+
<!-- pgsql-docs: added xmlns:xlink, autoidx.xsl doesn't include xlink in
131+
exclude-result-prefixes. Without our customization that just leads to a
132+
single xmlns:xlink in this div, but because we emit it it otherwise
133+
gets pushed down to the elements output by autoidx.xsl -->
134+
<div class="index" xmlns:xlink="http://www.w3.org/1999/xlink">
132135
<p class="indexdiv-quicklinks">
133136
<a href="#indexdiv-Symbols">
134137
<xsl:call-template name="gentext">

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy