From 6538be9e1e412224c69f447d2b08342ba47ce9f1 Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Tue, 15 Feb 2022 10:58:28 +0100 Subject: [PATCH] Fix XML namespace declarations The XSL stylesheets used a mix of incorrect or outdated namespace declarations for XHTML, probably based on ancient advice and examples. Clean all this up. Besides improving correctness (although probably no impact in practice, other than possible validation failures), this removes a bunch of useless namespace declarations in the HTML output. Reported-by: Andres Freund Discussion: https://www.postgresql.org/message-id/flat/20220213201618.qz6p6noon3wagr3f%40alap3.anarazel.de --- doc/src/sgml/stylesheet-hh.xsl | 4 +--- doc/src/sgml/stylesheet-html-common.xsl | 3 ++- doc/src/sgml/stylesheet-html-nochunk.xsl | 4 +--- doc/src/sgml/stylesheet-text.xsl | 3 +-- doc/src/sgml/stylesheet.xsl | 3 +-- 5 files changed, 6 insertions(+), 11 deletions(-) diff --git a/doc/src/sgml/stylesheet-hh.xsl b/doc/src/sgml/stylesheet-hh.xsl index 1b1ab4bbe9e..6f4b706dac6 100644 --- a/doc/src/sgml/stylesheet-hh.xsl +++ b/doc/src/sgml/stylesheet-hh.xsl @@ -1,8 +1,6 @@ + version='1.0'> diff --git a/doc/src/sgml/stylesheet-html-common.xsl b/doc/src/sgml/stylesheet-html-common.xsl index d9961089c65..96dd2cc038d 100644 --- a/doc/src/sgml/stylesheet-html-common.xsl +++ b/doc/src/sgml/stylesheet-html-common.xsl @@ -4,7 +4,8 @@ %common.entities; ]> + version="1.0" + xmlns="http://www.w3.org/1999/xhtml">