view docs/xslt/module.xslt @ 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 dc1fa52222b4
children
line wrap: on
line source

<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">

   <xsl:output indent="no" encoding="utf-8" method="html"/>

   <xsl:strip-space elements="*"/>

   <xsl:param select="'../xml'" name="XML"/>

   <xsl:variable select="/module/@id" name="ID"/>

   <xsl:include href="directive.xslt"/>

   <xsl:include href="content.xslt"/>

   <xsl:template match="/module">

      <html>
         <head>

            <title>
               <xsl:value-of select="@name"/>
            </title>

         </head>

         <body>

            <center>
               <h3>
                  <xsl:value-of select="@name"/>
               </h3>
            </center>

            <xsl:apply-templates/>

         </body>

      </html>
   </xsl:template>

</xsl:stylesheet>