view docs/xsls/module.xsls @ 4176:2b5151a2300b

Fixed cache bypass caching of non-cacheable replies (ticket #21). If cache was bypassed with proxy_cache_bypass, cache-controlling headers (Cache-Control, Expires) wasn't considered and response was cached even if it was actually non-cacheable. Patch by John Ferlito.
author Maxim Dounin <mdounin@mdounin.ru>
date Wed, 05 Oct 2011 10:14:21 +0000
parents 5e2103cffd80
children
line wrap: on
line source

X:stylesheet {

X:output method="html" indent="no" encoding="utf-8";

X:strip-space elements = "*";

<!--
  -- a current directory of a XSLT script is where the script is stored,
  -- but not where XSLT processor has been started to run the script
  -->
X:param XML = "'../xml'";

X:var ID = "/module/@id";

X:include href = "directive.xslt";
X:include href = "content.xslt";


X:template = "/module" {
    <html><head>

    <title> !{@name} </title>

    </head>
    <body>

    <center><h3> !{@name} </h3></center>
    !!;

    </body>
    </html>
}

}