[Mplayer-cvslog] CVS: main/DOCS/xml Makefile,1.2,1.3 Makefile.inc,1.1,1.2 README,1.2,1.3

Dmitry Baryshkov CVS lumag at mplayerhq.hu
Wed Apr 30 18:41:38 CEST 2003


Update of /cvsroot/mplayer/main/DOCS/xml
In directory mail:/var/tmp.root/cvs-serv8774

Modified Files:
	Makefile Makefile.inc README 
Log Message:
Add support for the Saxon XSLT Processor.


Index: Makefile
===================================================================
RCS file: /cvsroot/mplayer/main/DOCS/xml/Makefile,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- Makefile	30 Mar 2003 18:48:23 -0000	1.2
+++ Makefile	30 Apr 2003 16:41:14 -0000	1.3
@@ -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 @@
 
 #####[ 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:

Index: Makefile.inc
===================================================================
RCS file: /cvsroot/mplayer/main/DOCS/xml/Makefile.inc,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- Makefile.inc	23 Mar 2003 23:26:55 -0000	1.1
+++ Makefile.inc	30 Apr 2003 16:41:14 -0000	1.2
@@ -20,8 +20,12 @@
 $(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) > $@

Index: README
===================================================================
RCS file: /cvsroot/mplayer/main/DOCS/xml/README,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- README	21 Apr 2003 00:06:41 -0000	1.2
+++ README	30 Apr 2003 16:41:14 -0000	1.3
@@ -12,6 +12,10 @@
 * 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
 ~~~~~~~~~~~~~~~~~~~~~~~~~~



More information about the MPlayer-cvslog mailing list