Mercurial > hg > nginx-site
view xsls/link.xsls @ 840:9dab69f2b71d
Documented nginx 1.2.7 changes.
- variables support in the "auth_basic" directive;
- new generic variables $pipe, $request_length, $time_iso8601, and $time_local;
- IPv6 support in ngx_http_geo_module and ngx_http_geoip_module;
- "gzip" and "flush" parameters of the "access_log" directive.
author | Ruslan Ermilov <ru@nginx.com> |
---|---|
date | Tue, 12 Feb 2013 16:45:45 +0400 |
parents | 9ff0bc734b77 |
children | 8e8a6a7cff2b |
line wrap: on
line source
<!-- Copyright (C) Igor Sysoev Copyright (C) Nginx, Inc. --> X:stylesheet { X:template = "img" { <img src="{@href}"> !!; </img> } X:template = "origin" { <a> X:attribute "href" { !root(path = "$ORIGIN") !{ concat(substring-before($ORIGIN, '.xml'), '.html') } } !!; </a> } 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> X:if "count(../link[@id = current()/@id]) > 1" { X:text{ (} !{substring-before(substring-after(@doc, '/'), '.xml')} X:text{)} } <br/> } } }