[nginx] Docs: switched from java XSLScript to xslscript.pl.

Maxim Dounin mdounin at mdounin.ru
Fri Feb 28 16:17:48 UTC 2014


details:   http://hg.nginx.org/nginx/rev/f303f3e43f7b
branches:  
changeset: 5585:f303f3e43f7b
user:      Maxim Dounin <mdounin at mdounin.ru>
date:      Fri Feb 28 20:17:00 2014 +0400
description:
Docs: switched from java XSLScript to xslscript.pl.

Latter is available from http://hg.nginx.org/xslscript.

diffstat:

 docs/GNUmakefile    |  12 +++---------
 docs/xsls/dump.xsls |  29 -----------------------------
 2 files changed, 3 insertions(+), 38 deletions(-)

diffs (61 lines):

diff --git a/docs/GNUmakefile b/docs/GNUmakefile
--- a/docs/GNUmakefile
+++ b/docs/GNUmakefile
@@ -3,7 +3,7 @@ VER=	$(shell grep 'define NGINX_VERSION'
 		| sed -e 's/^.*"\(.*\)".*/\1/')
 NGINX=	nginx-$(VER)
 TEMP=	tmp
-CP=	$(HOME)/java
+XSLS?=	xslscript.pl
 
 
 all:		changes
@@ -36,12 +36,6 @@ changes:	$(TEMP)/$(NGINX)/CHANGES.ru				
 		-o $@ docs/xslt/changes.xslt docs/xml/nginx/changes.xml
 
 
-docs/xslt/changes.xslt:		docs/xsls/changes.xsls docs/xsls/dump.xsls
+docs/xslt/changes.xslt:		docs/xsls/changes.xsls
 
-	java -cp $(CP)/xsls/saxon.jar:$(CP)/xsls/xsls.jar		\
-		com.pault.StyleSheet					\
-		-x com.pault.XX -y com.pault.XX				\
-		$< docs/xsls/dump.xsls					\
-	| sed 's/ *$$//;/^ *$$/N;/\n *$$/D' > $@
-
-	if [ ! -s $@ ]; then rm $@; fi; test -s $@
+	$(XSLS) -o $@ $<
diff --git a/docs/xsls/dump.xsls b/docs/xsls/dump.xsls
deleted file mode 100644
--- a/docs/xsls/dump.xsls
+++ /dev/null
@@ -1,29 +0,0 @@
-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(.)='']" {}
--->
-
-}



More information about the nginx-devel mailing list