You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by Rainer Jung <rj...@apache.org> on 2014/12/06 14:33:14 UTC

[BACKUP] svn commit: r1643045 - /tomcat/trunk/webapps/docs/tomcat-docs.xsl

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-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org