changeset 632:9ff0bc734b77

In alphabetical index of directives, if there are several directives with the same name, output the module names in parentheses.
author Ruslan Ermilov <ru@nginx.com>
date Wed, 15 Aug 2012 09:50:29 +0000
parents 9015b4a0df44
children 91d9e21ccecd
files xsls/link.xsls
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/xsls/link.xsls
+++ b/xsls/link.xsls
@@ -48,6 +48,11 @@ X:template = "link[@id and @doc]" {
 X:template = "links" {
     X:for-each "link", X:sort "@id" {
         <a href="{substring-before(@doc, '.xml')}.html#{@id}">!{@id}</a>
+        X:if "count(../link[@id = current()/@id]) > 1" {
+            X:text{ (}
+            !{substring-before(substring-after(@doc, '/'), '.xml')}
+            X:text{)}
+        }
         <br/>
     }
 }