]> granicus.if.org Git - apache/commitdiff
synopsis.xsl: do not render two times the same
authorLuca Toscano <elukey@apache.org>
Wed, 16 Aug 2017 13:04:55 +0000 (13:04 +0000)
committerLuca Toscano <elukey@apache.org>
Wed, 16 Aug 2017 13:04:55 +0000 (13:04 +0000)
              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..).

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1805189 13f79535-47bb-0310-9956-ffa450edef68

docs/manual/style/xsl/synopsis.xsl

index 7b3e90e9848a63a5f3a13f0297fae5cab41e3c8d..fcaa0198a3abf079c0e5ddb58ec87df07c2ba78b 100644 (file)
             <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=".">