comparison xsls/error.xsls @ 107:ee725af08951

Two unrelated changes were erroneously committed simultaneously: - Making the rest of HTML valid. - Updating the "Converting rewrite rules" howto examples to utilize the new power of the "return" directive.
author Ruslan Ermilov <ru@nginx.com>
date Wed, 19 Oct 2011 12:39:11 +0000
parents 61e04fc01027
children f31230984540
comparison
equal deleted inserted replaced
106:56457a474903 107:ee725af08951
1 X:stylesheet { 1 X:stylesheet {
2 2
3 X:output method="html" indent="no" encoding="utf-8"; 3 X:output method="html" indent="no" encoding="utf-8"
4 doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN";
4 5
5 X:strip-space elements = "*"; 6 X:strip-space elements = "*";
6 7
7 <!-- 8 <!--
8 -- a current directory of a XSLT script is where the script is stored, 9 -- a current directory of a XSLT script is where the script is stored,
10 --> 11 -->
11 X:param XML = "'../xml'"; 12 X:param XML = "'../xml'";
12 13
13 14
14 X:template = "/error" { 15 X:template = "/error" {
15 <html><head><title> !{@title} </title></head> 16 <html><head><title> !{@title} </title>
16 17
17 <style>!{ normalize-space(' 18 <style type="text/css">!{ normalize-space('
18 body { font-family: Georgia, serif; } 19 body { font-family: Georgia, serif; }
19 ') } 20 ') }
20 </style> 21 </style>
22 </head>
21 23
22 <body> 24 <body>
23 <table width="100%"> 25 <table width="100%">
24 <tr> 26 <tr>
25 <td width="70%"><center><h1> !{@title} </h1></center></td> 27 <td width="70%"><center><h1> !{@title} </h1></center></td>