]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
The XSLT Saxon engine warns that match="@*" will return only attribute nodes, which...
authorChristophe Jaillet <jailletc36@apache.org>
Thu, 27 Sep 2018 19:18:51 +0000 (19:18 +0000)
committerChristophe Jaillet <jailletc36@apache.org>
Thu, 27 Sep 2018 19:18:51 +0000 (19:18 +0000)
So simplify the xsl rules accordingly.

Tested with the actual Xalan XSL engine:
   ./build.sh all
with and without the change.
Outputs are exactly the same.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1842146 13f79535-47bb-0310-9956-ffa450edef68

docs/manual/style/xsl/common.xsl

index d6905ce0d882f30e7cbb65275f33fb3f67284bc3..f0a0cea5a9b4645f84becdc7eeca56041dd9070e 100644 (file)
@@ -1260,11 +1260,7 @@ if (typeof(prettyPrint) !== 'undefined') {
     <xsl:text>Is the document valid (try `build validate-xml`)?</xsl:text>
 </xsl:message>
 </xsl:template>
-<xsl:template match="@*">
-<xsl:copy>
-    <xsl:apply-templates select="*|@*|text()" />
-</xsl:copy>
-</xsl:template>
+<xsl:template match="@*"><xsl:copy /></xsl:template>
 <xsl:template match="br"><br /></xsl:template>
 <xsl:template match="tr"><tr><xsl:apply-templates select="*|@*|text()" /></tr></xsl:template>
 <xsl:template match="th"><th><xsl:apply-templates select="*|@*|text()" /></th></xsl:template>