Author: kkolinko Date: Wed Dec 3 02:42:18 2014 New Revision: 1643045 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 Modified: tomcat/trunk/webapps/docs/tomcat-docs.xsl URL: http://svn.apache.org/viewvc/tomcat/trunk/webapps/docs/tomcat-docs.xsl?rev=1643045&r1=1643044&r2=1643045&view=diff ============================================================================== --- tomcat/trunk/webapps/docs/tomcat-docs.xsl (original) +++ tomcat/trunk/webapps/docs/tomcat-docs.xsl Wed Dec 3 02:42:18 2014 @@ -292,7 +292,7 @@ </xsl:when> <xsl:otherwise> <xsl:if test=" - count(//*[(local-name()='section' or local-name()='subsection') and @name=current()/@name]) > 1 + count(//*[self::section or self::subsection][@name=current()/@name]) > 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]) > 1 + count(//*[self::section or self::subsection][@name=current()/@name]) > 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