diff xsls/dump.xsls @ 0:61e04fc01027

Initial import of the nginx.org website.
author Ruslan Ermilov <ru@nginx.com>
date Thu, 11 Aug 2011 12:19:13 +0000
parents
children 1ebe107b3d7e
line wrap: on
line diff
new file mode 100644
--- /dev/null
+++ b/xsls/dump.xsls
@@ -0,0 +1,29 @@
+X:stylesheet {
+
+X:output method="xml"
+X:param indent-increment="'   '";
+
+X:template noname(indent="'&#xA;'") = "*" {
+	!{$indent}
+
+	X:if "name()='xsl:template'" {
+		!{$indent}
+	}
+
+	X:copy {
+	   X:copy-of "@*"
+     	   !!( indent = "concat($indent, $indent-increment)" );
+	   X:if "./* " { !{$indent}  }
+	}
+}
+
+ 
+X:template = "comment()|processing-instruction()" {
+    X:copy;
+}
+
+<!--
+X:template ="text()[normalize-space(.)='']" {}
+-->
+
+}