Docs: switched from java XSLScript to xslscript.pl.

Latter is available from http://hg.nginx.org/xslscript.
This commit is contained in:
Maxim Dounin 2014-02-28 20:17:00 +04:00
parent 96af3e9dfb
commit f567a71448
2 changed files with 3 additions and 38 deletions

View File

@ -3,7 +3,7 @@ VER= $(shell grep 'define NGINX_VERSION' src/core/nginx.h \
| sed -e 's/^.*"\(.*\)".*/\1/') | sed -e 's/^.*"\(.*\)".*/\1/')
NGINX= nginx-$(VER) NGINX= nginx-$(VER)
TEMP= tmp TEMP= tmp
CP= $(HOME)/java XSLS?= xslscript.pl
all: changes all: changes
@ -36,12 +36,6 @@ $(TEMP)/$(NGINX)/CHANGES: docs/dtd/changes.dtd \
-o $@ docs/xslt/changes.xslt docs/xml/nginx/changes.xml -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 \ $(XSLS) -o $@ $<
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 $@

View File

@ -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(.)='']" {}
-->
}