]> granicus.if.org Git - apache/commitdiff
The XSLT Saxon engine warns about some "Ambiguous rule matches".
authorChristophe Jaillet <jailletc36@apache.org>
Thu, 27 Sep 2018 20:44:08 +0000 (20:44 +0000)
committerChristophe Jaillet <jailletc36@apache.org>
Thu, 27 Sep 2018 20:44:08 +0000 (20:44 +0000)
Use priority to remove the ambiguity.

The only rational for choosing "3" and "4" for these priorities, is that "4" is related to <h4> tags, and 3=4-1 for the previous level.

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@1842165 13f79535-47bb-0310-9956-ffa450edef68

docs/manual/style/xsl/common.xsl

index f0a0cea5a9b4645f84becdc7eeca56041dd9070e..2a7964577598285fdd22579e2613f92b9ae7bb81 100644 (file)
@@ -542,7 +542,7 @@ if (typeof(prettyPrint) !== 'undefined') {
 <!-- ==================================================================== -->
 <!-- handle subsections (lower level headings)                            -->
 <!-- ==================================================================== -->
-<xsl:template match="section/section">
+<xsl:template match="section/section" priority="3">
 <!-- Section heading -->
 <h3>
     <xsl:choose>
@@ -567,7 +567,7 @@ if (typeof(prettyPrint) !== 'undefined') {
 <!-- ==================================================================== -->
 <!-- handle subsubsections (h4)                                           -->
 <!-- ==================================================================== -->
-<xsl:template match="section/section/section">
+<xsl:template match="section/section/section" priority="4">
 <!-- Section heading -->
 <h4>
     <xsl:choose>