Mercurial > hg > nginx-site
view xsls/dirmap.xsls @ 1916:1b408dd50eee
The link to the "Nginx Troubleshooting" book was replaced per
Packt's request, no objections from the author.
author | Maxim Konovalov <maxim@nginx.com> |
---|---|
date | Thu, 23 Feb 2017 10:10:39 +0000 |
parents | 333eccb8a7f6 |
children |
line wrap: on
line source
<!-- Copyright (C) Nginx, Inc. --> X:stylesheet { X:output method="text"; X:strip-space elements="*"; X:template = "link" { !{@id} X:text{ } !{substring-before(@doc, '.xml')} X:text{.html#} !{@id} X:text{; } } X:template = "link[@id = 'include']" { X:text{\\} !{@id} X:text{ } !{substring-before(@doc, '.xml')} X:text{.html#} !{@id} X:text{; } } X:template = "link[starts-with(@id, 'var_')]" { X:text{$} !{substring-after(@id, 'var_')} X:text{ } !{substring-before(@doc, '.xml')} X:text{.html#} !{@id} X:text{; } } X:template = "links | varlinks" { X:for-each "link", X:sort "@id" { X:if "count(preceding-sibling::link[@id = current()/@id]) = 0" { !! "."; } } } }