You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by el...@apache.org on 2017/08/16 13:04:55 UTC
svn commit: r1805189 - /httpd/httpd/trunk/docs/manual/style/xsl/synopsis.xsl
Author: elukey
Date: Wed Aug 16 13:04:55 2017
New Revision: 1805189
URL: http://svn.apache.org/viewvc?rev=1805189&view=rev
Log:
synopsis.xsl: do not render two times the same
directive HTML if more than one
directive share the same name.
This has happened when mod_md.xml was introduced,
and the following directives shared the same name:
* ManagedDomain
* <ManagedDomain>
With the current code each time that a node needs
to be rendered it will emit a duplicate, ending up
in the above example with 4 sections rather than two.
Uniqueness of sections will be ensured by the HTML
elements ids, to avoid errors before committing for
example (accidental duplicates, etc..).
Modified:
httpd/httpd/trunk/docs/manual/style/xsl/synopsis.xsl
Modified: httpd/httpd/trunk/docs/manual/style/xsl/synopsis.xsl
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/docs/manual/style/xsl/synopsis.xsl?rev=1805189&r1=1805188&r2=1805189&view=diff
==============================================================================
--- httpd/httpd/trunk/docs/manual/style/xsl/synopsis.xsl (original)
+++ httpd/httpd/trunk/docs/manual/style/xsl/synopsis.xsl Wed Aug 16 13:04:55 2017
@@ -325,7 +325,7 @@
<xsl:sort select="name" />
<xsl:choose>
<xsl:when test="$this[name=current()/name]">
- <xsl:apply-templates select="$this[name=current()/name]" />
+ <xsl:apply-templates select="." />
</xsl:when>
<xsl:otherwise>
<xsl:apply-templates select=".">