Mercurial > hg > nginx-site
view xsls/link.xsls @ 405:781b23ba3b0a
Documented the following directives: proxy_busy_buffers_size,
proxy_max_temp_file_size, and proxy_temp_file_write_size.
author | Ruslan Ermilov <ru@nginx.com> |
---|---|
date | Fri, 10 Feb 2012 13:27:50 +0000 |
parents | fa74f8061fc5 |
children | 04ad7c1b1b04 |
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> } }