mirror of https://github.com/mpv-player/mpv
Add support for the Saxon XSLT Processor.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10026 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
004d3a060c
commit
409cfd1eb6
|
@ -5,6 +5,12 @@
|
||||||
# The xsltproc program.
|
# The xsltproc program.
|
||||||
XSLTPROC = xsltproc
|
XSLTPROC = xsltproc
|
||||||
|
|
||||||
|
# Another xslt converter.
|
||||||
|
# If you want to use it, change also USE_SAXON to 1 (below)
|
||||||
|
# Probably you must also change the path to saxon.jar.
|
||||||
|
USE_SAXON = 0
|
||||||
|
SAXON_COMMAND = java -cp /usr/share/java/saxon.jar com.icl.saxon.StyleSheet
|
||||||
|
|
||||||
# The xmllint program.
|
# The xmllint program.
|
||||||
XMLLINT = xmllint
|
XMLLINT = xmllint
|
||||||
|
|
||||||
|
@ -38,7 +44,7 @@ HTML_TOP = ../HTML
|
||||||
|
|
||||||
#####[ End of configuration ]###########################################
|
#####[ End of configuration ]###########################################
|
||||||
|
|
||||||
export CHUNK_XSL SGML_CATALOG_FILES XMLLINT XSLTPROC
|
export CHUNK_XSL SGML_CATALOG_FILES XMLLINT XSLTPROC SAXON_COMMAND USE_SAXON
|
||||||
|
|
||||||
.PHONY: no-target
|
.PHONY: no-target
|
||||||
no-target:
|
no-target:
|
||||||
|
|
|
@ -20,8 +20,12 @@ HTML_STYLESHEET ?= ../default.css
|
||||||
$(HTMLDIR)/index.html: documentation.xml $(XSL_DEPS)
|
$(HTMLDIR)/index.html: documentation.xml $(XSL_DEPS)
|
||||||
-rm -f $(HTMLDIR)/*
|
-rm -f $(HTMLDIR)/*
|
||||||
$(XMLLINT) --noout --noent --postvalid --catalogs $<
|
$(XMLLINT) --noout --noent --postvalid --catalogs $<
|
||||||
$(XSLTPROC) --catalogs -o $(HTMLDIR)/ $(HTML_XSL) $<
|
|
||||||
cp $(HTML_STYLESHEET) $(HTMLDIR)/
|
cp $(HTML_STYLESHEET) $(HTMLDIR)/
|
||||||
|
ifeq (0,$(USE_SAXON))
|
||||||
|
$(XSLTPROC) --catalogs -o $(HTMLDIR)/ $(HTML_XSL) $<
|
||||||
|
else
|
||||||
|
cd $(HTMLDIR) && $(SAXON_COMMAND) $(CURDIR)/$< $(CURDIR)/$(HTML_XSL)
|
||||||
|
endif
|
||||||
|
|
||||||
../html.xsl:
|
../html.xsl:
|
||||||
sh ../gen-html.xsl.sh $(CHUNK_XSL) > $@
|
sh ../gen-html.xsl.sh $(CHUNK_XSL) > $@
|
||||||
|
|
|
@ -12,6 +12,10 @@ ones successfully, so they are required:
|
||||||
* xsltproc (part of libxslt1) is used for transforming XML files into HTML
|
* xsltproc (part of libxslt1) is used for transforming XML files into HTML
|
||||||
files. Version 1.0.18 or later is recommended.
|
files. Version 1.0.18 or later is recommended.
|
||||||
|
|
||||||
|
Also it's possible to use the Saxon XSLT Processor. Russian translator
|
||||||
|
used it (version 6.4.4) for a while. To enable it change USE_SAXON to 1 in
|
||||||
|
the Makefile.
|
||||||
|
|
||||||
|
|
||||||
Building the documentation
|
Building the documentation
|
||||||
~~~~~~~~~~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
Loading…
Reference in New Issue