Skip to content

Commit 6538be9

Browse files
committed
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 <andres@anarazel.de> Discussion: https://www.postgresql.org/message-id/flat/20220213201618.qz6p6noon3wagr3f%40alap3.anarazel.de
1 parent 3279cef commit 6538be9

File tree

5 files changed

+6
-11
lines changed

5 files changed

+6
-11
lines changed

doc/src/sgml/stylesheet-hh.xsl

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
<?xml version='1.0'?>
22
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
3-
version='1.0'
4-
xmlns="http://www.w3.org/TR/xhtml1/transitional"
5-
exclude-result-prefixes="#default">
3+
version='1.0'>
64

75
<xsl:import href="http://docbook.sourceforge.net/release/xsl/current/htmlhelp/htmlhelp.xsl"/>
86
<xsl:include href="stylesheet-common.xsl" />

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
%common.entities;
55
]>
66
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
7-
version="1.0">
7+
version="1.0"
8+
xmlns="http://www.w3.org/1999/xhtml">
89

910
<!--
1011
This file contains XSLT stylesheet customizations that are common to

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
<?xml version='1.0'?>
22
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
3-
version='1.0'
4-
xmlns="http://www.w3.org/TR/xhtml1/transitional"
5-
exclude-result-prefixes="#default">
3+
version='1.0'>
64

75
<xsl:import href="http://docbook.sourceforge.net/release/xsl/current/xhtml/docbook.xsl"/>
86
<xsl:include href="stylesheet-common.xsl" />

doc/src/sgml/stylesheet-text.xsl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
<?xml version='1.0'?>
22
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
33
version='1.0'
4-
xmlns="http://www.w3.org/TR/xhtml1/transitional"
5-
exclude-result-prefixes="#default">
4+
xmlns="http://www.w3.org/1999/xhtml">
65

76
<xsl:import href="http://docbook.sourceforge.net/release/xsl/current/xhtml/docbook.xsl"/>
87
<xsl:import href="stylesheet-common.xsl" />

doc/src/sgml/stylesheet.xsl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
<?xml version='1.0'?>
22
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
33
version='1.0'
4-
xmlns="http://www.w3.org/TR/xhtml1/transitional"
5-
exclude-result-prefixes="#default">
4+
xmlns="http://www.w3.org/1999/xhtml">
65

76
<xsl:import href="http://docbook.sourceforge.net/release/xsl/current/xhtml/chunk.xsl"/>
87
<xsl:include href="stylesheet-common.xsl" />

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