Author: fschumacher Date: Fri Mar 20 21:39:25 2015 New Revision: 1668162 URL: http://svn.apache.org/r1668162 Log: Generate id attributes for subsections, so that they can be used as link destinations.
Bugzilla Id: 53764 Modified: jmeter/trunk/xdocs/stylesheets/website-style.xsl Modified: jmeter/trunk/xdocs/stylesheets/website-style.xsl URL: http://svn.apache.org/viewvc/jmeter/trunk/xdocs/stylesheets/website-style.xsl?rev=1668162&r1=1668161&r2=1668162&view=diff ============================================================================== --- jmeter/trunk/xdocs/stylesheets/website-style.xsl (original) +++ jmeter/trunk/xdocs/stylesheets/website-style.xsl Fri Mar 20 21:39:25 2015 @@ -298,11 +298,13 @@ <xsl:template match="subsection"> <div class="subsection"> <h2> - <xsl:value-of select="@name" /> <xsl:if test="@anchor"> <xsl:attribute name="id"> <xsl:value-of select="translate(normalize-space(@anchor), ' ' , '_')" /> </xsl:attribute> + </xsl:if> + <xsl:value-of select="@name" /> + <xsl:if test="@anchor"> <xsl:call-template name="sectionlink"> <xsl:with-param name="anchor" select="@anchor" /> </xsl:call-template>