Mercurial > hg > nginx-site
comparison xsls/link.xsls @ 1156:8e8a6a7cff2b
Added variables index.
author | Vladimir Homutov <vl@nginx.com> |
---|---|
date | Wed, 16 Apr 2014 14:22:51 +0400 |
parents | 9ff0bc734b77 |
children | c1d078b13527 |
comparison
equal
deleted
inserted
replaced
1155:07402a11fd8d | 1156:8e8a6a7cff2b |
---|---|
55 } | 55 } |
56 <br/> | 56 <br/> |
57 } | 57 } |
58 } | 58 } |
59 | 59 |
60 X:template = "varlinks" { | |
61 X:for-each "link", X:sort "@id" { | |
62 <a href="{substring-before(@doc, '.xml')}.html#{@id}">!!;</a> | |
63 X:if "count(../link[@id = current()/@id and @doc != current()/@doc]) > 0" { | |
64 X:text{ (} | |
65 !{substring-before(substring-after(@doc, '/'), '.xml')} | |
66 X:text{)} | |
67 } | |
68 <br/> | |
69 } | |
60 } | 70 } |
71 | |
72 } |