mirror of
https://github.com/nginx/nginx.git
synced 2024-11-21 16:28:40 +00:00
Docs: switched from java XSLScript to xslscript.pl.
Latter is available from http://hg.nginx.org/xslscript.
This commit is contained in:
parent
96af3e9dfb
commit
f567a71448
@ -3,7 +3,7 @@ VER= $(shell grep 'define NGINX_VERSION' src/core/nginx.h \
|
||||
| sed -e 's/^.*"\(.*\)".*/\1/')
|
||||
NGINX= nginx-$(VER)
|
||||
TEMP= tmp
|
||||
CP= $(HOME)/java
|
||||
XSLS?= xslscript.pl
|
||||
|
||||
|
||||
all: changes
|
||||
@ -36,12 +36,6 @@ $(TEMP)/$(NGINX)/CHANGES: docs/dtd/changes.dtd \
|
||||
-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 $@ $<
|
||||
|
@ -1,29 +0,0 @@
|
||||
X:stylesheet {
|
||||
|
||||
X:output method="xml"
|
||||
X:param indent-increment="' '";
|
||||
|
||||
X:template noname(indent="'
'") = "*" {
|
||||
!{$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(.)='']" {}
|
||||
-->
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user