summaryrefslogtreecommitdiffstats
path: root/DOCS
diff options
context:
space:
mode:
authorlumag <lumag@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-10-20 09:56:48 +0000
committerlumag <lumag@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-10-20 09:56:48 +0000
commit44d459e63ec4b6488b53819511367891d943cf9b (patch)
tree7ea0c97dece86dd9fe716d6237df979e1b8a359f /DOCS
parent1843717d9ce84c9c20056ab57b984212c7c53386 (diff)
downloadmpv-44d459e63ec4b6488b53819511367891d943cf9b.tar.bz2
mpv-44d459e63ec4b6488b53819511367891d943cf9b.tar.xz
Add support for building all-in-one HTML docs. (Files go to DOCS/HTML-single)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@11189 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'DOCS')
-rw-r--r--DOCS/xml/.cvsignore1
-rw-r--r--DOCS/xml/Makefile38
-rw-r--r--DOCS/xml/Makefile.inc37
-rw-r--r--DOCS/xml/README.maintainers40
-rwxr-xr-xDOCS/xml/configure68
-rw-r--r--DOCS/xml/en/Makefile1
-rw-r--r--DOCS/xml/es/Makefile1
-rw-r--r--DOCS/xml/fr/Makefile1
-rw-r--r--DOCS/xml/pl/Makefile3
-rw-r--r--DOCS/xml/pl/html-chunk.xsl8
-rw-r--r--DOCS/xml/pl/html-common.xsl9
-rw-r--r--DOCS/xml/pl/html-single.xsl8
-rw-r--r--DOCS/xml/pl/html.xsl8
-rw-r--r--DOCS/xml/ru/Makefile3
-rw-r--r--DOCS/xml/ru/html-chunk.xsl8
-rw-r--r--DOCS/xml/ru/html-common.xsl15
-rw-r--r--DOCS/xml/ru/html-single.xsl9
-rw-r--r--DOCS/xml/ru/html.xsl9
18 files changed, 211 insertions, 56 deletions
diff --git a/DOCS/xml/.cvsignore b/DOCS/xml/.cvsignore
index df7364c69c..52b592bfd4 100644
--- a/DOCS/xml/.cvsignore
+++ b/DOCS/xml/.cvsignore
@@ -1,3 +1,4 @@
html.xsl
+html-chunk.xsl
xsltproc.sh
xmllint.sh
diff --git a/DOCS/xml/Makefile b/DOCS/xml/Makefile
index fcdee08d09..7d0d9db7f1 100644
--- a/DOCS/xml/Makefile
+++ b/DOCS/xml/Makefile
@@ -6,39 +6,57 @@ SUBDIRS = en fr es ru pl
# Generated HTML files go here.
HTML_TOP = ../HTML
+# Here go unchunked files (all DOCS in single HTML file)
+HTML_UNCHUNKED = ../HTML-single
.PHONY: all
-all: build-html
+all: build-html build-html-chunked
.PHONY: help
help:
@echo "Targets:"
@echo "********"
- @echo "all : Build everything (same as build-html for now)."
- @echo "build-html: Build HTML documentation."
- @echo "clean-html: Purge the 'HTML' directory."
- @echo "distclean : Remove ALL generated files."
+ @echo "all : Build everything"
+ @echo " (same as build-html and build-html-chunked for now)."
+ @echo "build-html : Build HTML documentation (single file)."
+ @echo "build-html-chunked: Build HTML documentation (multiple files)."
+ @echo "clean-html : Purge the 'HTML-single' directory."
+ @echo "clean-html-chunked: Purge the 'HTML' directory."
+ @echo "distclean : Remove ALL generated files."
+
+.PHONY: build-html-chunked
+build-html-chunked: xsltproc.sh
+ test -d $(HTML_TOP) || mkdir $(HTML_TOP)
+ for dir in $(SUBDIRS); do\
+ test -f $$dir/Makefile &&\
+ (test -d $(HTML_TOP)/$$dir || mkdir $(HTML_TOP)/$$dir) &&\
+ if $(MAKE) HTMLDIR=../$(HTML_TOP)/$$dir -C $$dir html-chunked; then :; else exit 1; fi;\
+ done
.PHONY: build-html
build-html: xsltproc.sh
test -d $(HTML_TOP) || mkdir $(HTML_TOP)
+ test -d $(HTML_UNCHUNKED) || mkdir $(HTML_UNCHUNKED)
for dir in $(SUBDIRS); do\
test -f $$dir/Makefile &&\
- (test -d $(HTML_TOP)/$$dir || mkdir $(HTML_TOP)/$$dir) &&\
- if $(MAKE) HTMLDIR=../$(HTML_TOP)/$$dir -C $$dir; then :; else exit 1; fi;\
+ if $(MAKE) HTMLFILE=../$(HTML_UNCHUNKED)/mplayer_docs_$$dir.html -C $$dir html; then :; else exit 1; fi;\
done
-.PHONY: clean-html
+.PHONY: clean-html-chunked
clean-html:
-rm -rf $(HTML_TOP)
+.PHONY: clean-html
+clean-html:
+ -rm -rf $(HTML_UNCHUNKED)
+
.PHONY: distclean
-distclean: clean-html
+distclean: clean-html clean-html-chunked
for dir in $(SUBDIRS); do\
test -f $$dir/Makefile &&\
if $(MAKE) HTMLDIR=../$(HTML_TOP)/$$dir -C $$dir distclean ; then :; else exit 1; fi;\
done
- -rm -f html.xsl xsltproc.sh xmllint.sh
+ -rm -f html.xsl html-chunk.xsl xsltproc.sh xmllint.sh
xsltproc.sh: configure
./configure
diff --git a/DOCS/xml/Makefile.inc b/DOCS/xml/Makefile.inc
index 7ec2f36d5b..c4de7b002f 100644
--- a/DOCS/xml/Makefile.inc
+++ b/DOCS/xml/Makefile.inc
@@ -2,26 +2,55 @@
# Makefile.inc for Makefiles in subdirectories.
#
-# Use customized html.xsl file if it exists...
+# Use customized html.xsl and/or html-chunk.xsl file if they exist...
+# Also add html-common.xsl to depends if it exists.
ifeq (html.xsl,$(wildcard html.xsl))
HTML_XSL := html.xsl
-XSL_DEPS := $(HTML_XSL) ../html.xsl ../html-common.xsl
+ifeq (html-common.xsl,$(wildcard html-common.xsl))
+XSL_DEPS := $(HTML_XSL) html-common.xsl ../html.xsl ../html-common.xsl
+else
+XSL_DEPS := $(HTML_XSL) html-common.xsl ../html.xsl ../html-common.xsl
+endif
else
HTML_XSL := ../html.xsl
XSL_DEPS := $(HTML_XSL) ../html-common.xsl
endif
+ifeq (html-chunk.xsl,$(wildcard html-chunk.xsl))
+HTML_CHUNK_XSL := html-chunk.xsl
+ifeq (html-common.xsl,$(wildcard html-common.xsl))
+CHUNK_XSL_DEPS := $(HTML_CHUNK_XSL) html-common.xsl ../html-chunk.xsl ../html-common.xsl
+else
+CHUNK_XSL_DEPS := $(HTML_CHUNK_XSL) ../html-chunk.xsl ../html-common.xsl
+endif
+else
+HTML_CHUNK_XSL := ../html-chunk.xsl
+CHUNK_XSL_DEPS := $(HTML_CHUNK_XSL) ../html-common.xsl
+endif
+
# Fall back to the default HTML stylesheet if none is specified.
HTML_STYLESHEET ?= ../default.css
# This is the main target...
-$(HTMLDIR)/index.html: documentation.xml $(XSL_DEPS)
+all: html html-chunked
+html: $(HTMLFILE)
+html-chunked: $(HTMLDIR)/index.html
+
+$(HTMLDIR)/index.html: documentation.xml $(CHUNK_XSL_DEPS)
@if test "$(HTMLDIR)" = "" ; then echo "Error: HTMLDIR not set!!!"; echo "Typically this means, that you've run make from subdir of DOCS/xml. Don't do this!" ; false; fi
if test "$(USE_SYMLINKS)" = "yes" ; then for file in ../en/*.xml ; do if ! test -r `basename $$file` ; then ln -s $$file `basename $$file` ; fi ; done ; fi
-rm -f $(HTMLDIR)/*
../xmllint.sh $<
cp $(HTML_STYLESHEET) $(HTMLDIR)/
- ../xsltproc.sh $(HTMLDIR)/ $(HTML_XSL) $<
+ ../xsltproc.sh $(HTMLDIR)/ $(HTML_CHUNK_XSL) $<
+
+$(HTMLFILE): documentation.xml $(XSL_DEPS)
+ @if test "$(HTMLFILE)" = "" ; then echo "Error: HTMLFILE not set!!!"; echo "Typically this means, that you've run make from subdir of DOCS/xml. Don't do this!" ; false; fi
+ if test "$(USE_SYMLINKS)" = "yes" ; then for file in ../en/*.xml ; do if ! test -r `basename $$file` ; then ln -s $$file `basename $$file` ; fi ; done ; fi
+ -rm -f $(HTMLFILE)
+ ../xmllint.sh $<
+ cp -f $(HTML_STYLESHEET) `dirname $(HTMLFILE)`
+ ../xsltproc.sh $(HTMLFILE) $(HTML_XSL) $<
../html.xsl:
cd .. && sh configure
diff --git a/DOCS/xml/README.maintainers b/DOCS/xml/README.maintainers
index 2ed0299195..3d75d4aca0 100644
--- a/DOCS/xml/README.maintainers
+++ b/DOCS/xml/README.maintainers
@@ -28,21 +28,47 @@ Adding new translations
3) Set <book lang="XX"> to your language code if the DocBook XSL
stylesheets support it.
4) If you want to use a customized XSL stylesheet, create one and name it
- 'html.xsl'. And do not forget to import the toplevel XSL file:
+ 'html-common.xsl'. Also create two additional XSL stylesheets ('html.xsl'
+ and 'html-chunk.xsl', with such content:
+
+ html.xsl:
+
+ <?xml version="1.0" encoding="ISO-8859-1"?>
+ <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ version="1.0">
+
+ <xsl:import href="../html.xsl"/>
+ <xsl:include href="html-common.xsl"/>
+
+ </xsl:stylesheet>
+
+ html-chunk.xsl:
+
+ <?xml version="1.0" encoding="ISO-8859-1"?>
+ <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ version="1.0">
+
+ <xsl:import href="../html-chunk.xsl"/>
+ <xsl:include href="html-common.xsl"/>
+
+ </xsl:stylesheet>
- <xsl:import href="../html.xsl"/>
Note: You mustn't xsl:include or xsl:import chunk.xsl directly!
Including it can (and will) break building of documentation if chunk.xsl
is installed at a nonstandard location.
-5) If you wish to change output encoding of generated files, create html.xsl
- as suggested in step 4) and add somwhere after <xsl:import .../> such string:
+5) If you wish to change output encoding of generated files, create
+ html-common.xsl as suggested in step 4) and add such strings somewhere
+ between <xsl:stylesheet ...> and </xsl:stylesheet> tags
+ (please, pay attention to quotes):
<xsl:param name="chunker.output.encoding" select="'your_encoding'"/>
-
- Use ru/html.xsl as example.
+ <xsl:output encoding="your_encoding"/>
+
+ Use ru/html-common.xsl as example.
6) If you are using your own HTML stylesheet, edit your Makefile and set
- the HTML_STYLESHEET variable to its name.
+ the HTML_STYLESHEET variable to its name. Please, don't give name
+ 'default.css' to your HTML stylesheet.
7) In each translated file after the <?xml ... ?> tag you must put a note
like <!-- synced with 1.2 -->, where 1.2 is the revision of corresponding
English file (see comment at the top of file).
diff --git a/DOCS/xml/configure b/DOCS/xml/configure
index 4e84f539f2..48687e45cc 100755
--- a/DOCS/xml/configure
+++ b/DOCS/xml/configure
@@ -25,7 +25,8 @@ fi
-echo "Searching for stylesheet..."
+echo "Searching stylesheets..."
+echo "Searching html/chunk.xsl..."
for _try_chunk_xsl in /usr/share/sgml/docbook/stylesheet/xsl/nwalsh/html/chunk.xsl /usr/share/sgml/docbook/yelp/docbook/html/chunk.xsl /usr/local/share/sgml/docbook/stylesheet/xsl/nwalsh/html/chunk.xsl /usr/local/share/sgml/docbook/yelp/docbook/html/chunk.xsl /usr/share/docbook-xsl/html/chunk.xsl
do
if test -f "$_try_chunk_xsl"
@@ -44,7 +45,26 @@ else
echo "Found chunk.xsl at $_chunk_xsl"
fi
-cat > html.xsl << EOF
+echo "Searching for html/docbook.xsl..."
+for _try_docbook_xsl in /usr/share/sgml/docbook/stylesheet/xsl/nwalsh/html/docbook.xsl /usr/share/sgml/docbook/yelp/docbook/html/docbook.xsl /usr/local/share/sgml/docbook/stylesheet/xsl/nwalsh/html/docbook.xsl /usr/local/share/sgml/docbook/yelp/docbook/html/docbook.xsl /usr/share/docbook-xsl/html/docbook.xsl
+do
+ if test -f "$_try_docbook_xsl"
+ then
+ _docbook_xsl=$_try_docbook_xsl
+ break
+ fi
+done
+
+if test -z "$_docbook_xsl"
+then
+ _docbook_xsl=/usr/share/sgml/docbook/stylesheet/xsl/nwalsh/html/docbook.xsl
+ echo "Not found. Using default ($_docbook_xsl)"
+ _fake_docbook_xsl=yes
+else
+ echo "Found docbook.xsl at $_docbook_xsl"
+fi
+
+cat > html-chunk.xsl << EOF
<?xml version="1.0" encoding="ISO-8859-1"?>
<!-- **************************************************
This file is generated automatically. DO NOT EDIT.
@@ -59,6 +79,21 @@ cat > html.xsl << EOF
EOF
+cat > html.xsl << EOF
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!-- **************************************************
+ This file is generated automatically. DO NOT EDIT.
+ ************************************************** -->
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ version="1.0">
+
+ <xsl:import href="$_docbook_xsl"/>
+ <xsl:include href="html-common.xsl"/>
+
+</xsl:stylesheet>
+EOF
+
+
echo "Looking for a valid XSLT processor..."
# Checks for xsltproc, then checks for the Saxon processor (it needs Java).
@@ -114,7 +149,28 @@ then
then
if test -z "$_fake_chunk_xsl"
then
- _xsltcommand="cd \$1 && if test \"\`dirname \$2 | head -c 1\`\" = \".\" ; then $_java -classpath $_saxon_jar com.icl.saxon.StyleSheet \$_IN_DIR/\$3 \$_IN_DIR/\$2 ; else $_java -classpath $_saxon_jar com.icl.saxon.StyleSheet \$_IN_DIR/\$3 \$2 ;fi"
+# _xsltcommand="cd \$1 && if test \"\`dirname \$2 | head -c 1\`\" = \".\" ; then $_java -classpath $_saxon_jar com.icl.saxon.StyleSheet \$_IN_DIR/\$3 \$_IN_DIR/\$2 ; else $_java -classpath $_saxon_jar com.icl.saxon.StyleSheet \$_IN_DIR/\$3 \$2 ;fi"
+ _xsltcommand="
+if test \"\`dirname \$2 | head -c 1\`\" = \".\"
+then
+ _STYLESHEET=\$_IN_DIR/\$2
+else
+ _STYLESHEET=\$2
+fi
+
+if test -d \$1
+then
+ _DIRNAME=\"\$1\"
+ _OUTPUT=\"\"
+else
+ _DIRNAME=\"\`dirname \$1\`\"
+ _OUTPUT=\"-o \`basename \$1\`\"
+fi
+
+cd \$_DIRNAME &&
+ java -classpath /usr/share/java/saxon.jar com.icl.saxon.StyleSheet \$_OUTPUT \$_IN_DIR/\$3 \$_STYLESHEET
+ "
+
echo "Found the Saxon XSLT Processor ($_saxon_jar), using Java VM '$_java'."
else
echo "Found the Saxon XSLT processor but no stylesheets on your system."
@@ -189,11 +245,12 @@ EOF
chmod +x $_xsltwrapper
-
+echo "Searching xml checker..."
for _try_xmllint in xmllint
do
- if command -v $_try_xmllint
+ if command -v $_try_xmllint > /dev/null
then
+ echo "Found: $_try_xmllint"
if test -n "$_catalog"
then
_xmllint_command="$_try_xmllint --noout --noent --postvalid --catalogs \$*"
@@ -206,6 +263,7 @@ done
if test -z "$_xmllint_command"
then
+ echo "Not found"
_xmllint_command=true
fi
diff --git a/DOCS/xml/en/Makefile b/DOCS/xml/en/Makefile
index fb5dee4c44..30aca265a9 100644
--- a/DOCS/xml/en/Makefile
+++ b/DOCS/xml/en/Makefile
@@ -8,3 +8,4 @@ USE_SYMLINKS = no
# Dependency information.
$(HTMLDIR)/index.html: $(wildcard *.xml)
+$(HTMLFILE): $(wildcard *.xml)
diff --git a/DOCS/xml/es/Makefile b/DOCS/xml/es/Makefile
index fb5dee4c44..30aca265a9 100644
--- a/DOCS/xml/es/Makefile
+++ b/DOCS/xml/es/Makefile
@@ -8,3 +8,4 @@ USE_SYMLINKS = no
# Dependency information.
$(HTMLDIR)/index.html: $(wildcard *.xml)
+$(HTMLFILE): $(wildcard *.xml)
diff --git a/DOCS/xml/fr/Makefile b/DOCS/xml/fr/Makefile
index fb5dee4c44..30aca265a9 100644
--- a/DOCS/xml/fr/Makefile
+++ b/DOCS/xml/fr/Makefile
@@ -8,3 +8,4 @@ USE_SYMLINKS = no
# Dependency information.
$(HTMLDIR)/index.html: $(wildcard *.xml)
+$(HTMLFILE): $(wildcard *.xml)
diff --git a/DOCS/xml/pl/Makefile b/DOCS/xml/pl/Makefile
index 573ef6e76a..92b9023cb5 100644
--- a/DOCS/xml/pl/Makefile
+++ b/DOCS/xml/pl/Makefile
@@ -7,4 +7,5 @@ include ../Makefile.inc
USE_SYMLINKS = yes
# Dependency information.
-$(HTMLDIR)/index.html: $(wildcard *.xml)
+$(HTMLDIR)/index.html: $(wildcard *.xml) html-common.xsl
+$(HTMLFILE): $(wildcard *.xml) html-common.xsl
diff --git a/DOCS/xml/pl/html-chunk.xsl b/DOCS/xml/pl/html-chunk.xsl
new file mode 100644
index 0000000000..8e82e1b8dd
--- /dev/null
+++ b/DOCS/xml/pl/html-chunk.xsl
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ version="1.0">
+
+ <xsl:import href="../html-chunk.xsl"/>
+ <xsl:include href="html-common.xsl"/>
+
+</xsl:stylesheet>
diff --git a/DOCS/xml/pl/html-common.xsl b/DOCS/xml/pl/html-common.xsl
new file mode 100644
index 0000000000..4cc203d1b4
--- /dev/null
+++ b/DOCS/xml/pl/html-common.xsl
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ version="1.0">
+
+ <xsl:param name="chunker.output.encoding" select="'utf-8'"/>
+ <xsl:output encoding="utf-8"/>
+
+</xsl:stylesheet>
diff --git a/DOCS/xml/pl/html-single.xsl b/DOCS/xml/pl/html-single.xsl
index 2444f2d7e9..7b876e06eb 100644
--- a/DOCS/xml/pl/html-single.xsl
+++ b/DOCS/xml/pl/html-single.xsl
@@ -1,12 +1,8 @@
-<?xml version="1.0" encoding="utf-8"?>
+<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<xsl:import href="../html.xsl"/>
- <xsl:param name="chunker.output.encoding" select="'utf-8'"/>
+ <xsl:include href="html-common.xsl"/>
</xsl:stylesheet>
-
-
-
-
diff --git a/DOCS/xml/pl/html.xsl b/DOCS/xml/pl/html.xsl
index 2444f2d7e9..7b876e06eb 100644
--- a/DOCS/xml/pl/html.xsl
+++ b/DOCS/xml/pl/html.xsl
@@ -1,12 +1,8 @@
-<?xml version="1.0" encoding="utf-8"?>
+<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<xsl:import href="../html.xsl"/>
- <xsl:param name="chunker.output.encoding" select="'utf-8'"/>
+ <xsl:include href="html-common.xsl"/>
</xsl:stylesheet>
-
-
-
-
diff --git a/DOCS/xml/ru/Makefile b/DOCS/xml/ru/Makefile
index 573ef6e76a..92b9023cb5 100644
--- a/DOCS/xml/ru/Makefile
+++ b/DOCS/xml/ru/Makefile
@@ -7,4 +7,5 @@ include ../Makefile.inc
USE_SYMLINKS = yes
# Dependency information.
-$(HTMLDIR)/index.html: $(wildcard *.xml)
+$(HTMLDIR)/index.html: $(wildcard *.xml) html-common.xsl
+$(HTMLFILE): $(wildcard *.xml) html-common.xsl
diff --git a/DOCS/xml/ru/html-chunk.xsl b/DOCS/xml/ru/html-chunk.xsl
new file mode 100644
index 0000000000..8e82e1b8dd
--- /dev/null
+++ b/DOCS/xml/ru/html-chunk.xsl
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ version="1.0">
+
+ <xsl:import href="../html-chunk.xsl"/>
+ <xsl:include href="html-common.xsl"/>
+
+</xsl:stylesheet>
diff --git a/DOCS/xml/ru/html-common.xsl b/DOCS/xml/ru/html-common.xsl
new file mode 100644
index 0000000000..1cf1887e5d
--- /dev/null
+++ b/DOCS/xml/ru/html-common.xsl
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ version="1.0">
+
+ <xsl:param name="chunker.output.encoding" select="'KOI8-R'"/>
+ <xsl:output encoding="KOI8-R"/>
+
+ <!-- This forces Saxon to output chars from KOI8-R as is and not as something like &#444;
+ WARNING: This will probably work with HTML output, and won't with output XML.
+ Anyway, this file will generate only HTML :)
+ -->
+ <xsl:param name="saxon.character.representation" select="'native;decimal'"/>
+
+</xsl:stylesheet>
diff --git a/DOCS/xml/ru/html-single.xsl b/DOCS/xml/ru/html-single.xsl
index ed8d3b75a9..7b876e06eb 100644
--- a/DOCS/xml/ru/html-single.xsl
+++ b/DOCS/xml/ru/html-single.xsl
@@ -1,15 +1,8 @@
<?xml version="1.0" encoding="ISO-8859-1"?>
-
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<xsl:import href="../html.xsl"/>
- <xsl:param name="chunker.output.encoding" select="'KOI8-R'"/>
-
- <!-- This forces Saxon to output chars from KOI8-R as is and not as something like &#444;
- WARNING: This will probably work with HTML output, and won't with output XML.
- Anyway, this file will generate only HTML :)
- -->
- <xsl:param name="saxon.character.representation" select="'native;decimal'"/>
+ <xsl:include href="html-common.xsl"/>
</xsl:stylesheet>
diff --git a/DOCS/xml/ru/html.xsl b/DOCS/xml/ru/html.xsl
index ed8d3b75a9..7b876e06eb 100644
--- a/DOCS/xml/ru/html.xsl
+++ b/DOCS/xml/ru/html.xsl
@@ -1,15 +1,8 @@
<?xml version="1.0" encoding="ISO-8859-1"?>
-
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<xsl:import href="../html.xsl"/>
- <xsl:param name="chunker.output.encoding" select="'KOI8-R'"/>
-
- <!-- This forces Saxon to output chars from KOI8-R as is and not as something like &#444;
- WARNING: This will probably work with HTML output, and won't with output XML.
- Anyway, this file will generate only HTML :)
- -->
- <xsl:param name="saxon.character.representation" select="'native;decimal'"/>
+ <xsl:include href="html-common.xsl"/>
</xsl:stylesheet>