summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlumag <lumag@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-04-30 16:41:14 +0000
committerlumag <lumag@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-04-30 16:41:14 +0000
commit409cfd1eb6e23d5d8bc5b48371b9e3b3780cb0e6 (patch)
treead311c4fff3e3dd4b621760b5e3e80f0433c177b
parent004d3a060cd0d550fa454120c9a3b3616e0211ac (diff)
downloadmpv-409cfd1eb6e23d5d8bc5b48371b9e3b3780cb0e6.tar.bz2
mpv-409cfd1eb6e23d5d8bc5b48371b9e3b3780cb0e6.tar.xz
Add support for the Saxon XSLT Processor.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10026 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r--DOCS/xml/Makefile8
-rw-r--r--DOCS/xml/Makefile.inc6
-rw-r--r--DOCS/xml/README4
3 files changed, 16 insertions, 2 deletions
diff --git a/DOCS/xml/Makefile b/DOCS/xml/Makefile
index 93b0529085..8f80ffdd01 100644
--- a/DOCS/xml/Makefile
+++ b/DOCS/xml/Makefile
@@ -5,6 +5,12 @@
# The xsltproc program.
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.
XMLLINT = xmllint
@@ -38,7 +44,7 @@ HTML_TOP = ../HTML
#####[ 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
no-target:
diff --git a/DOCS/xml/Makefile.inc b/DOCS/xml/Makefile.inc
index fa25262348..a0c3872b72 100644
--- a/DOCS/xml/Makefile.inc
+++ b/DOCS/xml/Makefile.inc
@@ -20,8 +20,12 @@ HTML_STYLESHEET ?= ../default.css
$(HTMLDIR)/index.html: documentation.xml $(XSL_DEPS)
-rm -f $(HTMLDIR)/*
$(XMLLINT) --noout --noent --postvalid --catalogs $<
- $(XSLTPROC) --catalogs -o $(HTMLDIR)/ $(HTML_XSL) $<
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:
sh ../gen-html.xsl.sh $(CHUNK_XSL) > $@
diff --git a/DOCS/xml/README b/DOCS/xml/README
index a1cd1dbbc3..04fd9f5576 100644
--- a/DOCS/xml/README
+++ b/DOCS/xml/README
@@ -12,6 +12,10 @@ ones successfully, so they are required:
* xsltproc (part of libxslt1) is used for transforming XML files into HTML
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
~~~~~~~~~~~~~~~~~~~~~~~~~~