Mercurial > hg > nginx-site
view xsls/link.xsls @ 501:3878cc99d454
Bring ngx_http_referer_module docs up to date, including:
- Documented directives "referer_hash_bucket_size" and "referer_hash_max_size".
- Fixed "false" value of the $invalid_referer variable, documented "true" value.
- Documented that search for a match of valid referers is case-insensitive.
author | Ruslan Ermilov <ru@nginx.com> |
---|---|
date | Tue, 24 Apr 2012 06:20:31 +0000 |
parents | 5a3362234a4d |
children | be54c443235a |
line wrap: on
line source
X:stylesheet { X:template = "img" { <img src="{@href}"> !!; </img> } X:template = "link[@url]" { <a href="{@url}"> X:if "count(node()) != 0" { !!; } else { !{@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/> } } }