Commit 4bf94d38 authored by Christophe Jaillet's avatar Christophe Jaillet
Browse files

The XSLT Saxon engine warns that match="@*" will return only attribute nodes,...

The XSLT Saxon engine warns that  match="@*" will return only attribute nodes, which can't have any attributes or child.

So simplify the xsl rules accordingly.

Tested with:
   ./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
parent c0c8c9a0
Loading
Loading
Loading
Loading
+1 −5
Changes for docs/manual/style/xsl/common.xsl: 1 added line, 5 removed lines.
Original line number Diff line number Diff line
@@ -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>