diff options
author | Ulrich Müller <ulm@gentoo.org> | 2024-10-28 18:05:51 +0100 |
---|---|---|
committer | Ulrich Müller <ulm@gentoo.org> | 2024-10-28 18:05:51 +0100 |
commit | 18c1d5bd22f885c90e440ea408700285bb20165d (patch) | |
tree | 56062da3c81f9b81876f24f9549e4f79305f1e75 /xsl | |
parent | devbook.xsl: Rework templates for previous/next node (diff) | |
download | devmanual-18c1d5bd22f885c90e440ea408700285bb20165d.tar.gz devmanual-18c1d5bd22f885c90e440ea408700285bb20165d.tar.bz2 devmanual-18c1d5bd22f885c90e440ea408700285bb20165d.zip |
xsl: Drop the xmlns=xhtml attribute from all stylesheet elements
This caused some HTML elements to contain spurious xmlns attributes,
e.g. in quickstart/index.html:
<span xmlns="http://www.w3.org/1999/xhtml" class="Statement">dodoc</span>
Apparently this is valid in HTML 5, so neither tidy nor the W3C
validator would warn about it (and it went unnoticed since 2015):
"In HTML documents, elements in the HTML namespace may have an xmlns
attribute specified, if, and only if, it has the exact value
'http://www.w3.org/1999/xhtml'."
https://html.spec.whatwg.org/multipage/dom.html#global-attributes
Use single and double quotes consistently. Whitespace fixes.
Fixes: bf60a8772d3ece409e2fbe0b4dd8b5a5dd7df167
Fixes: e918c7dc8268c4a4723ab4b3a35479f4d191a765
Signed-off-by: Ulrich Müller <ulm@gentoo.org>
Diffstat (limited to 'xsl')
-rw-r--r-- | xsl/lang.highlight.c.xsl | 12 | ||||
-rw-r--r-- | xsl/lang.highlight.ebuild.xsl | 12 | ||||
-rw-r--r-- | xsl/lang.highlight.m4.xsl | 12 | ||||
-rw-r--r-- | xsl/lang.highlight.make.xsl | 12 | ||||
-rw-r--r-- | xsl/lang.highlight.sgml.xsl | 12 | ||||
-rw-r--r-- | xsl/str.tokenize.function.xsl | 13 |
6 files changed, 36 insertions, 37 deletions
diff --git a/xsl/lang.highlight.c.xsl b/xsl/lang.highlight.c.xsl index f1e5937..5d724c4 100644 --- a/xsl/lang.highlight.c.xsl +++ b/xsl/lang.highlight.c.xsl @@ -1,10 +1,10 @@ <?xml version="1.0" encoding="UTF-8"?> -<xsl:stylesheet version='1.0' xmlns:xsl='http://www.w3.org/1999/XSL/Transform' - xmlns:str="http://exslt.org/strings" - xmlns:exslt="http://exslt.org/common" - extension-element-prefixes="str exslt xsl" - exclude-result-prefixes="str exslt xsl" - xmlns="http://www.w3.org/1999/xhtml"> +<xsl:stylesheet version="1.0" + xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns:str="http://exslt.org/strings" + xmlns:exslt="http://exslt.org/common" + extension-element-prefixes="str exslt xsl" + exclude-result-prefixes="str exslt xsl"> <xsl:template name="lang.highlight.c.subtokenate"> <xsl:param name="data"/> diff --git a/xsl/lang.highlight.ebuild.xsl b/xsl/lang.highlight.ebuild.xsl index f615393..b41c44b 100644 --- a/xsl/lang.highlight.ebuild.xsl +++ b/xsl/lang.highlight.ebuild.xsl @@ -1,10 +1,10 @@ <?xml version="1.0" encoding="UTF-8"?> -<xsl:stylesheet version='1.0' xmlns:xsl='http://www.w3.org/1999/XSL/Transform' - xmlns:str="http://exslt.org/strings" - xmlns:exslt="http://exslt.org/common" - extension-element-prefixes="str exslt xsl" - exclude-result-prefixes="str exslt xsl" - xmlns="http://www.w3.org/1999/xhtml"> +<xsl:stylesheet version="1.0" + xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns:str="http://exslt.org/strings" + xmlns:exslt="http://exslt.org/common" + extension-element-prefixes="str exslt xsl" + exclude-result-prefixes="str exslt xsl"> <xsl:variable name="lang.highlight.ebuild.qvariable-start">$</xsl:variable> <xsl:variable name="lang.highlight.ebuild.variable-start">${</xsl:variable> diff --git a/xsl/lang.highlight.m4.xsl b/xsl/lang.highlight.m4.xsl index 9d75967..4918fb9 100644 --- a/xsl/lang.highlight.m4.xsl +++ b/xsl/lang.highlight.m4.xsl @@ -1,10 +1,10 @@ <?xml version="1.0" encoding="UTF-8"?> -<xsl:stylesheet version='1.0' xmlns:xsl='http://www.w3.org/1999/XSL/Transform' - xmlns:str="http://exslt.org/strings" - xmlns:exslt="http://exslt.org/common" - extension-element-prefixes="str exslt xsl" - exclude-result-prefixes="str exslt xsl" - xmlns="http://www.w3.org/1999/xhtml"> +<xsl:stylesheet version="1.0" + xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns:str="http://exslt.org/strings" + xmlns:exslt="http://exslt.org/common" + extension-element-prefixes="str exslt xsl" + exclude-result-prefixes="str exslt xsl"> <xsl:template name="lang.highlight.m4.subtokenate"> <xsl:param name="data"/> diff --git a/xsl/lang.highlight.make.xsl b/xsl/lang.highlight.make.xsl index dbc082a..f8930c4 100644 --- a/xsl/lang.highlight.make.xsl +++ b/xsl/lang.highlight.make.xsl @@ -1,10 +1,10 @@ <?xml version="1.0" encoding="UTF-8"?> -<xsl:stylesheet version='1.0' xmlns:xsl='http://www.w3.org/1999/XSL/Transform' - xmlns:str="http://exslt.org/strings" - xmlns:exslt="http://exslt.org/common" - extension-element-prefixes="str exslt xsl" - exclude-result-prefixes="str exslt xsl" - xmlns="http://www.w3.org/1999/xhtml"> +<xsl:stylesheet version="1.0" + xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns:str="http://exslt.org/strings" + xmlns:exslt="http://exslt.org/common" + extension-element-prefixes="str exslt xsl" + exclude-result-prefixes="str exslt xsl"> <xsl:template name="lang.highlight.make.subtokenate"> <xsl:param name="data"/> diff --git a/xsl/lang.highlight.sgml.xsl b/xsl/lang.highlight.sgml.xsl index bdd06b7..f88e502 100644 --- a/xsl/lang.highlight.sgml.xsl +++ b/xsl/lang.highlight.sgml.xsl @@ -1,10 +1,10 @@ <?xml version="1.0" encoding="UTF-8"?> -<xsl:stylesheet version='1.0' xmlns:xsl='http://www.w3.org/1999/XSL/Transform' - xmlns:str="http://exslt.org/strings" - xmlns:exslt="http://exslt.org/common" - extension-element-prefixes="str exslt xsl" - exclude-result-prefixes="str exslt xsl" - xmlns="http://www.w3.org/1999/xhtml"> +<xsl:stylesheet version="1.0" + xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns:str="http://exslt.org/strings" + xmlns:exslt="http://exslt.org/common" + extension-element-prefixes="str exslt xsl" + exclude-result-prefixes="str exslt xsl"> <xsl:template name="lang.highlight.sgml.subtokenate"> <xsl:param name="data"/> diff --git a/xsl/str.tokenize.function.xsl b/xsl/str.tokenize.function.xsl index 3c3275d..8fc452c 100644 --- a/xsl/str.tokenize.function.xsl +++ b/xsl/str.tokenize.function.xsl @@ -5,11 +5,10 @@ <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:func="http://exslt.org/functions" - xmlns:exsl="http://exslt.org/common" + xmlns:exslt="http://exslt.org/common" xmlns:str="http://exslt.org/strings" - extension-element-prefixes="str func exsl xsl" - exclude-result-prefixes="str func exsl xsl" - xmlns="http://www.w3.org/1999/xhtml"> + extension-element-prefixes="str func exslt xsl" + exclude-result-prefixes="str func exslt xsl"> <func:function name="str:tokenize_plasmaroo"> <xsl:param name="string" select="''" /> @@ -18,9 +17,9 @@ <xsl:when test="not($string)"> <func:result select="/.." /> </xsl:when> - <xsl:when test="not(function-available('exsl:node-set'))"> + <xsl:when test="not(function-available('exslt:node-set'))"> <xsl:message terminate="yes"> - ERROR: EXSLT - Functions implementation of str:tokenize relies on exsl:node-set(). + ERROR: EXSLT - Functions implementation of str:tokenize relies on exslt:node-set(). </xsl:message> </xsl:when> <xsl:otherwise> @@ -39,7 +38,7 @@ </xsl:otherwise> </xsl:choose> </xsl:variable> - <func:result select="exsl:node-set($tokens)/*" /> + <func:result select="exslt:node-set($tokens)/*" /> </xsl:otherwise> </xsl:choose> </func:function> |