Mercurial > hg > nginx-site
view xsls/link.xsls @ 442:b423d725a932
Try to emphasize that "underscores_in_headers" and "merge_slashes",
when specified on the "server" level, only take effect when this is
the default server for a listening socket.
author | Ruslan Ermilov <ru@nginx.com> |
---|---|
date | Wed, 07 Mar 2012 19:44:27 +0000 |
parents | 04ad7c1b1b04 |
children | 5a3362234a4d |
line wrap: on
line source
X:stylesheet { X:template = "img" { <img src="{@href}"> !!; </img> } X:template = "link[@url]" { <a href="{@url}"> !!; </a> } X:template = "link[@id and not(@doc)]" { <a href="#{@id}"> X:if "count(node()) != 0" { !!; } else { !{@id} } </a> } X:template = "link[@doc and not(@id)]" { <a href="{substring-before(@doc, '.xml')}.html"> X:if "count(node()) != 0" { !!; } else { !{ document(@doc)/article/@name | document(@doc)/module/@name } } </a> } X:template = "link[@id and @doc]" { <a href="{substring-before(@doc, '.xml')}.html#{@id}"> X:if "count(node()) != 0" { !!; } else { !{@id} } </a> } X:template = "links" { X:for-each "link", X:sort "@id" { <a href="{substring-before(@doc, '.xml')}.html#{@id}">!{@id}</a> <br/> } } }