view docs/xsls/module.xsls @ 4152:65c1c241d70e

Better handling of late upstream creation. Configuration with duplicate upstream blocks defined after first use, i.e. like server { ... location / { proxy_pass http://backend; } } upstream backend { ... } upstream backend { ... } now correctly results in "duplicate upstream" error. Additionally, upstream blocks defined after first use now handle various server directive parameters ("weight", "max_fails", etc.). Previously configuration like server { ... location / { proxy_pass http://backend; } } upstream backend { server 127.0.0.1 max_fails=5; } incorrectly resulted in "invalid parameter "max_fails=5"" error.
author Maxim Dounin <mdounin@mdounin.ru>
date Tue, 27 Sep 2011 11:18:51 +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>
}

}