From 409cfd1eb6e23d5d8bc5b48371b9e3b3780cb0e6 Mon Sep 17 00:00:00 2001 From: lumag Date: Wed, 30 Apr 2003 16:41:14 +0000 Subject: Add support for the Saxon XSLT Processor. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10026 b3059339-0415-0410-9bf9-f77b7e298cf2 --- DOCS/xml/Makefile | 8 +++++++- DOCS/xml/Makefile.inc | 6 +++++- DOCS/xml/README | 4 ++++ 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 ~~~~~~~~~~~~~~~~~~~~~~~~~~ -- cgit v1.2.3