Fix XML namespace declarations
authorPeter Eisentraut <[email protected]>
Tue, 15 Feb 2022 09:58:28 +0000 (10:58 +0100)
committerPeter Eisentraut <[email protected]>
Tue, 15 Feb 2022 10:13:49 +0000 (11:13 +0100)
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 <[email protected]>
Discussion: https://www.postgresql.org/message-id/flat/20220213201618.qz6p6noon3wagr3f%40alap3.anarazel.de

doc/src/sgml/stylesheet-hh.xsl
doc/src/sgml/stylesheet-html-common.xsl
doc/src/sgml/stylesheet-html-nochunk.xsl
doc/src/sgml/stylesheet-text.xsl
doc/src/sgml/stylesheet.xsl

index 1b1ab4bbe9e681ce58737b068e0dbd1d9b1de014..6f4b706dac67dd8e26c6dc5f3c87278235b4273a 100644 (file)
@@ -1,8 +1,6 @@
 <?xml version='1.0'?>
 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
-                version='1.0'
-                xmlns="http://www.w3.org/TR/xhtml1/transitional"
-                exclude-result-prefixes="#default">
+                version='1.0'>
 
 <xsl:import href="http://docbook.sourceforge.net/release/xsl/current/htmlhelp/htmlhelp.xsl"/>
 <xsl:include href="stylesheet-common.xsl" />
index d9961089c650137f1f1480d95b55ceb8016f0cb8..96dd2cc038d999fdebcbd4b9b99e885af4467075 100644 (file)
@@ -4,7 +4,8 @@
 %common.entities;
 ]>
 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
-                version="1.0">
+                version="1.0"
+                xmlns="http://www.w3.org/1999/xhtml">
 
 <!--
   This file contains XSLT stylesheet customizations that are common to
index 78add26a9f46ea58e15bc6ee93b3e996c9b80137..8167127b93a7ae197ec364562699b2565848820d 100644 (file)
@@ -1,8 +1,6 @@
 <?xml version='1.0'?>
 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
-                version='1.0'
-                xmlns="http://www.w3.org/TR/xhtml1/transitional"
-                exclude-result-prefixes="#default">
+                version='1.0'>
 
 <xsl:import href="http://docbook.sourceforge.net/release/xsl/current/xhtml/docbook.xsl"/>
 <xsl:include href="stylesheet-common.xsl" />
index 476b871870d233799d9b4160188bf8d6e7e3311c..529cc9ec38a58e7bc3e84e1ebb52ed54f1ee14b0 100644 (file)
@@ -1,8 +1,7 @@
 <?xml version='1.0'?>
 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                 version='1.0'
-                xmlns="http://www.w3.org/TR/xhtml1/transitional"
-                exclude-result-prefixes="#default">
+                xmlns="http://www.w3.org/1999/xhtml">
 
 <xsl:import href="http://docbook.sourceforge.net/release/xsl/current/xhtml/docbook.xsl"/>
 <xsl:import href="stylesheet-common.xsl" />
index 0eac594f0cc4ab56091a5f8a2e24ac50eebf3379..b6141303abd2f4542154c9fef4ac4637313d97a1 100644 (file)
@@ -1,8 +1,7 @@
 <?xml version='1.0'?>
 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                 version='1.0'
-                xmlns="http://www.w3.org/TR/xhtml1/transitional"
-                exclude-result-prefixes="#default">
+                xmlns="http://www.w3.org/1999/xhtml">
 
 <xsl:import href="http://docbook.sourceforge.net/release/xsl/current/xhtml/chunk.xsl"/>
 <xsl:include href="stylesheet-common.xsl" />