Author: kkolinko
Date: 2014-12-03 02:42:18 +0000 (Wed, 03 Dec 2014)
New Revision: r1643045

URL: http://svn.apache.org/r1643045
Log:

Simplify XPath expression. Not a functional change (no changes in the output).

Modified:
    /tomcat/trunk/webapps/docs/tomcat-docs.xsl

Index: tomcat/trunk/webapps/docs/tomcat-docs.xsl
===================================================================
--- tomcat/trunk/webapps/docs/tomcat-docs.xsl   (revision 1643044)
+++ tomcat/trunk/webapps/docs/tomcat-docs.xsl   (revision 1643045)
@@ -292,7 +292,7 @@
         </xsl:when>
         <xsl:otherwise>
           <xsl:if test="
-              count(//*[(local-name()='section' or local-name()='subsection') 
and @name=current()/@name]) &gt; 1
+              count(//*[self::section or 
self::subsection][@name=current()/@name]) &gt; 1
               ">
             <xsl:value-of select="concat(ancestor::section/@name, '/')"/>
           </xsl:if>
@@ -333,7 +333,7 @@
         </xsl:when>
         <xsl:otherwise>
           <xsl:if test="local-name()='subsection' and
-              count(//*[(local-name()='section' or local-name()='subsection') 
and @name=current()/@name]) &gt; 1
+              count(//*[self::section or 
self::subsection][@name=current()/@name]) &gt; 1
               ">
             <xsl:value-of select="concat(ancestor::section/@name, '/')"/>
           </xsl:if>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to