Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit6538be9

Browse files
committed
Fix XML namespace declarations
The XSL stylesheets used a mix of incorrect or outdated namespacedeclarations for XHTML, probably based on ancient advice and examples.Clean all this up.Besides improving correctness (although probably no impact inpractice, other than possible validation failures), this removes abunch 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 parent3279cef commit6538be9

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:stylesheetxmlns: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:importhref="http://docbook.sourceforge.net/release/xsl/current/htmlhelp/htmlhelp.xsl"/>
86
<xsl:includehref="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:stylesheetxmlns: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:stylesheetxmlns: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:importhref="http://docbook.sourceforge.net/release/xsl/current/xhtml/docbook.xsl"/>
86
<xsl:includehref="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:stylesheetxmlns: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:importhref="http://docbook.sourceforge.net/release/xsl/current/xhtml/docbook.xsl"/>
87
<xsl:importhref="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:stylesheetxmlns: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:importhref="http://docbook.sourceforge.net/release/xsl/current/xhtml/chunk.xsl"/>
87
<xsl:includehref="stylesheet-common.xsl" />

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp