comparison xslt/error.xslt @ 2846:fdf1464e1977

Moved banner to the external file to make partial rollout possible. An idea is to have several banners and show them with different probability specified by split directive in the nginx.conf
author Sergey Budnevitch <sb@waeme.net>
date Tue, 10 May 2022 18:07:27 +0400
parents 2aeeb695e844
children 04b2f591b5af
comparison
equal deleted inserted replaced
2845:a3aee2697d4e 2846:fdf1464e1977
25 <xsl:include href="dirname.xslt"/> 25 <xsl:include href="dirname.xslt"/>
26 <xsl:include href="link.xslt"/> 26 <xsl:include href="link.xslt"/>
27 <xsl:include href="style.xslt"/> 27 <xsl:include href="style.xslt"/>
28 <xsl:include href="body.xslt"/> 28 <xsl:include href="body.xslt"/>
29 <xsl:include href="menu.xslt"/> 29 <xsl:include href="menu.xslt"/>
30 <xsl:include href="banner.xslt"/>
30 <xsl:include href="ga.xslt"/> 31 <xsl:include href="ga.xslt"/>
31 <xsl:include href="content.xslt"/> 32 <xsl:include href="content.xslt"/>
32 33
33 34
34 <xsl:template match="/error"> 35 <xsl:template match="/error">
35 <html><head><title> <xsl:value-of select="@name"/> </title> 36 <html><head><title> <xsl:value-of select="@name"/> </title>
36 37
37 <xsl:call-template name="style"><xsl:with-param select="@lang" name="lang"/></xsl:call-template><xsl:call-template name="ga"/></head> 38 <xsl:call-template name="style"><xsl:with-param select="@lang" name="lang"/></xsl:call-template><xsl:call-template name="banner"/><xsl:call-template name="ga"/></head>
38 39
39 <xsl:call-template name="body"><xsl:with-param select="@lang" name="lang"/></xsl:call-template></html> 40 <xsl:call-template name="body"><xsl:with-param select="@lang" name="lang"/></xsl:call-template></html>
40 </xsl:template> 41 </xsl:template>
41 42
42 </xsl:stylesheet> 43 </xsl:stylesheet>