diff xsls/error.xsls @ 721:81ad082bc837

Simplified things by including books.xslt, download.xslt and security.xslt into article.xslt, and always using article.xslt to generate HTMLs. While here, moved versions.xml from common dependencies to article dependencies. Fixed menu in 404.html by applying templates from menu.xslt, and fixed its dependency on DTD.
author Ruslan Ermilov <ru@nginx.com>
date Fri, 12 Oct 2012 09:10:31 +0000
parents be54c443235a
children e6f3391df2ea
line wrap: on
line diff
--- a/xsls/error.xsls
+++ b/xsls/error.xsls
@@ -5,8 +5,6 @@
 
 X:stylesheet {
 
-X:include href = "ga.xslt";
-
 X:output method="html" version="4.0" indent="no" encoding="utf-8";
 
 X:strip-space elements = "*";
@@ -16,6 +14,15 @@ X:strip-space elements = "*";
   -- but not where XSLT processor has been started to run the script
   -->
 X:param XML = "'../xml'";
+X:param YEAR;
+X:param TRANS;
+
+X:var LINK = "/error/@link";
+X:var LANG = "/error/@lang";
+
+X:include href = "dirname.xslt";
+X:include href = "menu.xslt";
+X:include href = "ga.xslt";
 
 
 X:template = "/error" {
@@ -49,14 +56,4 @@ X:template = "/error" {
     </html>
 }
 
-
-X:template = "menu/item" {
-    <a href="{@href}"> !{ normalize-space(text()) } </a> <br/>
 }
-
-
-X:template = "menu/item[not(@href)]" {
-    !{ normalize-space(text()) } <br/>
-}
-
-}