Welcome! Log In Create A New Profile

Advanced

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

Maxim Dounin
February 28, 2014 11:18AM
details: http://hg.nginx.org/nginx/rev/f303f3e43f7b
branches:
changeset: 5585:f303f3e43f7b
user: Maxim Dounin <mdounin@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(.)='']" {}
--->
-
-}

_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

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

Maxim Dounin 695 February 28, 2014 11:18AM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 155
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready