Remove deprecated files (check_help is no longer necessary, it was not documented... 35/12735/3
Sylvestre Ledru [Sat, 28 Sep 2013 16:23:08 +0000 (18:23 +0200)]
build system is super fast)

Change-Id: I0fcc9ecb8914d94ad458c96f1a13664a43280c41

14 files changed:
scilab/modules/helptools/Makefile.am
scilab/modules/helptools/Makefile.in
scilab/modules/helptools/bin/man2sci [deleted file]
scilab/modules/helptools/bin/man2sci.bat [deleted file]
scilab/modules/helptools/bin/manrev2sci [deleted file]
scilab/modules/helptools/bin/manrev2sci.bat [deleted file]
scilab/modules/helptools/bin/sablotron/Readme.txt [deleted file]
scilab/modules/helptools/bin/scivalid [deleted file]
scilab/modules/helptools/bin/scivalid.bat [deleted file]
scilab/modules/helptools/bin/sciviewhelp [deleted file]
scilab/modules/helptools/bin/sciviewhelp.bat [deleted file]
scilab/modules/helptools/macros/check_help.sci [deleted file]
scilab/modules/helptools/xsl/convert/man2manrev.xsl [deleted file]
scilab/modules/helptools/xsl/convert/manrev2sci.xsl [deleted file]

index 84d7560..e649be9 100644 (file)
@@ -67,12 +67,6 @@ libscihelptools_la_root_DATA =  license.txt
 libscihelptools_la_etcdir = $(mydatadir)/etc
 libscihelptools_la_etc_DATA = etc/helptools.quit etc/helptools.start etc/MAIN_CHAPTERS etc/fopconf.xml etc/SciDocConf.xml
 
-#### helptools : bin files ####
-libscihelptools_la_bindir = $(mydatadir)/bin
-libscihelptools_la_bin_DATA = bin/scivalid \
-bin/man2sci \
-bin/manrev2sci
-
 #### helptools : gateway declaration ####
 libscihelptools_la_sci_gatewaydir = $(mydatadir)/sci_gateway
 libscihelptools_la_sci_gateway_DATA = sci_gateway/helptools_gateway.xml
@@ -93,12 +87,6 @@ data/css/c_code.css \
 data/css/xml_code.css \
 data/css/style.css
 
-#### helptools : xsl files ####
-libscihelptools_la_xsl_convertdir = $(mydatadir)/xsl/convert
-libscihelptools_la_xsl_convert_DATA = \
-xsl/convert/man2manrev.xsl \
-xsl/convert/manrev2sci.xsl
-
 libscihelptools_la_xsl_fodir = $(mydatadir)/xsl/fo
 libscihelptools_la_xsl_fo_DATA = xsl/fo/docbook.xsl
 
index 990d63b..a93d989 100644 (file)
@@ -157,7 +157,6 @@ am__uninstall_files_from_dir = { \
          $(am__cd) "$$dir" && rm -f $$files; }; \
   }
 am__installdirs = "$(DESTDIR)$(pkglibdir)" \
-       "$(DESTDIR)$(libscihelptools_la_bindir)" \
        "$(DESTDIR)$(libscihelptools_la_data_configurationdir)" \
        "$(DESTDIR)$(libscihelptools_la_data_cssdir)" \
        "$(DESTDIR)$(libscihelptools_la_data_pagesdir)" \
@@ -166,7 +165,6 @@ am__installdirs = "$(DESTDIR)$(pkglibdir)" \
        "$(DESTDIR)$(libscihelptools_la_rootdir)" \
        "$(DESTDIR)$(libscihelptools_la_schemadir)" \
        "$(DESTDIR)$(libscihelptools_la_sci_gatewaydir)" \
-       "$(DESTDIR)$(libscihelptools_la_xsl_convertdir)" \
        "$(DESTDIR)$(libscihelptools_la_xsl_fodir)"
 LTLIBRARIES = $(noinst_LTLIBRARIES) $(pkglib_LTLIBRARIES)
 libscihelptools_algo_la_LIBADD =
@@ -257,15 +255,13 @@ am__can_run_installinfo = \
     n|no|NO) false;; \
     *) (install-info --version) >/dev/null 2>&1;; \
   esac
-DATA = $(libscihelptools_la_bin_DATA) \
-       $(libscihelptools_la_data_configuration_DATA) \
+DATA = $(libscihelptools_la_data_configuration_DATA) \
        $(libscihelptools_la_data_css_DATA) \
        $(libscihelptools_la_data_pages_DATA) \
        $(libscihelptools_la_data_template_DATA) \
        $(libscihelptools_la_etc_DATA) $(libscihelptools_la_root_DATA) \
        $(libscihelptools_la_schema_DATA) \
        $(libscihelptools_la_sci_gateway_DATA) \
-       $(libscihelptools_la_xsl_convert_DATA) \
        $(libscihelptools_la_xsl_fo_DATA)
 am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
 # Read a list of newline-separated strings from the standard input,
@@ -598,13 +594,6 @@ libscihelptools_la_root_DATA = license.txt
 libscihelptools_la_etcdir = $(mydatadir)/etc
 libscihelptools_la_etc_DATA = etc/helptools.quit etc/helptools.start etc/MAIN_CHAPTERS etc/fopconf.xml etc/SciDocConf.xml
 
-#### helptools : bin files ####
-libscihelptools_la_bindir = $(mydatadir)/bin
-libscihelptools_la_bin_DATA = bin/scivalid \
-bin/man2sci \
-bin/manrev2sci
-
-
 #### helptools : gateway declaration ####
 libscihelptools_la_sci_gatewaydir = $(mydatadir)/sci_gateway
 libscihelptools_la_sci_gateway_DATA = sci_gateway/helptools_gateway.xml
@@ -626,13 +615,6 @@ data/css/c_code.css \
 data/css/xml_code.css \
 data/css/style.css
 
-
-#### helptools : xsl files ####
-libscihelptools_la_xsl_convertdir = $(mydatadir)/xsl/convert
-libscihelptools_la_xsl_convert_DATA = \
-xsl/convert/man2manrev.xsl \
-xsl/convert/manrev2sci.xsl
-
 libscihelptools_la_xsl_fodir = $(mydatadir)/xsl/fo
 libscihelptools_la_xsl_fo_DATA = xsl/fo/docbook.xsl
 
@@ -914,27 +896,6 @@ mostlyclean-libtool:
 
 clean-libtool:
        -rm -rf .libs _libs
-install-libscihelptools_la_binDATA: $(libscihelptools_la_bin_DATA)
-       @$(NORMAL_INSTALL)
-       @list='$(libscihelptools_la_bin_DATA)'; test -n "$(libscihelptools_la_bindir)" || list=; \
-       if test -n "$$list"; then \
-         echo " $(MKDIR_P) '$(DESTDIR)$(libscihelptools_la_bindir)'"; \
-         $(MKDIR_P) "$(DESTDIR)$(libscihelptools_la_bindir)" || exit 1; \
-       fi; \
-       for p in $$list; do \
-         if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
-         echo "$$d$$p"; \
-       done | $(am__base_list) | \
-       while read files; do \
-         echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(libscihelptools_la_bindir)'"; \
-         $(INSTALL_DATA) $$files "$(DESTDIR)$(libscihelptools_la_bindir)" || exit $$?; \
-       done
-
-uninstall-libscihelptools_la_binDATA:
-       @$(NORMAL_UNINSTALL)
-       @list='$(libscihelptools_la_bin_DATA)'; test -n "$(libscihelptools_la_bindir)" || list=; \
-       files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
-       dir='$(DESTDIR)$(libscihelptools_la_bindir)'; $(am__uninstall_files_from_dir)
 install-libscihelptools_la_data_configurationDATA: $(libscihelptools_la_data_configuration_DATA)
        @$(NORMAL_INSTALL)
        @list='$(libscihelptools_la_data_configuration_DATA)'; test -n "$(libscihelptools_la_data_configurationdir)" || list=; \
@@ -1103,27 +1064,6 @@ uninstall-libscihelptools_la_sci_gatewayDATA:
        @list='$(libscihelptools_la_sci_gateway_DATA)'; test -n "$(libscihelptools_la_sci_gatewaydir)" || list=; \
        files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
        dir='$(DESTDIR)$(libscihelptools_la_sci_gatewaydir)'; $(am__uninstall_files_from_dir)
-install-libscihelptools_la_xsl_convertDATA: $(libscihelptools_la_xsl_convert_DATA)
-       @$(NORMAL_INSTALL)
-       @list='$(libscihelptools_la_xsl_convert_DATA)'; test -n "$(libscihelptools_la_xsl_convertdir)" || list=; \
-       if test -n "$$list"; then \
-         echo " $(MKDIR_P) '$(DESTDIR)$(libscihelptools_la_xsl_convertdir)'"; \
-         $(MKDIR_P) "$(DESTDIR)$(libscihelptools_la_xsl_convertdir)" || exit 1; \
-       fi; \
-       for p in $$list; do \
-         if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
-         echo "$$d$$p"; \
-       done | $(am__base_list) | \
-       while read files; do \
-         echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(libscihelptools_la_xsl_convertdir)'"; \
-         $(INSTALL_DATA) $$files "$(DESTDIR)$(libscihelptools_la_xsl_convertdir)" || exit $$?; \
-       done
-
-uninstall-libscihelptools_la_xsl_convertDATA:
-       @$(NORMAL_UNINSTALL)
-       @list='$(libscihelptools_la_xsl_convert_DATA)'; test -n "$(libscihelptools_la_xsl_convertdir)" || list=; \
-       files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
-       dir='$(DESTDIR)$(libscihelptools_la_xsl_convertdir)'; $(am__uninstall_files_from_dir)
 install-libscihelptools_la_xsl_foDATA: $(libscihelptools_la_xsl_fo_DATA)
        @$(NORMAL_INSTALL)
        @list='$(libscihelptools_la_xsl_fo_DATA)'; test -n "$(libscihelptools_la_xsl_fodir)" || list=; \
@@ -1234,7 +1174,7 @@ check: $(BUILT_SOURCES)
        $(MAKE) $(AM_MAKEFLAGS) check-am
 all-am: Makefile $(LTLIBRARIES) $(DATA) all-local
 installdirs:
-       for dir in "$(DESTDIR)$(pkglibdir)" "$(DESTDIR)$(libscihelptools_la_bindir)" "$(DESTDIR)$(libscihelptools_la_data_configurationdir)" "$(DESTDIR)$(libscihelptools_la_data_cssdir)" "$(DESTDIR)$(libscihelptools_la_data_pagesdir)" "$(DESTDIR)$(libscihelptools_la_data_templatedir)" "$(DESTDIR)$(libscihelptools_la_etcdir)" "$(DESTDIR)$(libscihelptools_la_rootdir)" "$(DESTDIR)$(libscihelptools_la_schemadir)" "$(DESTDIR)$(libscihelptools_la_sci_gatewaydir)" "$(DESTDIR)$(libscihelptools_la_xsl_convertdir)" "$(DESTDIR)$(libscihelptools_la_xsl_fodir)"; do \
+       for dir in "$(DESTDIR)$(pkglibdir)" "$(DESTDIR)$(libscihelptools_la_data_configurationdir)" "$(DESTDIR)$(libscihelptools_la_data_cssdir)" "$(DESTDIR)$(libscihelptools_la_data_pagesdir)" "$(DESTDIR)$(libscihelptools_la_data_templatedir)" "$(DESTDIR)$(libscihelptools_la_etcdir)" "$(DESTDIR)$(libscihelptools_la_rootdir)" "$(DESTDIR)$(libscihelptools_la_schemadir)" "$(DESTDIR)$(libscihelptools_la_sci_gatewaydir)" "$(DESTDIR)$(libscihelptools_la_xsl_fodir)"; do \
          test -z "$$dir" || $(MKDIR_P) "$$dir"; \
        done
 install: $(BUILT_SOURCES)
@@ -1292,7 +1232,7 @@ info: info-am
 
 info-am:
 
-install-data-am: install-data-local install-libscihelptools_la_binDATA \
+install-data-am: install-data-local \
        install-libscihelptools_la_data_configurationDATA \
        install-libscihelptools_la_data_cssDATA \
        install-libscihelptools_la_data_pagesDATA \
@@ -1301,7 +1241,6 @@ install-data-am: install-data-local install-libscihelptools_la_binDATA \
        install-libscihelptools_la_rootDATA \
        install-libscihelptools_la_schemaDATA \
        install-libscihelptools_la_sci_gatewayDATA \
-       install-libscihelptools_la_xsl_convertDATA \
        install-libscihelptools_la_xsl_foDATA
 
 install-dvi: install-dvi-am
@@ -1348,8 +1287,7 @@ ps: ps-am
 
 ps-am:
 
-uninstall-am: uninstall-libscihelptools_la_binDATA \
-       uninstall-libscihelptools_la_data_configurationDATA \
+uninstall-am: uninstall-libscihelptools_la_data_configurationDATA \
        uninstall-libscihelptools_la_data_cssDATA \
        uninstall-libscihelptools_la_data_pagesDATA \
        uninstall-libscihelptools_la_data_templateDATA \
@@ -1357,7 +1295,6 @@ uninstall-am: uninstall-libscihelptools_la_binDATA \
        uninstall-libscihelptools_la_rootDATA \
        uninstall-libscihelptools_la_schemaDATA \
        uninstall-libscihelptools_la_sci_gatewayDATA \
-       uninstall-libscihelptools_la_xsl_convertDATA \
        uninstall-libscihelptools_la_xsl_foDATA \
        uninstall-pkglibLTLIBRARIES
 
@@ -1372,7 +1309,7 @@ uninstall-am: uninstall-libscihelptools_la_binDATA \
        install-data install-data-am install-data-local install-dvi \
        install-dvi-am install-exec install-exec-am install-html \
        install-html-am install-html-local install-info \
-       install-info-am install-libscihelptools_la_binDATA \
+       install-info-am \
        install-libscihelptools_la_data_configurationDATA \
        install-libscihelptools_la_data_cssDATA \
        install-libscihelptools_la_data_pagesDATA \
@@ -1381,7 +1318,6 @@ uninstall-am: uninstall-libscihelptools_la_binDATA \
        install-libscihelptools_la_rootDATA \
        install-libscihelptools_la_schemaDATA \
        install-libscihelptools_la_sci_gatewayDATA \
-       install-libscihelptools_la_xsl_convertDATA \
        install-libscihelptools_la_xsl_foDATA install-man install-pdf \
        install-pdf-am install-pkglibLTLIBRARIES install-ps \
        install-ps-am install-strip installcheck installcheck-am \
@@ -1389,7 +1325,6 @@ uninstall-am: uninstall-libscihelptools_la_binDATA \
        mostlyclean mostlyclean-compile mostlyclean-generic \
        mostlyclean-libtool mostlyclean-local pdf pdf-am ps ps-am tags \
        tags-am uninstall uninstall-am \
-       uninstall-libscihelptools_la_binDATA \
        uninstall-libscihelptools_la_data_configurationDATA \
        uninstall-libscihelptools_la_data_cssDATA \
        uninstall-libscihelptools_la_data_pagesDATA \
@@ -1398,7 +1333,6 @@ uninstall-am: uninstall-libscihelptools_la_binDATA \
        uninstall-libscihelptools_la_rootDATA \
        uninstall-libscihelptools_la_schemaDATA \
        uninstall-libscihelptools_la_sci_gatewayDATA \
-       uninstall-libscihelptools_la_xsl_convertDATA \
        uninstall-libscihelptools_la_xsl_foDATA \
        uninstall-pkglibLTLIBRARIES
 
diff --git a/scilab/modules/helptools/bin/man2sci b/scilab/modules/helptools/bin/man2sci
deleted file mode 100755 (executable)
index 5955c08..0000000
+++ /dev/null
@@ -1,41 +0,0 @@
-#!/bin/sh
-
-# Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
-# Copyright (C) 2008 - INRIA
-#
-# This file must be used under the terms of the CeCILL.
-# This source file is licensed as described in the file COPYING, which
-# you should have received as part of this distribution.  The terms
-# are also available at
-# http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
-
-if [ $# -ne 2 ]; then
-    echo "Usage: man2sci in_man_xml_file out_scilab_xml_file"
-    echo "Converts a document conforming to man.dtd to"
-    echo "a document conforming to scilab.rnc."
-    exit 1
-fi
-
-binDir=`dirname $0`
-libDir=$binDir/../../../thirdparty
-convertDir=$binDir/../xsl/convert
-
-type xsltproc 1> /dev/null 2>&1
-if [ $? -eq 0 ]; then
-
-    xsltproc -o "$1.manrev" "$convertDir/man2manrev.xsl" "$1"
-
-    xsltproc -o "$2" "$convertDir/manrev2sci.xsl" "$1.manrev"
-
-else
-
-    java -jar "$libDir/saxon.jar" -o "$1.manrev" "$1" \
-        "$convertDir/man2manrev.xsl"
-
-    java -jar "$libDir/saxon.jar" -o "$2" "$1.manrev" \
-        "$convertDir/manrev2sci.xsl"
-
-fi
-
-rm -f "$1.manrev"
-
diff --git a/scilab/modules/helptools/bin/man2sci.bat b/scilab/modules/helptools/bin/man2sci.bat
deleted file mode 100755 (executable)
index 5b1e48f..0000000
+++ /dev/null
@@ -1,34 +0,0 @@
-rem Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
-rem Copyright (C) 2008 - INRIA
-rem 
-rem This file must be used under the terms of the CeCILL.
-rem This source file is licensed as described in the file COPYING, which
-rem you should have received as part of this distribution.  The terms
-rem are also available at
-rem http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
-
-@echo off
-setlocal
-
-if "%2"=="" goto usage
-
-set binDir=%~dp0
-set libDir=%binDir%\..\..\..\thirdparty
-set convDir=%binDir%\..\xsl\convert
-set tmpFile=%1.manrev
-
-java -jar "%libDir%\saxon.jar" -o "%tmpFile%" "%1" "%convDir%\man2manrev.xsl"
-
-java -jar "%libDir%\saxon.jar" -o "%2" "%tmpFile%" "%convDir%\manrev2sci.xsl"
-
-if exist "%tmpFile%" del /q "%tmpFile%"
-
-goto end
-endlocal
-
-:usage
-echo Usage: man2sci in_man_xml_file out_scilab_xml_file
-echo Converts a document conforming to man.dtd to
-echo a document conforming to scilab.rnc.
-
-:end
diff --git a/scilab/modules/helptools/bin/manrev2sci b/scilab/modules/helptools/bin/manrev2sci
deleted file mode 100755 (executable)
index 40848fe..0000000
+++ /dev/null
@@ -1,33 +0,0 @@
-#!/bin/sh
-
-# Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
-# Copyright (C) 2008 - INRIA
-#
-# This file must be used under the terms of the CeCILL.
-# This source file is licensed as described in the file COPYING, which
-# you should have received as part of this distribution.  The terms
-# are also available at
-# http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
-
-if [ $# -ne 2 ]; then
-    echo "Usage: manrev2sci in_manrev_xml_file out_scilab_xml_file"
-    echo "Converts a document conforming to manrev.dtd to"
-    echo "a document conforming to scilab.rnc."
-    exit 1
-fi
-
-binDir=`dirname $0`
-libDir=$binDir/../../../thirdparty
-convertDir=$binDir/../xsl/convert
-
-type xsltproc 1> /dev/null 2>&1
-if [ $? -eq 0 ]; then
-
-    xsltproc -o "$2" "$convertDir/manrev2sci.xsl" "$1"
-
-else
-
-    java -jar "$libDir/saxon.jar" -o "$2" "$1" \
-        "$convertDir/manrev2sci.xsl"
-
-fi
diff --git a/scilab/modules/helptools/bin/manrev2sci.bat b/scilab/modules/helptools/bin/manrev2sci.bat
deleted file mode 100755 (executable)
index c706736..0000000
+++ /dev/null
@@ -1,29 +0,0 @@
-rem Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
-rem Copyright (C) 2008 - INRIA
-rem 
-rem This file must be used under the terms of the CeCILL.
-rem This source file is licensed as described in the file COPYING, which
-rem you should have received as part of this distribution.  The terms
-rem are also available at
-rem http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
-
-@echo off
-setlocal
-
-if "%2"=="" goto usage
-
-set binDir=%~dp0
-set libDir=%binDir%\..\..\..\thirdparty
-set convDir=%binDir%\..\xsl\convert
-
-java -jar "%libDir%\saxon.jar" -o "%2" "%1" "%convDir%\manrev2sci.xsl"
-
-goto end
-endlocal
-
-:usage
-echo Usage: manrev2sci in_manrev_xml_file out_scilab_xml_file
-echo Converts a document conforming to manrev.dtd to
-echo a document conforming to scilab.rnc.
-
-:end
diff --git a/scilab/modules/helptools/bin/sablotron/Readme.txt b/scilab/modules/helptools/bin/sablotron/Readme.txt
deleted file mode 100644 (file)
index 777cc8e..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-Put in this directory :
-
-sabcmd.exe
-sablot.dll
-js32.dll
-iconv.dll
-
-libexpat.dll
-
-you can download sablotron (full package with iconv and js32) at http://www.gingerall.org
-and libexpat.dll at http://sourceforge.net/projects/expat/
-
diff --git a/scilab/modules/helptools/bin/scivalid b/scilab/modules/helptools/bin/scivalid
deleted file mode 100755 (executable)
index 7eecc07..0000000
+++ /dev/null
@@ -1,47 +0,0 @@
-#!/bin/sh
-
-# Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
-# Copyright (C) 2008 - INRIA
-#
-# This file must be used under the terms of the CeCILL.
-# This source file is licensed as described in the file COPYING, which
-# you should have received as part of this distribution.  The terms
-# are also available at
-# http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
-
-if [ $# -eq 0 ]; then
-    echo "Usage: scivalid xml_file ... xml_file"
-    echo "Validates specified XML files against the scilab.rnc schema."
-    exit 1
-fi
-
-binDir=`dirname $0`
-schemaDir=$binDir/../schema
-
-
-
-# libDir path
-# ==============================================================================
-
-if [ -e "$binDir/../../../thirdparty" ]; then
-       libDir=$binDir/../../../thirdparty
-elif [ -e "$binDir/../../../../../thirdparty" ]; then
-       libDir=$binDir/../../../../../thirdparty
-else
-       echo "Could not find the thirdparty directory."
-       exit 2
-fi
-
-# jar checks
-# ==============================================================================
-
-if [ ! -e "$libDir/jing.jar" ]; then
-    echo "Don't find the jing.jar file."
-    exit 3
-fi
-
-# validation
-# ==============================================================================
-
-java -jar "$libDir/jing.jar" "$schemaDir/scilab.rng" "$@"
-
diff --git a/scilab/modules/helptools/bin/scivalid.bat b/scilab/modules/helptools/bin/scivalid.bat
deleted file mode 100755 (executable)
index b17c7ab..0000000
+++ /dev/null
@@ -1,29 +0,0 @@
-rem Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
-rem Copyright (C) 2008 - INRIA
-rem 
-rem This file must be used under the terms of the CeCILL.
-rem This source file is licensed as described in the file COPYING, which
-rem you should have received as part of this distribution.  The terms
-rem are also available at
-rem http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
-
-@echo off
-setlocal
-
-if "%1"=="" goto usage
-
-set binDir=%~dp0
-set libDir=%binDir%\..\..\..\thirdparty
-set schemaDir=%binDir%\..\schema
-
-java -jar "%libDir%\jing.jar" "%schemaDir%\scilab.rng" %*
-
-goto end
-endlocal
-
-:usage
-echo Usage: scivalid xml_file ... xml_file
-echo Validates specified XML files against the scilab.rng schema.
-
-:end
-
diff --git a/scilab/modules/helptools/bin/sciviewhelp b/scilab/modules/helptools/bin/sciviewhelp
deleted file mode 100755 (executable)
index 28a99d9..0000000
+++ /dev/null
@@ -1,51 +0,0 @@
-#!/bin/sh
-
-# Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
-# Copyright (C) 2008 - INRIA
-#
-# This file must be used under the terms of the CeCILL.
-# This source file is licensed as described in the file COPYING, which
-# you should have received as part of this distribution.  The terms
-# are also available at
-# http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
-
-if [ $# -eq 0 ]; then
-    echo "Usage: sciviewhelp javahelp_jar_file ... javahelp_jar_file"
-    echo "Allows to browse the contents of one or more"
-    echo "JavaHelp[tm] .jar files created using sci2jh."
-    echo "The name of a JavaHelp .jar file must end with '_help.jar'."
-    exit 1
-fi
-
-binDir=`dirname $0`
-
-# libDir path
-# ==============================================================================
-
-if [ -e "$binDir/../../../thirdparty" ]; then
-       libDir=$binDir/../../../thirdparty
-elif [ -e "$binDir/../../../../../thirdparty" ]; then
-       libDir=$binDir/../../../../../thirdparty
-else
-       echo "Don't find the thirdparty directory."
-       exit 2
-fi
-
-# jar checks
-# ==============================================================================
-
-if [ ! -e "$libDir/sci_doc_kit.jar" ]; then
-    echo "Don't find the sci_doc_kit.jar file."
-    exit 3
-fi
-
-if [ ! -e "$libDir/jhall.jar" ]; then
-    echo "Don't find the sci_doc_kit.jar file."
-    exit 4
-fi
-
-# launch the browser
-# ==============================================================================
-
-java -cp "$libDir/sci_doc_kit.jar:$libDir/jhall.jar" \
-        org.scilab.doc_kit.HelpViewer "$@"
diff --git a/scilab/modules/helptools/bin/sciviewhelp.bat b/scilab/modules/helptools/bin/sciviewhelp.bat
deleted file mode 100755 (executable)
index 120f630..0000000
+++ /dev/null
@@ -1,29 +0,0 @@
-rem Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
-rem Copyright (C) 2008 - INRIA
-rem 
-rem This file must be used under the terms of the CeCILL.
-rem This source file is licensed as described in the file COPYING, which
-rem you should have received as part of this distribution.  The terms
-rem are also available at
-rem http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
-
-@echo off
-setlocal
-
-if "%1"=="" goto usage
-
-set binDir=%~dp0
-set libDir=%binDir%\..\..\..\thirdparty
-
-java -cp "%libDir%\sci_doc_kit.jar;%libDir%\jhall.jar" org.scilab.doc_kit.HelpViewer %*
-
-goto end
-endlocal
-
-:usage
-echo Usage: sciviewhelp javahelp_jar_file ... javahelp_jar_file
-echo Allows to browse the contents of one or more
-echo JavaHelp[tm] .jar files created using sci2jh.
-echo The name of a JavaHelp .jar file must end with '_help.jar'.
-
-:end
diff --git a/scilab/modules/helptools/macros/check_help.sci b/scilab/modules/helptools/macros/check_help.sci
deleted file mode 100644 (file)
index b50513c..0000000
+++ /dev/null
@@ -1,205 +0,0 @@
-// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
-// Copyright (C) 2006-2008 - INRIA - Pierre MARECHAL <pierre.marechal@inria.fr>
-//
-// This file must be used under the terms of the CeCILL.
-// This source file is licensed as described in the file COPYING, which
-// you should have received as part of this distribution.  The terms
-// are also available at
-// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
-
-function check_help(dirs)
-
-    // =========================================================================
-    // Date : 08/08/2006
-    //
-    // Update by Sylvestre LEDRU <sylvestre.ledru@inria.fr> on the 04/10/2007
-    // dirs is a set of directories for which html manuals are to be generated
-    // =========================================================================
-
-
-    // Save the current path and the variable %helps
-    //--------------------------------------------------------------------------
-
-    current_directory = pwd();
-
-    [lhs,rhs]=argn(0);
-
-    // Too many parameters
-    // -------------------------------------------------------------------------
-
-    if rhs > 1 then
-        error(39);
-        return;
-    end
-
-    // Default case : Check of the Scilab Online help
-    // -------------------------------------------------------------------------
-
-    if (rhs <= 0) | ((rhs == 1) & (dirs == [])) then
-
-        global %helps;
-        global %helps_modules
-        if %helps_modules == [] then
-            moduleslist = getmodules();
-            for i = 1:size(moduleslist,"*")
-                add_module_help_chapter(moduleslist(i));
-            end
-        end
-        %HELPS=[%helps_modules;%helps];
-        dirs_to_build = %HELPS;
-        clear %HELPS;
-        dirs = gsort(dirs_to_build(:,1),"lr","i");
-    end
-
-    // Transform the relative path to the absolute one
-    // -------------------------------------------------------------------------
-
-    for k=1:size(dirs,"*");
-        chdir(dirs(k));
-        if getos() == "Windows" then
-            dirs(k) = getlongpathname(pwd());
-        else
-            dirs(k) = pwd();
-        end
-        chdir(current_directory);
-    end
-
-    // Management of the log file
-    //--------------------------------------------------------------------------
-    logfile    = pathconvert(SCIHOME+"/check_help_"+getlanguage()+".log",%f,%f);
-    logfile_id = mopen(logfile,"w");
-    mclose(logfile_id);
-
-    // Number of files with a bad XML syntax in all the processed directories
-    //--------------------------------------------------------------------------
-
-    nb_badfiles = 0;
-    badfiles    = [];
-
-    // Loop on the directory
-    //--------------------------------------------------------------------------
-
-    for k1=1:size(dirs,"*")
-
-        // Number of files with a bad XML syntax in the current directory
-        //----------------------------------------------------------------------
-        nb_badfiles_dir = 0;
-
-        // Creation of the XML list file
-        //----------------------------------------------------------------------
-        chdir(dirs(k1));
-        xml = listfiles("*.xml");
-
-        if xml <> [] then
-
-            // Check if we must verify this directory
-            //------------------------------------------------------------------
-
-            if ~isfile(".last_successful_check") then
-                need_to_be_checked = %T;
-            else
-                exec(".last_successful_check",-1);
-
-                // Check which file is the more recent
-                //--------------------------------------------------------------
-
-                max_change_date = 0;
-
-                for i=1:size(xml,"*")
-                    file_date = fileinfo(xml(i));
-                    if file_date(6) > max_change_date then
-                        max_change_date = file_date(6);
-                    end
-                end
-
-                if max_change_date > last_success_check_val then
-                    need_to_be_checked = %T;
-                else
-                    need_to_be_checked = %F;
-                end
-            end
-
-            // Loop on the XML files
-            //------------------------------------------------------------------
-
-            if need_to_be_checked then
-
-                if xml <> [] then
-
-                    for k2=1:size(xml,"*")
-
-                        if k2 == 1 then
-                            mprintf("%s\n",strsubst(dirs(k1),SCI,"SCI"));
-                        end
-
-                        unix(SCI+"/modules/helptools/bin/scivalid """+xml(k2)+""" > "+TMPDIR+"/check_help.txt 2>&1");
-
-                        my_log = mgetl(TMPDIR+"/check_help.txt");
-
-                        if ( size( grep(my_log,"/IDREF(.)*without matching ID/","r"), "*" ) <> size(my_log,"*") ) then
-
-                            nb_badfiles     = nb_badfiles + 1;
-                            nb_badfiles_dir = nb_badfiles_dir + 1;
-
-                            badfile         = pathconvert(dirs(k1)+"/"+xml(k2),%f,%f);
-                            badfiles        = [badfiles;badfile];
-                            logfile_id      = mopen(logfile,"a+");
-
-                            mfprintf(logfile_id,"\n----------------------------------------------------------------------\n");
-                            mfprintf(logfile_id,"%s\n",badfile);
-                            mfprintf(logfile_id,"----------------------------------------------------------------------\n");
-
-                            for line=1:size(my_log,"*")
-                                if( grep( my_log(line) ,"/IDREF(.)*without matching ID/","r" ) == [] ) then
-                                    mfprintf(logfile_id,"%s\n",my_log(line));
-                                end
-                            end
-
-                            mclose(logfile_id);
-                        end
-                    end
-                end
-
-                // Creation of the file "directory/.last_successful_check"
-                //--------------------------------------------------------------
-
-                if nb_badfiles_dir == 0 then
-                    dateToPrint = msprintf("last_success_check_val = %d",getdate("s"));
-                    mputl(dateToPrint,pathconvert(".last_successful_check",%f,%f));
-                end
-
-            end
-        end
-    end
-
-
-    if nb_badfiles == 1 then
-        mprintf("\nBad syntax in 1 file :\n");
-    elseif nb_badfiles > 0 then
-        mprintf("\nBad syntax in %d files :\n",nb_badfiles);
-    else
-        mprintf("\nAll xml files are correct\n");
-    end
-
-    if nb_badfiles > 0 then
-        for k=1:size(badfiles,"*")
-            mprintf("\t- %s\n",badfiles(k));
-        end
-
-        if grep(sciargs(),"-nw") == [] then
-            if (isdef("editor") | (funptr("editor")<>0)) then
-                editor(logfile);
-            else
-                mprintf("\n\tSee %s\n",logfile);
-            end
-        else
-            mprintf("\n\tSee %s\n",logfile);
-        end
-    end
-
-    // Restore the initial environement
-    //--------------------------------------------------------------------------
-
-    chdir(current_directory);
-
-endfunction
diff --git a/scilab/modules/helptools/xsl/convert/man2manrev.xsl b/scilab/modules/helptools/xsl/convert/man2manrev.xsl
deleted file mode 100644 (file)
index 01a7b5b..0000000
+++ /dev/null
@@ -1,218 +0,0 @@
-<?xml version="1.0" encoding="ISO-8859-1"?>
-<xsl:stylesheet version="1.0"
-  xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
-
-  <xsl:output method="xml" version="1.0" encoding="ISO-8859-1" indent="no" 
-              cdata-section-elements="VERBATIM EXAMPLE" />
-
-  <xsl:template match="USED_FUNCTIONS | 
-                       PARAM_DESCRIPTION |
-                       DESCRIPTION |
-                       DESCRIPTION_ITEM |
-                       BIBLIO |
-                       ITEM">
-    <xsl:element name="{ name(.) }">
-      <xsl:apply-templates select="@*" />
-
-      <xsl:call-template name="wrap-mixed-content">
-        <xsl:with-param name="nodes" select="node()" />
-      </xsl:call-template>
-    </xsl:element>
-  </xsl:template>
-
-  <xsl:template name="wrap-mixed-content">
-    <xsl:param name="nodes" />
-
-    <xsl:if test="count($nodes) &gt; 0">
-      <xsl:variable name="last">
-        <xsl:call-template name="find-last-mixed">
-          <xsl:with-param name="nodes" select="$nodes" />
-          <xsl:with-param name="index" select="0" />
-        </xsl:call-template>
-      </xsl:variable>
-
-      <xsl:choose>
-        <xsl:when test="$last &gt;= 1">
-          <xsl:variable name="range" select="$nodes[position() &lt;= $last]" />
-
-          <xsl:if test="count($range) &gt; 1 or 
-                        $range[1]/node() or 
-                        normalize-space($range[1])">
-            <P><xsl:apply-templates select="$range" /></P>
-          </xsl:if>
-
-          <xsl:call-template name="wrap-mixed-content">
-            <xsl:with-param name="nodes" 
-                            select="$nodes[position() &gt; $last]" />
-          </xsl:call-template>
-        </xsl:when>
-
-        <xsl:otherwise>
-         <xsl:apply-templates select="$nodes[1]" />
-
-          <xsl:call-template name="wrap-mixed-content">
-            <xsl:with-param name="nodes" select="$nodes[position() &gt; 1]" />
-          </xsl:call-template>
-        </xsl:otherwise>
-      </xsl:choose>
-    </xsl:if>
-  </xsl:template>
-
-  <xsl:template name="find-last-mixed">
-    <xsl:param name="nodes" />
-    <xsl:param name="index" />
-
-    <xsl:variable name="name" select="name($nodes[1])" />
-
-    <xsl:choose>
-      <xsl:when test="count($nodes) &gt; 0 and
-                      ($name = '' or 
-                       $name = 'VERB' or
-                       $name = 'EM' or
-                       $name = 'BD' or
-                       $name = 'TT' or
-                       $name = 'A' or
-                       $name = 'LINK')">
-        <xsl:call-template name="find-last-mixed">
-          <xsl:with-param name="nodes" select="$nodes[position() &gt; 1]" />
-          <xsl:with-param name="index" select="$index + 1" />
-        </xsl:call-template>
-      </xsl:when>
-
-      <xsl:otherwise>
-        <xsl:value-of select="$index" />
-      </xsl:otherwise>
-    </xsl:choose>
-  </xsl:template>
-
-  <!-- Flatten these elements. -->
-
-  <xsl:template match="CALLING_SEQUENCE/PP |
-                       SEE_ALSO_ITEM/P">
-    <xsl:value-of select="string(.)" />
-  </xsl:template>
-
-  <!-- Check these elements. -->
-
-  <xsl:template match="ITEMIZE">
-    <xsl:if test="./*[name(.) != 'ITEM'] or 
-                  ./text()[normalize-space(.)]">
-      <xsl:call-template name="unsupported-child-element">
-        <xsl:with-param name="parent" select="." />
-        <xsl:with-param name="supported" select="'ITEM'" />
-      </xsl:call-template>
-    </xsl:if>
-
-    <xsl:element name="{ name(.) }">
-      <xsl:apply-templates select="@*" />
-
-      <xsl:apply-templates select="./ITEM" />
-    </xsl:element>
-  </xsl:template>
-
-  <xsl:template match="AUTHORS">
-    <xsl:if test="./*[name(.) != 'AUTHORS_ITEM'] or 
-                  ./text()[normalize-space(.)]">
-      <xsl:call-template name="unsupported-child-element">
-        <xsl:with-param name="parent" select="." />
-        <xsl:with-param name="supported" select="'AUTHORS_ITEM'" />
-      </xsl:call-template>
-    </xsl:if>
-
-    <xsl:element name="{ name(.) }">
-      <xsl:apply-templates select="@*" />
-
-      <xsl:apply-templates select="./AUTHORS_ITEM" />
-    </xsl:element>
-  </xsl:template>
-
-  <xsl:template match="DESCRIPTION_INDENT">
-    <xsl:if test="./*[name(.) != 'DESCRIPTION_ITEM'] or 
-                  ./text()[normalize-space(.)]">
-      <xsl:call-template name="unsupported-child-element">
-        <xsl:with-param name="parent" select="." />
-        <xsl:with-param name="supported" select="'DESCRIPTION_ITEM'" />
-      </xsl:call-template>
-    </xsl:if>
-
-    <xsl:element name="{ name(.) }">
-      <xsl:apply-templates select="@*" />
-
-      <xsl:apply-templates select="./DESCRIPTION_ITEM" />
-    </xsl:element>
-  </xsl:template>
-
-  <xsl:template match="PARAM_ITEM">
-    <xsl:if test="./*[name(.) != 'PARAM_NAME' and 
-                      name(.) != 'PARAM_DESCRIPTION']">
-      <xsl:call-template name="unsupported-child-element">
-        <xsl:with-param name="parent" select="." />
-        <xsl:with-param name="supported" 
-         select="'PARAM_NAME and PARAM_DESCRIPTION'" />
-      </xsl:call-template>
-    </xsl:if>
-
-    <xsl:element name="{ name(.) }">
-      <xsl:apply-templates select="@*" />
-
-      <xsl:apply-templates select="./*[name(.) = 'PARAM_NAME' or
-                                       name(.) = 'PARAM_DESCRIPTION']" />
-    </xsl:element>
-  </xsl:template>
-
-  <xsl:template match="PARAM_INDENT">
-    <xsl:if test="./*[name(.) != 'PARAM_ITEM'] or 
-                  ./text()[normalize-space(.)]">
-      <xsl:call-template name="unsupported-child-element">
-        <xsl:with-param name="parent" select="." />
-        <xsl:with-param name="supported" select="'PARAM_ITEM'" />
-      </xsl:call-template>
-    </xsl:if>
-
-    <xsl:element name="{ name(.) }">
-      <xsl:apply-templates select="@*" />
-
-      <xsl:apply-templates select="./PARAM_ITEM" />
-    </xsl:element>
-  </xsl:template>
-
-  <xsl:template match="PARAM">
-    <xsl:if test="./*[name(.) != 'PARAM_INDENT'] or 
-                  ./text()[normalize-space(.)]">
-      <xsl:call-template name="unsupported-child-element">
-        <xsl:with-param name="parent" select="." />
-        <xsl:with-param name="supported" select="'PARAM_INDENT'" />
-      </xsl:call-template>
-    </xsl:if>
-
-    <xsl:element name="{ name(.) }">
-      <xsl:apply-templates select="@*" />
-
-      <xsl:apply-templates select="./PARAM_INDENT" />
-    </xsl:element>
-  </xsl:template>
-
-  <!-- By default, copy everything. -->
-
-  <xsl:template match="@*|node()">
-    <xsl:copy>
-      <xsl:apply-templates select="@*|node()" />
-    </xsl:copy>
-  </xsl:template>
-
-  <!-- Helpers =========================================================== -->
-
-  <xsl:template name="unsupported-child-element">
-    <xsl:param name="parent" />
-    <xsl:param name="supported" />
-
-    <xsl:message terminate="no">
-      <xsl:text>WARNING: element </xsl:text>
-      <xsl:value-of select="name($parent)" />
-      <xsl:text> contains some text or child elements other than </xsl:text>
-      <xsl:value-of select="$supported" />
-      <xsl:text>.</xsl:text>
-    </xsl:message>
-  </xsl:template>
-
-</xsl:stylesheet>
diff --git a/scilab/modules/helptools/xsl/convert/manrev2sci.xsl b/scilab/modules/helptools/xsl/convert/manrev2sci.xsl
deleted file mode 100644 (file)
index 5cf46ae..0000000
+++ /dev/null
@@ -1,505 +0,0 @@
-<?xml version="1.0" encoding="ISO-8859-1"?>
-<xsl:stylesheet version="1.0"
-  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
-  xmlns:xlink="http://www.w3.org/1999/xlink"
-  xmlns:svg="http://www.w3.org/2000/svg"
-  xmlns:mml="http://www.w3.org/1998/Math/MathML"
-  xmlns="http://docbook.org/ns/docbook"
-  xmlns:db="http://docbook.org/ns/docbook">
-
-  <xsl:output method="xml" version="1.0" encoding="ISO-8859-1" indent="no" 
-              cdata-section-elements="programlisting" />
-
-  <xsl:strip-space elements="CALLING_SEQUENCE" />
-
-  <xsl:template match="MAN">
-    <refentry version="5.0-subset Scilab">
-      <xsl:attribute name="xml:lang">
-        <xsl:call-template name="to-xml-lang">
-          <xsl:with-param name="lang" select="./LANGUAGE" />
-        </xsl:call-template>
-      </xsl:attribute>
-
-      <xsl:variable name="description-count" 
-                    select="count(./SHORT_DESCRIPTION)" />
-
-      <xsl:variable name="title">
-        <xsl:call-template name="check-id">
-          <xsl:with-param name="id" select="./TITLE" />
-        </xsl:call-template>
-      </xsl:variable>
-
-      <xsl:attribute name="xml:id">
-        <xsl:choose>
-          <xsl:when test="$description-count = 1">
-            <xsl:call-template name="check-id">
-              <xsl:with-param name="id" select="./SHORT_DESCRIPTION/@name" />
-            </xsl:call-template>
-          </xsl:when>
-
-          <xsl:otherwise>
-            <xsl:value-of select="$title" />
-          </xsl:otherwise>
-        </xsl:choose>
-      </xsl:attribute>
-
-      <xsl:if test="./DATE|./KEYWORD">
-        <info>
-          <xsl:if test="./DATE">
-            <pubdate><xsl:apply-templates mode="info" 
-                      select="./DATE" /></pubdate>
-          </xsl:if>
-
-          <xsl:if test="./KEYWORD">
-            <keywordset>
-              <keyword><xsl:apply-templates mode="info" 
-                        select="./KEYWORD" /></keyword>
-            </keywordset>
-          </xsl:if>
-        </info>
-      </xsl:if>
-
-      <xsl:for-each select="./SHORT_DESCRIPTION">
-        <xsl:variable name="name">
-          <xsl:call-template name="check-id">
-            <xsl:with-param name="id" select="./@name" />
-          </xsl:call-template>
-        </xsl:variable>
-
-        <refnamediv>
-          <xsl:if test="$description-count &gt; 1 and $name != $title">
-            <xsl:attribute name="xml:id">
-              <xsl:value-of select="$name" />
-            </xsl:attribute>
-          </xsl:if>
-
-          <refname><xsl:value-of select="./@name" /></refname>
-          <refpurpose>
-            <xsl:apply-templates select="." mode="refnamediv" />
-          </refpurpose>
-        </refnamediv>
-      </xsl:for-each>
-
-      <xsl:apply-templates />
-    </refentry>
-  </xsl:template>
-
-  <xsl:template match="DATE" mode="info">
-    <xsl:apply-templates />
-  </xsl:template>
-
-  <xsl:template match="KEYWORD" mode="info">
-    <xsl:apply-templates />
-  </xsl:template>
-
-  <xsl:template match="SHORT_DESCRIPTION" mode="refnamediv">
-    <xsl:apply-templates mode="flatten" />
-  </xsl:template>
-
-  <xsl:template match="P|SP|PP" mode="flatten">
-    <xsl:apply-templates select="./node()" />
-  </xsl:template>
-
-  <xsl:template match="META" />
-  <xsl:template match="LANGUAGE" />
-  <xsl:template match="TITLE" />
-  <xsl:template match="TYPE" />
-  <xsl:template match="DATE" />
-  <xsl:template match="KEYWORD" />
-  <xsl:template match="SHORT_DESCRIPTION" />
-
-  <!-- Section-like elements ============================================= -->
-
-  <xsl:template match="CALLING_SEQUENCE">
-    <refsynopsisdiv>
-      <title>
-        <xsl:call-template name="localized-message">
-          <xsl:with-param name="msg" select="name(.)" />
-        </xsl:call-template>
-      </title>
-
-      <synopsis>
-        <xsl:apply-templates select="./CALLING_SEQUENCE_ITEM[1]" />
-        <xsl:for-each select="./CALLING_SEQUENCE_ITEM[position() &gt; 1]">
-          <xsl:text>&#xA;</xsl:text>
-          <xsl:apply-templates select="." />
-        </xsl:for-each>
-      </synopsis>
-    </refsynopsisdiv>
-  </xsl:template>
-
-  <xsl:template match="CALLING_SEQUENCE_ITEM">
-    <xsl:value-of select="normalize-space(string(.))" />
-  </xsl:template>
-
-  <xsl:template match="PARAM">
-    <xsl:if test="./*">
-      <xsl:call-template name="unsupported-attribute">
-        <xsl:with-param name="name" select="concat(name(.), '/@target')" />
-        <xsl:with-param name="value" select="./@target" />
-      </xsl:call-template>
-
-      <refsection>
-        <title>
-          <xsl:call-template name="localized-message">
-            <xsl:with-param name="msg" select="name(.)" />
-          </xsl:call-template>
-        </title>
-
-        <xsl:apply-templates />
-      </refsection>
-    </xsl:if>
-  </xsl:template>
-
-  <xsl:template match="PARAM_INDENT">
-    <variablelist>
-      <xsl:apply-templates />
-    </variablelist>
-  </xsl:template>
-
-  <xsl:template match="PARAM_ITEM">
-    <varlistentry>
-      <xsl:apply-templates />
-    </varlistentry>
-  </xsl:template>
-
-  <xsl:template match="PARAM_NAME">
-    <term><xsl:apply-templates /></term>
-  </xsl:template>
-
-  <xsl:template match="PARAM_DESCRIPTION">
-    <listitem>
-      <xsl:apply-templates />
-    </listitem>
-  </xsl:template>
-
-  <xsl:template match="DESCRIPTION">
-    <xsl:if test="./*">
-      <refsection>
-        <title>
-          <xsl:call-template name="localized-message">
-            <xsl:with-param name="msg" select="name(.)" />
-          </xsl:call-template>
-        </title>
-
-        <xsl:apply-templates />
-      </refsection>
-    </xsl:if>
-  </xsl:template>
-
-  <xsl:template match="DESCRIPTION_INDENT">
-    <xsl:if test="./DESCRIPTION_ITEM/*">
-      <xsl:choose>
-        <xsl:when test="./DESCRIPTION_ITEM/@label and 
-                        normalize-space(./DESCRIPTION_ITEM/@label) != '*' and 
-                        normalize-space(./DESCRIPTION_ITEM/@label) != '-'">
-          <variablelist><xsl:apply-templates 
-                         mode="variablelist" /></variablelist>
-        </xsl:when>
-
-        <xsl:otherwise>
-          <itemizedlist><xsl:apply-templates /></itemizedlist>
-        </xsl:otherwise>
-      </xsl:choose>
-    </xsl:if>
-  </xsl:template>
-
-  <xsl:template match="DESCRIPTION_ITEM|ITEM" mode="variablelist">
-    <xsl:if test="./*">
-      <varlistentry>
-        <term><xsl:value-of select="@label" /></term>
-        <listitem><xsl:apply-templates /></listitem>
-      </varlistentry>
-    </xsl:if>
-  </xsl:template>
-
-  <xsl:template match="DESCRIPTION_ITEM|ITEM">
-    <xsl:if test="./*">
-      <listitem><xsl:apply-templates /></listitem>
-    </xsl:if>
-  </xsl:template>
-
-  <xsl:template match="SECTION">
-    <xsl:if test="./*">
-      <refsection>
-        <title><xsl:value-of select="@label" /></title>
-
-        <xsl:apply-templates />
-      </refsection>
-    </xsl:if>
-  </xsl:template>
-
-  <xsl:template match="EXAMPLE">
-    <refsection>
-      <title>
-        <xsl:call-template name="localized-message">
-          <xsl:with-param name="msg" select="name(.)" />
-        </xsl:call-template>
-      </title>
-
-      <programlisting role="example"><xsl:apply-templates /></programlisting>
-    </refsection>
-  </xsl:template>
-
-  <xsl:template match="SEE_ALSO">
-    <refsection>
-      <title>
-        <xsl:call-template name="localized-message">
-          <xsl:with-param name="msg" select="name(.)" />
-        </xsl:call-template>
-      </title>
-
-      <simplelist type="inline"><xsl:apply-templates /></simplelist>
-    </refsection>
-  </xsl:template>
-
-  <xsl:template match="SEE_ALSO_ITEM">
-    <member><xsl:apply-templates /></member>
-  </xsl:template>
-
-  <xsl:template match="AUTHORS">
-    <refsection>
-      <title>
-        <xsl:call-template name="localized-message">
-          <xsl:with-param name="msg" select="name(.)" />
-        </xsl:call-template>
-      </title>
-
-      <xsl:choose>
-        <xsl:when test="./AUTHORS_ITEM/@label">
-          <variablelist><xsl:apply-templates 
-                         mode="variablelist" /></variablelist>
-        </xsl:when>
-
-        <xsl:otherwise>
-          <simplelist type="vert"><xsl:apply-templates /></simplelist>
-        </xsl:otherwise>
-      </xsl:choose>
-    </refsection>
-  </xsl:template>
-
-  <xsl:template match="AUTHORS_ITEM" mode="variablelist">
-    <varlistentry>
-      <term><xsl:value-of select="@label" /></term>
-      <listitem><para><xsl:apply-templates /></para></listitem>
-    </varlistentry>
-  </xsl:template>
-
-  <xsl:template match="AUTHORS_ITEM">
-    <member><xsl:apply-templates mode="flatten" /></member>
-  </xsl:template>
-
-  <xsl:template match="AUTHOR">
-    <refsection>
-      <title>
-        <xsl:call-template name="localized-message">
-          <xsl:with-param name="msg" select="name(.)" />
-        </xsl:call-template>
-      </title>
-
-      <para><xsl:apply-templates /></para>
-    </refsection>
-  </xsl:template>
-
-  <xsl:template match="BIBLIO|USED_FUNCTIONS">
-    <xsl:if test="./*">
-      <refsection>
-        <title>
-          <xsl:call-template name="localized-message">
-            <xsl:with-param name="msg" select="name(.)" />
-          </xsl:call-template>
-        </title>
-
-        <xsl:apply-templates />
-      </refsection>
-    </xsl:if>
-  </xsl:template>
-
-  <!-- Block-level elements ============================================== -->
-
-  <xsl:template match="P|SP|PP">
-    <para><xsl:apply-templates /></para>
-  </xsl:template>
-
-  <xsl:template match="P/text()[1]|SP/text()[1]|PP/text()[1]">
-    <xsl:variable name="text" select="string(.)" />
-
-    <xsl:choose>
-      <xsl:when test="starts-with(normalize-space($text), ': ')">
-        <xsl:value-of select="substring-after($text, ': ')" />
-      </xsl:when>
-
-      <xsl:otherwise>
-        <xsl:value-of select="$text" />
-      </xsl:otherwise>
-    </xsl:choose>
-  </xsl:template>
-
-  <xsl:template match="VERBATIM">
-    <programlisting><xsl:apply-templates /></programlisting>
-  </xsl:template>
-
-  <xsl:template match="ITEMIZE">
-    <xsl:if test="./ITEM/*">
-      <xsl:call-template name="unsupported-attribute">
-        <xsl:with-param name="name" select="concat(name(.), '/@label')" />
-        <xsl:with-param name="value" select="./@label" />
-      </xsl:call-template>
-
-      <xsl:choose>
-        <xsl:when test="./ITEM/@label and 
-                        normalize-space(./ITEM/@label) != '*' and 
-                        normalize-space(./ITEM/@label) != '-'">
-          <variablelist><xsl:apply-templates 
-                         mode="variablelist" /></variablelist>
-        </xsl:when>
-
-        <xsl:otherwise>
-          <itemizedlist><xsl:apply-templates /></itemizedlist>
-        </xsl:otherwise>
-      </xsl:choose>
-    </xsl:if>
-  </xsl:template>
-
-  <xsl:template match="TABLE">
-    <informaltable border="1"><xsl:apply-templates /></informaltable>
-  </xsl:template>
-
-  <xsl:template match="TABLE_NEW_ROW">
-    <tr><xsl:apply-templates /></tr>
-  </xsl:template>
-
-  <xsl:template match="TABLE_NEW_COLUMN">
-    <td><xsl:apply-templates /></td>
-  </xsl:template>
-
-  <!-- Inline-level elements ============================================= -->
-
-  <xsl:template match="A">
-    <link xlink:href="{@href}"><xsl:apply-templates /></link>
-  </xsl:template>
-
-  <xsl:template match="LINK">
-    <xsl:variable name="target">
-      <xsl:call-template name="check-id">
-        <xsl:with-param name="id" select="." />
-      </xsl:call-template>
-    </xsl:variable>
-
-    <link linkend="{$target}"><xsl:apply-templates /></link>
-  </xsl:template>
-
-  <xsl:template match="IMG">
-    <inlinemediaobject>
-      <imageobject>
-        <imagedata fileref="{@src}" />
-      </imageobject>
-    </inlinemediaobject>
-  </xsl:template>
-
-  <xsl:template match="VERB|TT">
-    <literal><xsl:apply-templates /></literal>
-  </xsl:template>
-
-  <xsl:template match="EM|MATH">
-    <emphasis><xsl:apply-templates /></emphasis>
-  </xsl:template>
-
-  <xsl:template match="BD">
-    <emphasis role="bold"><xsl:apply-templates /></emphasis>
-  </xsl:template>
-
-  <!-- Unsupported elements and attributes =============================== -->
-
-  <xsl:template match="*">
-    <xsl:message terminate="no">
-      <xsl:text>WARNING: unsupported element "</xsl:text>
-      <xsl:value-of select="name(.)"/>
-      <xsl:text>".</xsl:text>
-    </xsl:message>
-  </xsl:template>
-
-  <xsl:template name="unsupported-attribute">
-    <xsl:param name="name" select="''" />
-    <xsl:param name="value" select="''" />
-
-    <xsl:if test="$value != ''">
-      <xsl:message terminate="no">
-        <xsl:text>WARNING: unsupported attribute "</xsl:text>
-        <xsl:value-of select="$name" />
-        <xsl:text>" (its value is "</xsl:text>
-        <xsl:value-of select="$value" />
-        <xsl:text>").</xsl:text>
-      </xsl:message>
-    </xsl:if>
-  </xsl:template>
-
-  <!-- Helpers =========================================================== -->
-
-  <xsl:template name="localized-message">
-    <xsl:param name="msg" select="''" />
-
-    <xsl:variable name="lang">
-      <xsl:call-template name="to-xml-lang">
-        <xsl:with-param name="lang" select="/MAN/LANGUAGE" />
-      </xsl:call-template>
-    </xsl:variable>
-
-    <xsl:choose>
-      <xsl:when test="$lang = 'fr'">
-        <xsl:choose>
-          <xsl:when 
-           test="$msg = 'CALLING_SEQUENCE'">Séquence d'appel</xsl:when>
-          <xsl:when test="$msg = 'PARAM'">Paramètres</xsl:when>
-          <xsl:when test="$msg = 'DESCRIPTION'">Description</xsl:when>
-          <xsl:when test="$msg = 'EXAMPLE'">Exemples</xsl:when>
-          <xsl:when test="$msg = 'SEE_ALSO'">Voir Aussi</xsl:when>
-          <xsl:when test="$msg = 'AUTHOR'">Auteurs</xsl:when>
-          <xsl:when test="$msg = 'AUTHORS'">Auteurs</xsl:when>
-          <xsl:when test="$msg = 'BIBLIO'">Bibliographie</xsl:when>
-          <xsl:when
-           test="$msg = 'USED_FUNCTIONS'">Fonctions Utilisées</xsl:when>
-          <xsl:otherwise>???</xsl:otherwise>
-        </xsl:choose>
-      </xsl:when>
-
-      <xsl:otherwise>
-        <xsl:choose>
-          <xsl:when 
-           test="$msg = 'CALLING_SEQUENCE'">Calling Sequence</xsl:when>
-          <xsl:when test="$msg = 'PARAM'">Parameters</xsl:when>
-          <xsl:when test="$msg = 'DESCRIPTION'">Description</xsl:when>
-          <xsl:when test="$msg = 'EXAMPLE'">Examples</xsl:when>
-          <xsl:when test="$msg = 'SEE_ALSO'">See Also</xsl:when>
-          <xsl:when test="$msg = 'AUTHOR'">Authors</xsl:when>
-          <xsl:when test="$msg = 'AUTHORS'">Authors</xsl:when>
-          <xsl:when test="$msg = 'BIBLIO'">Bibliography</xsl:when>
-          <xsl:when test="$msg = 'USED_FUNCTIONS'">Used Functions</xsl:when>
-          <xsl:otherwise>???</xsl:otherwise>
-        </xsl:choose>
-      </xsl:otherwise>
-    </xsl:choose>
-  </xsl:template>
-
-  <xsl:template name="to-xml-lang">
-    <xsl:param name="lang" select="'eng'" />
-
-    <xsl:choose>
-      <xsl:when test="$lang = 'fr'">fr</xsl:when>
-      <xsl:otherwise>en</xsl:otherwise>
-    </xsl:choose>
-  </xsl:template>
-
-  <xsl:template name="check-id">
-    <xsl:param name="id" select="''" />
-
-    <xsl:variable name="apos">&apos;</xsl:variable>
-    <xsl:variable name="quot">&quot;</xsl:variable>
-
-    <xsl:value-of
-     select="translate(normalize-space($id), 
-                       concat($quot, $apos, '% ()\/&amp;|^~[]{}!?#$=-+*;,:.'), 
-                       '')" />
-  </xsl:template>
-
-</xsl:stylesheet>