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
This commit is contained in:
parent
3279cef072
commit
6538be9e1e
@ -1,8 +1,6 @@
|
|||||||
<?xml version='1.0'?>
|
<?xml version='1.0'?>
|
||||||
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||||
version='1.0'
|
version='1.0'>
|
||||||
xmlns="http://www.w3.org/TR/xhtml1/transitional"
|
|
||||||
exclude-result-prefixes="#default">
|
|
||||||
|
|
||||||
<xsl:import href="http://docbook.sourceforge.net/release/xsl/current/htmlhelp/htmlhelp.xsl"/>
|
<xsl:import href="http://docbook.sourceforge.net/release/xsl/current/htmlhelp/htmlhelp.xsl"/>
|
||||||
<xsl:include href="stylesheet-common.xsl" />
|
<xsl:include href="stylesheet-common.xsl" />
|
||||||
|
@ -4,7 +4,8 @@
|
|||||||
%common.entities;
|
%common.entities;
|
||||||
]>
|
]>
|
||||||
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
<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
|
This file contains XSLT stylesheet customizations that are common to
|
||||||
|
@ -1,8 +1,6 @@
|
|||||||
<?xml version='1.0'?>
|
<?xml version='1.0'?>
|
||||||
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||||
version='1.0'
|
version='1.0'>
|
||||||
xmlns="http://www.w3.org/TR/xhtml1/transitional"
|
|
||||||
exclude-result-prefixes="#default">
|
|
||||||
|
|
||||||
<xsl:import href="http://docbook.sourceforge.net/release/xsl/current/xhtml/docbook.xsl"/>
|
<xsl:import href="http://docbook.sourceforge.net/release/xsl/current/xhtml/docbook.xsl"/>
|
||||||
<xsl:include href="stylesheet-common.xsl" />
|
<xsl:include href="stylesheet-common.xsl" />
|
||||||
|
@ -1,8 +1,7 @@
|
|||||||
<?xml version='1.0'?>
|
<?xml version='1.0'?>
|
||||||
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||||
version='1.0'
|
version='1.0'
|
||||||
xmlns="http://www.w3.org/TR/xhtml1/transitional"
|
xmlns="http://www.w3.org/1999/xhtml">
|
||||||
exclude-result-prefixes="#default">
|
|
||||||
|
|
||||||
<xsl:import href="http://docbook.sourceforge.net/release/xsl/current/xhtml/docbook.xsl"/>
|
<xsl:import href="http://docbook.sourceforge.net/release/xsl/current/xhtml/docbook.xsl"/>
|
||||||
<xsl:import href="stylesheet-common.xsl" />
|
<xsl:import href="stylesheet-common.xsl" />
|
||||||
|
@ -1,8 +1,7 @@
|
|||||||
<?xml version='1.0'?>
|
<?xml version='1.0'?>
|
||||||
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||||
version='1.0'
|
version='1.0'
|
||||||
xmlns="http://www.w3.org/TR/xhtml1/transitional"
|
xmlns="http://www.w3.org/1999/xhtml">
|
||||||
exclude-result-prefixes="#default">
|
|
||||||
|
|
||||||
<xsl:import href="http://docbook.sourceforge.net/release/xsl/current/xhtml/chunk.xsl"/>
|
<xsl:import href="http://docbook.sourceforge.net/release/xsl/current/xhtml/chunk.xsl"/>
|
||||||
<xsl:include href="stylesheet-common.xsl" />
|
<xsl:include href="stylesheet-common.xsl" />
|
||||||
|
Loading…
x
Reference in New Issue
Block a user