Added charset declaration for HTML
authorArjen Baart <arjen@andromeda.nl>
Thu, 18 Jul 2019 04:35:16 +0000 (06:35 +0200)
committerArjen Baart <arjen@andromeda.nl>
Thu, 18 Jul 2019 04:35:16 +0000 (06:35 +0200)
Started a test framework

38 files changed:
ChangeLog
Makefile.am
Makefile.in
configure
configure.ac
doc/Makefile.in
html.xsl
latex.xsl
test-driver [new file with mode: 0755]
test/Makefile.am [new file with mode: 0644]
test/Makefile.in [new file with mode: 0644]
test/basic [new file with mode: 0755]
test/basic.html.exp [new file with mode: 0644]
test/basic.tex.exp [new file with mode: 0644]
test/basic.xml [new file with mode: 0644]
test/check [new file with mode: 0755]
test/main.css [new file with mode: 0644]
test/paragraph [new file with mode: 0755]
test/paragraph.html.exp [new file with mode: 0644]
test/paragraph.tex.exp [new file with mode: 0644]
test/paragraph.xml [new file with mode: 0644]
test/sections [new file with mode: 0755]
test/sections.html.exp [new file with mode: 0644]
test/sections.tex.exp [new file with mode: 0644]
test/sections.xml [new file with mode: 0644]
test/title [new file with mode: 0755]
test/title.html.exp [new file with mode: 0644]
test/title.tex.exp [new file with mode: 0644]
test/title.xml [new file with mode: 0644]
test/titlepage [new file with mode: 0755]
test/titlepage.html.exp [new file with mode: 0644]
test/titlepage.tex.exp [new file with mode: 0644]
test/titlepage.xml [new file with mode: 0644]
test/toc [new file with mode: 0755]
test/toc.html.exp [new file with mode: 0644]
test/toc.tex.exp [new file with mode: 0644]
test/toc.toc [new file with mode: 0644]
test/toc.xml [new file with mode: 0644]

index 09817c7..3ed2fb7 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,12 @@
-Version 0.7 - Apr 04, 2012
+Version 0.8 - Jul 26, 2019
+===========================================================
+
+o Correction of namespeaces
+o Use $prefix in the path for stylesheets
+o Added charset declaration for HTML
+o Started a test framework
+
+Version 0.7 - Apr 26, 2012
 ===========================================================
 
 o Added depcomp to the distribution
index 4a73b40..2834498 100644 (file)
@@ -1,7 +1,7 @@
 
 ##  Process this file with automake to create Makefile.in
 
-SUBDIRS = . doc
+SUBDIRS = . doc test
 
 xsltdir = $(prefix)/xslt
 
index 7b22289..f99c5a8 100644 (file)
@@ -1,7 +1,7 @@
-# Makefile.in generated by automake 1.16.1 from Makefile.am.
+# Makefile.in generated by automake 1.15 from Makefile.am.
 # @configure_input@
 
-# Copyright (C) 1994-2018 Free Software Foundation, Inc.
+# Copyright (C) 1994-2014 Free Software Foundation, Inc.
 
 # This Makefile.in is free software; the Free Software Foundation
 # gives unlimited permission to copy and/or distribute it,
@@ -149,8 +149,7 @@ am__v_at_0 = @
 am__v_at_1 = 
 DEFAULT_INCLUDES = -I.@am__isrc@
 depcomp = $(SHELL) $(top_srcdir)/depcomp
-am__maybe_remake_depfiles = depfiles
-am__depfiles_remade = ./$(DEPDIR)/xp.Po
+am__depfiles_maybe = depfiles
 am__mv = mv -f
 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
        $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
@@ -187,7 +186,7 @@ am__recursive_targets = \
   $(RECURSIVE_CLEAN_TARGETS) \
   $(am__extra_recursive_targets)
 AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \
-       cscope distdir distdir-am dist dist-all distcheck
+       cscope distdir dist dist-all distcheck
 am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
 # Read a list of newline-separated strings from the standard input,
 # and print each of them once, without duplicates.  Input order is
@@ -335,6 +334,7 @@ pdfdir = @pdfdir@
 prefix = @prefix@
 program_transform_name = @program_transform_name@
 psdir = @psdir@
+runstatedir = @runstatedir@
 sbindir = @sbindir@
 sharedstatedir = @sharedstatedir@
 srcdir = @srcdir@
@@ -343,7 +343,7 @@ target_alias = @target_alias@
 top_build_prefix = @top_build_prefix@
 top_builddir = @top_builddir@
 top_srcdir = @top_srcdir@
-SUBDIRS = . doc
+SUBDIRS = . doc test
 xsltdir = $(prefix)/xslt
 bin_SCRIPTS = xml2html xml2latex xml2text xml2wiki
 EXTRA_DIST = xml2html.in xml2latex.in xml2text.in xml2wiki.in
@@ -374,8 +374,8 @@ Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
            echo ' $(SHELL) ./config.status'; \
            $(SHELL) ./config.status;; \
          *) \
-           echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__maybe_remake_depfiles)'; \
-           cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__maybe_remake_depfiles);; \
+           echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \
+           cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \
        esac;
 
 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
@@ -482,13 +482,7 @@ mostlyclean-compile:
 distclean-compile:
        -rm -f *.tab.c
 
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/xp.Po@am__quote@ # am--include-marker
-
-$(am__depfiles_remade):
-       @$(MKDIR_P) $(@D)
-       @echo '# dummy' >$@-t && $(am__mv) $@-t $@
-
-am--depfiles: $(am__depfiles_remade)
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/xp.Po@am__quote@
 
 .c.o:
 @am__fastdepCC_TRUE@   $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
@@ -631,10 +625,7 @@ distclean-tags:
        -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
        -rm -f cscope.out cscope.in.out cscope.po.out cscope.files
 
-distdir: $(BUILT_SOURCES)
-       $(MAKE) $(AM_MAKEFLAGS) distdir-am
-
-distdir-am: $(DISTFILES)
+distdir: $(DISTFILES)
        $(am__remove_distdir)
        test -d "$(distdir)" || mkdir "$(distdir)"
        @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
@@ -699,7 +690,7 @@ distdir-am: $(DISTFILES)
          ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \
        || chmod -R a+r "$(distdir)"
 dist-gzip: distdir
-       tardir=$(distdir) && $(am__tar) | eval GZIP= gzip $(GZIP_ENV) -c >$(distdir).tar.gz
+       tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
        $(am__post_remove_distdir)
 
 dist-bzip2: distdir
@@ -725,7 +716,7 @@ dist-shar: distdir
        @echo WARNING: "Support for shar distribution archives is" \
                       "deprecated." >&2
        @echo WARNING: "It will be removed altogether in Automake 2.0" >&2
-       shar $(distdir) | eval GZIP= gzip $(GZIP_ENV) -c >$(distdir).shar.gz
+       shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz
        $(am__post_remove_distdir)
 
 dist-zip: distdir
@@ -743,7 +734,7 @@ dist dist-all:
 distcheck: dist
        case '$(DIST_ARCHIVES)' in \
        *.tar.gz*) \
-         eval GZIP= gzip $(GZIP_ENV) -dc $(distdir).tar.gz | $(am__untar) ;;\
+         GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\
        *.tar.bz2*) \
          bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\
        *.tar.lz*) \
@@ -753,7 +744,7 @@ distcheck: dist
        *.tar.Z*) \
          uncompress -c $(distdir).tar.Z | $(am__untar) ;;\
        *.shar.gz*) \
-         eval GZIP= gzip $(GZIP_ENV) -dc $(distdir).shar.gz | unshar ;;\
+         GZIP=$(GZIP_ENV) gzip -dc $(distdir).shar.gz | unshar ;;\
        *.zip*) \
          unzip $(distdir).zip ;;\
        esac
@@ -866,7 +857,7 @@ clean-am: clean-binPROGRAMS clean-generic mostlyclean-am
 
 distclean: distclean-recursive
        -rm -f $(am__CONFIG_DISTCLEAN_FILES)
-               -rm -f ./$(DEPDIR)/xp.Po
+       -rm -rf ./$(DEPDIR)
        -rm -f Makefile
 distclean-am: clean-am distclean-compile distclean-generic \
        distclean-tags
@@ -914,7 +905,7 @@ installcheck-am:
 maintainer-clean: maintainer-clean-recursive
        -rm -f $(am__CONFIG_DISTCLEAN_FILES)
        -rm -rf $(top_srcdir)/autom4te.cache
-               -rm -f ./$(DEPDIR)/xp.Po
+       -rm -rf ./$(DEPDIR)
        -rm -f Makefile
 maintainer-clean-am: distclean-am maintainer-clean-generic
 
@@ -936,23 +927,23 @@ uninstall-am: uninstall-binPROGRAMS uninstall-binSCRIPTS \
 .MAKE: $(am__recursive_targets) install-am install-strip
 
 .PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am \
-       am--depfiles am--refresh check check-am clean \
-       clean-binPROGRAMS clean-cscope clean-generic cscope \
-       cscopelist-am ctags ctags-am dist dist-all dist-bzip2 \
-       dist-gzip dist-lzip dist-shar dist-tarZ dist-xz dist-zip \
-       distcheck distclean distclean-compile distclean-generic \
-       distclean-tags distcleancheck distdir distuninstallcheck dvi \
-       dvi-am html html-am info info-am install install-am \
-       install-binPROGRAMS install-binSCRIPTS install-data \
-       install-data-am install-dvi install-dvi-am install-exec \
-       install-exec-am install-html install-html-am install-info \
-       install-info-am install-man install-pdf install-pdf-am \
-       install-ps install-ps-am install-strip install-xsltDATA \
-       installcheck installcheck-am installdirs installdirs-am \
-       maintainer-clean maintainer-clean-generic mostlyclean \
-       mostlyclean-compile mostlyclean-generic pdf pdf-am ps ps-am \
-       tags tags-am uninstall uninstall-am uninstall-binPROGRAMS \
-       uninstall-binSCRIPTS uninstall-xsltDATA
+       am--refresh check check-am clean clean-binPROGRAMS \
+       clean-cscope clean-generic cscope cscopelist-am ctags ctags-am \
+       dist dist-all dist-bzip2 dist-gzip dist-lzip dist-shar \
+       dist-tarZ dist-xz dist-zip distcheck distclean \
+       distclean-compile distclean-generic distclean-tags \
+       distcleancheck distdir distuninstallcheck dvi dvi-am html \
+       html-am info info-am install install-am install-binPROGRAMS \
+       install-binSCRIPTS install-data install-data-am install-dvi \
+       install-dvi-am install-exec install-exec-am install-html \
+       install-html-am install-info install-info-am install-man \
+       install-pdf install-pdf-am install-ps install-ps-am \
+       install-strip install-xsltDATA installcheck installcheck-am \
+       installdirs installdirs-am maintainer-clean \
+       maintainer-clean-generic mostlyclean mostlyclean-compile \
+       mostlyclean-generic pdf pdf-am ps ps-am tags tags-am uninstall \
+       uninstall-am uninstall-binPROGRAMS uninstall-binSCRIPTS \
+       uninstall-xsltDATA
 
 .PRECIOUS: Makefile
 
index 605e394..8d0cd93 100755 (executable)
--- a/configure
+++ b/configure
@@ -1,4 +1,4 @@
-#! /data/data/com.termux/files/usr/bin/sh
+#! /bin/sh
 # Guess values for system-dependent variables and create Makefiles.
 # Generated by GNU Autoconf 2.69 for xmldoc 0.8.
 #
@@ -276,7 +276,7 @@ $0: have one."
 fi
 fi
 fi
-SHELL=${CONFIG_SHELL-/data/data/com.termux/files/usr/bin/sh}
+SHELL=${CONFIG_SHELL-/bin/sh}
 export SHELL
 # Unset more variables known to interfere with behavior of common tools.
 CLICOLOR_FORCE= GREP_OPTIONS=
@@ -636,6 +636,7 @@ am__nodep
 AMDEPBACKSLASH
 AMDEP_FALSE
 AMDEP_TRUE
+am__quote
 am__include
 DEPDIR
 OBJEXT
@@ -691,6 +692,7 @@ infodir
 docdir
 oldincludedir
 includedir
+runstatedir
 localstatedir
 sharedstatedir
 sysconfdir
@@ -709,8 +711,7 @@ PACKAGE_VERSION
 PACKAGE_TARNAME
 PACKAGE_NAME
 PATH_SEPARATOR
-SHELL
-am__quote'
+SHELL'
 ac_subst_files=''
 ac_user_opts='
 enable_option_checking
@@ -764,6 +765,7 @@ datadir='${datarootdir}'
 sysconfdir='${prefix}/etc'
 sharedstatedir='${prefix}/com'
 localstatedir='${prefix}/var'
+runstatedir='${localstatedir}/run'
 includedir='${prefix}/include'
 oldincludedir='/usr/include'
 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
@@ -1016,6 +1018,15 @@ do
   | -silent | --silent | --silen | --sile | --sil)
     silent=yes ;;
 
+  -runstatedir | --runstatedir | --runstatedi | --runstated \
+  | --runstate | --runstat | --runsta | --runst | --runs \
+  | --run | --ru | --r)
+    ac_prev=runstatedir ;;
+  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
+  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
+  | --run=* | --ru=* | --r=*)
+    runstatedir=$ac_optarg ;;
+
   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
     ac_prev=sbindir ;;
   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
@@ -1153,7 +1164,7 @@ fi
 for ac_var in  exec_prefix prefix bindir sbindir libexecdir datarootdir \
                datadir sysconfdir sharedstatedir localstatedir includedir \
                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
-               libdir localedir mandir
+               libdir localedir mandir runstatedir
 do
   eval ac_val=\$$ac_var
   # Remove trailing slashes.
@@ -1306,6 +1317,7 @@ Fine tuning of the installation directories:
   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
+  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
   --libdir=DIR            object code libraries [EPREFIX/lib]
   --includedir=DIR        C header files [PREFIX/include]
   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
@@ -2073,7 +2085,7 @@ ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $
 ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
 
-am__api_version='1.16'
+am__api_version='1.15'
 
 ac_aux_dir=
 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
@@ -2495,7 +2507,7 @@ if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   cat >conftest.make <<\_ACEOF
-SHELL = /data/data/com.termux/files/usr/bin/sh
+SHELL = /bin/sh
 all:
        @echo '@@@%%%=$(MAKE)=@@@%%%'
 _ACEOF
@@ -2618,8 +2630,8 @@ MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
 
 # For better backward compatibility.  To be removed once Automake 1.9.x
 # dies out for good.  For more background, see:
-# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
-# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
+# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
+# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
 mkdir_p='$(MKDIR_P)'
 
 # We need awk for the "check" target (and possibly the TAP driver).  The
@@ -2670,7 +2682,7 @@ END
 Aborting the configuration process, to ensure you take notice of the issue.
 
 You can download and install GNU coreutils to get an 'rm' implementation
-that behaves properly: <https://www.gnu.org/software/coreutils/>.
+that behaves properly: <http://www.gnu.org/software/coreutils/>.
 
 If you want to complete the configuration process using your problematic
 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
@@ -3533,45 +3545,45 @@ DEPDIR="${am__leading_dot}deps"
 
 ac_config_commands="$ac_config_commands depfiles"
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
-$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
-cat > confinc.mk << 'END'
+
+am_make=${MAKE-make}
+cat > confinc << 'END'
 am__doit:
-       @echo this is the am__doit target >confinc.out
+       @echo this is the am__doit target
 .PHONY: am__doit
 END
+# If we don't find an include directive, just comment out the code.
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
+$as_echo_n "checking for style of include used by $am_make... " >&6; }
 am__include="#"
 am__quote=
-# BSD make does it like this.
-echo '.include "confinc.mk" # ignored' > confmf.BSD
-# Other make implementations (GNU, Solaris 10, AIX) do it like this.
-echo 'include confinc.mk # ignored' > confmf.GNU
-_am_result=no
-for s in GNU BSD; do
-  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
-   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
-   ac_status=$?
-   echo "$as_me:$LINENO: \$? = $ac_status" >&5
-   (exit $ac_status); }
-  case $?:`cat confinc.out 2>/dev/null` in #(
-  '0:this is the am__doit target') :
-    case $s in #(
-  BSD) :
-    am__include='.include' am__quote='"' ;; #(
-  *) :
-    am__include='include' am__quote='' ;;
-esac ;; #(
-  *) :
-     ;;
+_am_result=none
+# First try GNU make style include.
+echo "include confinc" > confmf
+# Ignore all kinds of additional output from 'make'.
+case `$am_make -s -f confmf 2> /dev/null` in #(
+*the\ am__doit\ target*)
+  am__include=include
+  am__quote=
+  _am_result=GNU
+  ;;
 esac
-  if test "$am__include" != "#"; then
-    _am_result="yes ($s style)"
-    break
-  fi
-done
-rm -f confinc.* confmf.*
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
-$as_echo "${_am_result}" >&6; }
+# Now try BSD make style include.
+if test "$am__include" = "#"; then
+   echo '.include "confinc"' > confmf
+   case `$am_make -s -f confmf 2> /dev/null` in #(
+   *the\ am__doit\ target*)
+     am__include=.include
+     am__quote="\""
+     _am_result=BSD
+     ;;
+   esac
+fi
+
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
+$as_echo "$_am_result" >&6; }
+rm -f confinc confmf
 
 # Check whether --enable-dependency-tracking was given.
 if test "${enable_dependency_tracking+set}" = set; then :
@@ -4523,7 +4535,7 @@ fi
 
 
 
-ac_config_files="$ac_config_files Makefile doc/Makefile xml2html xml2latex xml2text xml2wiki"
+ac_config_files="$ac_config_files Makefile doc/Makefile test/Makefile xml2html xml2latex xml2text xml2wiki"
 
 
 cat >confcache <<\_ACEOF
@@ -5257,7 +5269,7 @@ cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 #
 # INIT-COMMANDS
 #
-AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
+AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
 
 _ACEOF
 
@@ -5270,6 +5282,7 @@ do
     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
+    "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
     "xml2html") CONFIG_FILES="$CONFIG_FILES xml2html" ;;
     "xml2latex") CONFIG_FILES="$CONFIG_FILES xml2latex" ;;
     "xml2text") CONFIG_FILES="$CONFIG_FILES xml2text" ;;
@@ -5707,35 +5720,29 @@ $as_echo "$as_me: executing $ac_file commands" >&6;}
   # Older Autoconf quotes --file arguments for eval, but not when files
   # are listed without --file.  Let's play safe and only enable the eval
   # if we detect the quoting.
-  # TODO: see whether this extra hack can be removed once we start
-  # requiring Autoconf 2.70 or later.
-  case $CONFIG_FILES in #(
-  *\'*) :
-    eval set x "$CONFIG_FILES" ;; #(
-  *) :
-    set x $CONFIG_FILES ;; #(
-  *) :
-     ;;
-esac
+  case $CONFIG_FILES in
+  *\'*) eval set x "$CONFIG_FILES" ;;
+  *)   set x $CONFIG_FILES ;;
+  esac
   shift
-  # Used to flag and report bootstrapping failures.
-  am_rc=0
-  for am_mf
+  for mf
   do
     # Strip MF so we end up with the name of the file.
-    am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
-    # Check whether this is an Automake generated Makefile which includes
-    # dependency-tracking related rules and includes.
-    # Grep'ing the whole file directly is not great: AIX grep has a line
+    mf=`echo "$mf" | sed -e 's/:.*$//'`
+    # Check whether this is an Automake generated Makefile or not.
+    # We used to match only the files named 'Makefile.in', but
+    # some people rename them; so instead we look at the file content.
+    # Grep'ing the first line is not enough: some people post-process
+    # each Makefile.in and add a new line on top of each file to say so.
+    # Grep'ing the whole file is not good either: AIX grep has a line
     # limit of 2048, but all sed's we know have understand at least 4000.
-    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
-      || continue
-    am_dirpart=`$as_dirname -- "$am_mf" ||
-$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
-        X"$am_mf" : 'X\(//\)[^/]' \| \
-        X"$am_mf" : 'X\(//\)$' \| \
-        X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
-$as_echo X"$am_mf" |
+    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
+      dirpart=`$as_dirname -- "$mf" ||
+$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
+        X"$mf" : 'X\(//\)[^/]' \| \
+        X"$mf" : 'X\(//\)$' \| \
+        X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
+$as_echo X"$mf" |
     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
            s//\1/
            q
@@ -5753,48 +5760,53 @@ $as_echo X"$am_mf" |
            q
          }
          s/.*/./; q'`
-    am_filepart=`$as_basename -- "$am_mf" ||
-$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
-        X"$am_mf" : 'X\(//\)$' \| \
-        X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
-$as_echo X/"$am_mf" |
-    sed '/^.*\/\([^/][^/]*\)\/*$/{
+    else
+      continue
+    fi
+    # Extract the definition of DEPDIR, am__include, and am__quote
+    # from the Makefile without running 'make'.
+    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
+    test -z "$DEPDIR" && continue
+    am__include=`sed -n 's/^am__include = //p' < "$mf"`
+    test -z "$am__include" && continue
+    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
+    # Find all dependency output files, they are included files with
+    # $(DEPDIR) in their names.  We invoke sed twice because it is the
+    # simplest approach to changing $(DEPDIR) to its actual value in the
+    # expansion.
+    for file in `sed -n "
+      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
+        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
+      # Make sure the directory exists.
+      test -f "$dirpart/$file" && continue
+      fdir=`$as_dirname -- "$file" ||
+$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
+        X"$file" : 'X\(//\)[^/]' \| \
+        X"$file" : 'X\(//\)$' \| \
+        X"$file" : 'X\(/\)' \| . 2>/dev/null ||
+$as_echo X"$file" |
+    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
            s//\1/
            q
          }
-         /^X\/\(\/\/\)$/{
+         /^X\(\/\/\)[^/].*/{
            s//\1/
            q
          }
-         /^X\/\(\/\).*/{
+         /^X\(\/\/\)$/{
+           s//\1/
+           q
+         }
+         /^X\(\/\).*/{
            s//\1/
            q
          }
          s/.*/./; q'`
-    { echo "$as_me:$LINENO: cd "$am_dirpart" \
-      && sed -e '/# am--include-marker/d' "$am_filepart" \
-        | $MAKE -f - am--depfiles" >&5
-   (cd "$am_dirpart" \
-      && sed -e '/# am--include-marker/d' "$am_filepart" \
-        | $MAKE -f - am--depfiles) >&5 2>&5
-   ac_status=$?
-   echo "$as_me:$LINENO: \$? = $ac_status" >&5
-   (exit $ac_status); } || am_rc=$?
+      as_dir=$dirpart/$fdir; as_fn_mkdir_p
+      # echo "creating $dirpart/$file"
+      echo '# dummy' > "$dirpart/$file"
+    done
   done
-  if test $am_rc -ne 0; then
-    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
-$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
-as_fn_error $? "Something went wrong bootstrapping makefile fragments
-    for automatic dependency tracking.  Try re-running configure with the
-    '--disable-dependency-tracking' option to at least be able to build
-    the package (albeit without support for automatic dependency tracking).
-See \`config.log' for more details" "$LINENO" 5; }
-  fi
-  { am_dirpart=; unset am_dirpart;}
-  { am_filepart=; unset am_filepart;}
-  { am_mf=; unset am_mf;}
-  { am_rc=; unset am_rc;}
-  rm -f conftest-deps.mk
 }
  ;;
 
index 3dc2db9..8bf717f 100644 (file)
@@ -39,6 +39,6 @@ AC_C_CONST
 
 dnl Checks for library functions.
 
-AC_CONFIG_FILES([Makefile doc/Makefile xml2html xml2latex xml2text xml2wiki])
+AC_CONFIG_FILES([Makefile doc/Makefile test/Makefile xml2html xml2latex xml2text xml2wiki])
 
 AC_OUTPUT
index 59ca836..c5333d7 100644 (file)
@@ -1,7 +1,7 @@
-# Makefile.in generated by automake 1.16.1 from Makefile.am.
+# Makefile.in generated by automake 1.15 from Makefile.am.
 # @configure_input@
 
-# Copyright (C) 1994-2018 Free Software Foundation, Inc.
+# Copyright (C) 1994-2014 Free Software Foundation, Inc.
 
 # This Makefile.in is free software; the Free Software Foundation
 # gives unlimited permission to copy and/or distribute it,
@@ -196,6 +196,7 @@ pdfdir = @pdfdir@
 prefix = @prefix@
 program_transform_name = @program_transform_name@
 psdir = @psdir@
+runstatedir = @runstatedir@
 sbindir = @sbindir@
 sharedstatedir = @sharedstatedir@
 srcdir = @srcdir@
@@ -230,8 +231,8 @@ Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
          *config.status*) \
            cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
          *) \
-           echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \
-           cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \
+           echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
+           cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
        esac;
 
 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
@@ -249,10 +250,7 @@ ctags CTAGS:
 cscope cscopelist:
 
 
-distdir: $(BUILT_SOURCES)
-       $(MAKE) $(AM_MAKEFLAGS) distdir-am
-
-distdir-am: $(DISTFILES)
+distdir: $(DISTFILES)
        @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
        topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
        list='$(DISTFILES)'; \
index ec13895..ac20845 100644 (file)
--- a/html.xsl
+++ b/html.xsl
@@ -9,12 +9,16 @@
 <xsl:template match="doc">
 <xsl:element name="html" namespace="http://www.w3.org/1999/xhtml">
 <head>
+   <meta charset="utf-8"/>
    <link>
    <xsl:attribute name="rel">stylesheet</xsl:attribute>
    <xsl:attribute name="type">text/css</xsl:attribute>
    <xsl:attribute name="href"><xsl:value-of select="@style"/></xsl:attribute>
    </link>
    <title>
+      <xsl:if test='not(*/titlepage/title)'>
+      -
+      </xsl:if>
       <xsl:value-of select="*/titlepage/title"/>
    </title>
    <style type="text/css">
index eb197ee..0d884a0 100644 (file)
--- a/latex.xsl
+++ b/latex.xsl
 
 <xsl:template match="example">
 \begin{verbatim} 
-\makebox{ <xsl:apply-templates/> }
+ <xsl:apply-templates/>
 \end{verbatim}
 </xsl:template>
 
diff --git a/test-driver b/test-driver
new file mode 100755 (executable)
index 0000000..8e575b0
--- /dev/null
@@ -0,0 +1,148 @@
+#! /bin/sh
+# test-driver - basic testsuite driver script.
+
+scriptversion=2013-07-13.22; # UTC
+
+# Copyright (C) 2011-2014 Free Software Foundation, Inc.
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.
+
+# As a special exception to the GNU General Public License, if you
+# distribute this file as part of a program that contains a
+# configuration script generated by Autoconf, you may include it under
+# the same distribution terms that you use for the rest of that program.
+
+# This file is maintained in Automake, please report
+# bugs to <bug-automake@gnu.org> or send patches to
+# <automake-patches@gnu.org>.
+
+# Make unconditional expansion of undefined variables an error.  This
+# helps a lot in preventing typo-related bugs.
+set -u
+
+usage_error ()
+{
+  echo "$0: $*" >&2
+  print_usage >&2
+  exit 2
+}
+
+print_usage ()
+{
+  cat <<END
+Usage:
+  test-driver --test-name=NAME --log-file=PATH --trs-file=PATH
+              [--expect-failure={yes|no}] [--color-tests={yes|no}]
+              [--enable-hard-errors={yes|no}] [--]
+              TEST-SCRIPT [TEST-SCRIPT-ARGUMENTS]
+The '--test-name', '--log-file' and '--trs-file' options are mandatory.
+END
+}
+
+test_name= # Used for reporting.
+log_file=  # Where to save the output of the test script.
+trs_file=  # Where to save the metadata of the test run.
+expect_failure=no
+color_tests=no
+enable_hard_errors=yes
+while test $# -gt 0; do
+  case $1 in
+  --help) print_usage; exit $?;;
+  --version) echo "test-driver $scriptversion"; exit $?;;
+  --test-name) test_name=$2; shift;;
+  --log-file) log_file=$2; shift;;
+  --trs-file) trs_file=$2; shift;;
+  --color-tests) color_tests=$2; shift;;
+  --expect-failure) expect_failure=$2; shift;;
+  --enable-hard-errors) enable_hard_errors=$2; shift;;
+  --) shift; break;;
+  -*) usage_error "invalid option: '$1'";;
+   *) break;;
+  esac
+  shift
+done
+
+missing_opts=
+test x"$test_name" = x && missing_opts="$missing_opts --test-name"
+test x"$log_file"  = x && missing_opts="$missing_opts --log-file"
+test x"$trs_file"  = x && missing_opts="$missing_opts --trs-file"
+if test x"$missing_opts" != x; then
+  usage_error "the following mandatory options are missing:$missing_opts"
+fi
+
+if test $# -eq 0; then
+  usage_error "missing argument"
+fi
+
+if test $color_tests = yes; then
+  # Keep this in sync with 'lib/am/check.am:$(am__tty_colors)'.
+  red='\e[0;31m' # Red.
+  grn='\e[0;32m' # Green.
+  lgn='\e[1;32m' # Light green.
+  blu='\e[1;34m' # Blue.
+  mgn='\e[0;35m' # Magenta.
+  std='\e[m'     # No color.
+else
+  red= grn= lgn= blu= mgn= std=
+fi
+
+do_exit='rm -f $log_file $trs_file; (exit $st); exit $st'
+trap "st=129; $do_exit" 1
+trap "st=130; $do_exit" 2
+trap "st=141; $do_exit" 13
+trap "st=143; $do_exit" 15
+
+# Test script is run here.
+"$@" >$log_file 2>&1
+estatus=$?
+
+if test $enable_hard_errors = no && test $estatus -eq 99; then
+  tweaked_estatus=1
+else
+  tweaked_estatus=$estatus
+fi
+
+case $tweaked_estatus:$expect_failure in
+  0:yes) col=$red res=XPASS recheck=yes gcopy=yes;;
+  0:*)   col=$grn res=PASS  recheck=no  gcopy=no;;
+  77:*)  col=$blu res=SKIP  recheck=no  gcopy=yes;;
+  99:*)  col=$mgn res=ERROR recheck=yes gcopy=yes;;
+  *:yes) col=$lgn res=XFAIL recheck=no  gcopy=yes;;
+  *:*)   col=$red res=FAIL  recheck=yes gcopy=yes;;
+esac
+
+# Report the test outcome and exit status in the logs, so that one can
+# know whether the test passed or failed simply by looking at the '.log'
+# file, without the need of also peaking into the corresponding '.trs'
+# file (automake bug#11814).
+echo "$res $test_name (exit status: $estatus)" >>$log_file
+
+# Report outcome to console.
+echo "${col}${res}${std}: $test_name"
+
+# Register the test result, and other relevant metadata.
+echo ":test-result: $res" > $trs_file
+echo ":global-test-result: $res" >> $trs_file
+echo ":recheck: $recheck" >> $trs_file
+echo ":copy-in-global-log: $gcopy" >> $trs_file
+
+# Local Variables:
+# mode: shell-script
+# sh-indentation: 2
+# eval: (add-hook 'write-file-hooks 'time-stamp)
+# time-stamp-start: "scriptversion="
+# time-stamp-format: "%:y-%02m-%02d.%02H"
+# time-stamp-time-zone: "UTC"
+# time-stamp-end: "; # UTC"
+# End:
diff --git a/test/Makefile.am b/test/Makefile.am
new file mode 100644 (file)
index 0000000..f3a0535
--- /dev/null
@@ -0,0 +1,4 @@
+TESTS = basic title titlepage sections toc paragraph
+
+clean-local:
+       rm -f *.html *.tex *.aux *.dvi *.pdf
diff --git a/test/Makefile.in b/test/Makefile.in
new file mode 100644 (file)
index 0000000..f3935fa
--- /dev/null
@@ -0,0 +1,807 @@
+# Makefile.in generated by automake 1.15 from Makefile.am.
+# @configure_input@
+
+# Copyright (C) 1994-2014 Free Software Foundation, Inc.
+
+# This Makefile.in is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
+# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+# PARTICULAR PURPOSE.
+
+@SET_MAKE@
+VPATH = @srcdir@
+am__is_gnu_make = { \
+  if test -z '$(MAKELEVEL)'; then \
+    false; \
+  elif test -n '$(MAKE_HOST)'; then \
+    true; \
+  elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
+    true; \
+  else \
+    false; \
+  fi; \
+}
+am__make_running_with_option = \
+  case $${target_option-} in \
+      ?) ;; \
+      *) echo "am__make_running_with_option: internal error: invalid" \
+              "target option '$${target_option-}' specified" >&2; \
+         exit 1;; \
+  esac; \
+  has_opt=no; \
+  sane_makeflags=$$MAKEFLAGS; \
+  if $(am__is_gnu_make); then \
+    sane_makeflags=$$MFLAGS; \
+  else \
+    case $$MAKEFLAGS in \
+      *\\[\ \  ]*) \
+        bs=\\; \
+        sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
+          | sed "s/$$bs$$bs[$$bs $$bs  ]*//g"`;; \
+    esac; \
+  fi; \
+  skip_next=no; \
+  strip_trailopt () \
+  { \
+    flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
+  }; \
+  for flg in $$sane_makeflags; do \
+    test $$skip_next = yes && { skip_next=no; continue; }; \
+    case $$flg in \
+      *=*|--*) continue;; \
+        -*I) strip_trailopt 'I'; skip_next=yes;; \
+      -*I?*) strip_trailopt 'I';; \
+        -*O) strip_trailopt 'O'; skip_next=yes;; \
+      -*O?*) strip_trailopt 'O';; \
+        -*l) strip_trailopt 'l'; skip_next=yes;; \
+      -*l?*) strip_trailopt 'l';; \
+      -[dEDm]) skip_next=yes;; \
+      -[JT]) skip_next=yes;; \
+    esac; \
+    case $$flg in \
+      *$$target_option*) has_opt=yes; break;; \
+    esac; \
+  done; \
+  test $$has_opt = yes
+am__make_dryrun = (target_option=n; $(am__make_running_with_option))
+am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
+pkgdatadir = $(datadir)/@PACKAGE@
+pkgincludedir = $(includedir)/@PACKAGE@
+pkglibdir = $(libdir)/@PACKAGE@
+pkglibexecdir = $(libexecdir)/@PACKAGE@
+am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
+install_sh_DATA = $(install_sh) -c -m 644
+install_sh_PROGRAM = $(install_sh) -c
+install_sh_SCRIPT = $(install_sh) -c
+INSTALL_HEADER = $(INSTALL_DATA)
+transform = $(program_transform_name)
+NORMAL_INSTALL = :
+PRE_INSTALL = :
+POST_INSTALL = :
+NORMAL_UNINSTALL = :
+PRE_UNINSTALL = :
+POST_UNINSTALL = :
+subdir = test
+ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
+am__aclocal_m4_deps = $(top_srcdir)/configure.ac
+am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
+       $(ACLOCAL_M4)
+DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON)
+mkinstalldirs = $(install_sh) -d
+CONFIG_CLEAN_FILES =
+CONFIG_CLEAN_VPATH_FILES =
+AM_V_P = $(am__v_P_@AM_V@)
+am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
+am__v_P_0 = false
+am__v_P_1 = :
+AM_V_GEN = $(am__v_GEN_@AM_V@)
+am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
+am__v_GEN_0 = @echo "  GEN     " $@;
+am__v_GEN_1 = 
+AM_V_at = $(am__v_at_@AM_V@)
+am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
+am__v_at_0 = @
+am__v_at_1 = 
+SOURCES =
+DIST_SOURCES =
+am__can_run_installinfo = \
+  case $$AM_UPDATE_INFO_DIR in \
+    n|no|NO) false;; \
+    *) (install-info --version) >/dev/null 2>&1;; \
+  esac
+am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
+am__tty_colors_dummy = \
+  mgn= red= grn= lgn= blu= brg= std=; \
+  am__color_tests=no
+am__tty_colors = { \
+  $(am__tty_colors_dummy); \
+  if test "X$(AM_COLOR_TESTS)" = Xno; then \
+    am__color_tests=no; \
+  elif test "X$(AM_COLOR_TESTS)" = Xalways; then \
+    am__color_tests=yes; \
+  elif test "X$$TERM" != Xdumb && { test -t 1; } 2>/dev/null; then \
+    am__color_tests=yes; \
+  fi; \
+  if test $$am__color_tests = yes; then \
+    red='\e[0;31m'; \
+    grn='\e[0;32m'; \
+    lgn='\e[1;32m'; \
+    blu='\e[1;34m'; \
+    mgn='\e[0;35m'; \
+    brg='\e[1m'; \
+    std='\e[m'; \
+  fi; \
+}
+am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
+am__vpath_adj = case $$p in \
+    $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
+    *) f=$$p;; \
+  esac;
+am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
+am__install_max = 40
+am__nobase_strip_setup = \
+  srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
+am__nobase_strip = \
+  for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
+am__nobase_list = $(am__nobase_strip_setup); \
+  for p in $$list; do echo "$$p $$p"; done | \
+  sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
+  $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
+    if (++n[$$2] == $(am__install_max)) \
+      { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
+    END { for (dir in files) print dir, files[dir] }'
+am__base_list = \
+  sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
+  sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
+am__uninstall_files_from_dir = { \
+  test -z "$$files" \
+    || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
+    || { echo " ( cd '$$dir' && rm -f" $$files ")"; \
+         $(am__cd) "$$dir" && rm -f $$files; }; \
+  }
+am__recheck_rx = ^[    ]*:recheck:[    ]*
+am__global_test_result_rx = ^[         ]*:global-test-result:[         ]*
+am__copy_in_global_log_rx = ^[         ]*:copy-in-global-log:[         ]*
+# A command that, given a newline-separated list of test names on the
+# standard input, print the name of the tests that are to be re-run
+# upon "make recheck".
+am__list_recheck_tests = $(AWK) '{ \
+  recheck = 1; \
+  while ((rc = (getline line < ($$0 ".trs"))) != 0) \
+    { \
+      if (rc < 0) \
+        { \
+          if ((getline line2 < ($$0 ".log")) < 0) \
+           recheck = 0; \
+          break; \
+        } \
+      else if (line ~ /$(am__recheck_rx)[nN][Oo]/) \
+        { \
+          recheck = 0; \
+          break; \
+        } \
+      else if (line ~ /$(am__recheck_rx)[yY][eE][sS]/) \
+        { \
+          break; \
+        } \
+    }; \
+  if (recheck) \
+    print $$0; \
+  close ($$0 ".trs"); \
+  close ($$0 ".log"); \
+}'
+# A command that, given a newline-separated list of test names on the
+# standard input, create the global log from their .trs and .log files.
+am__create_global_log = $(AWK) ' \
+function fatal(msg) \
+{ \
+  print "fatal: making $@: " msg | "cat >&2"; \
+  exit 1; \
+} \
+function rst_section(header) \
+{ \
+  print header; \
+  len = length(header); \
+  for (i = 1; i <= len; i = i + 1) \
+    printf "="; \
+  printf "\n\n"; \
+} \
+{ \
+  copy_in_global_log = 1; \
+  global_test_result = "RUN"; \
+  while ((rc = (getline line < ($$0 ".trs"))) != 0) \
+    { \
+      if (rc < 0) \
+         fatal("failed to read from " $$0 ".trs"); \
+      if (line ~ /$(am__global_test_result_rx)/) \
+        { \
+          sub("$(am__global_test_result_rx)", "", line); \
+          sub("[       ]*$$", "", line); \
+          global_test_result = line; \
+        } \
+      else if (line ~ /$(am__copy_in_global_log_rx)[nN][oO]/) \
+        copy_in_global_log = 0; \
+    }; \
+  if (copy_in_global_log) \
+    { \
+      rst_section(global_test_result ": " $$0); \
+      while ((rc = (getline line < ($$0 ".log"))) != 0) \
+      { \
+        if (rc < 0) \
+          fatal("failed to read from " $$0 ".log"); \
+        print line; \
+      }; \
+      printf "\n"; \
+    }; \
+  close ($$0 ".trs"); \
+  close ($$0 ".log"); \
+}'
+# Restructured Text title.
+am__rst_title = { sed 's/.*/   &   /;h;s/./=/g;p;x;s/ *$$//;p;g' && echo; }
+# Solaris 10 'make', and several other traditional 'make' implementations,
+# pass "-e" to $(SHELL), and POSIX 2008 even requires this.  Work around it
+# by disabling -e (using the XSI extension "set +e") if it's set.
+am__sh_e_setup = case $$- in *e*) set +e;; esac
+# Default flags passed to test drivers.
+am__common_driver_flags = \
+  --color-tests "$$am__color_tests" \
+  --enable-hard-errors "$$am__enable_hard_errors" \
+  --expect-failure "$$am__expect_failure"
+# To be inserted before the command running the test.  Creates the
+# directory for the log if needed.  Stores in $dir the directory
+# containing $f, in $tst the test, in $log the log.  Executes the
+# developer- defined test setup AM_TESTS_ENVIRONMENT (if any), and
+# passes TESTS_ENVIRONMENT.  Set up options for the wrapper that
+# will run the test scripts (or their associated LOG_COMPILER, if
+# thy have one).
+am__check_pre = \
+$(am__sh_e_setup);                                     \
+$(am__vpath_adj_setup) $(am__vpath_adj)                        \
+$(am__tty_colors);                                     \
+srcdir=$(srcdir); export srcdir;                       \
+case "$@" in                                           \
+  */*) am__odir=`echo "./$@" | sed 's|/[^/]*$$||'`;;   \
+    *) am__odir=.;;                                    \
+esac;                                                  \
+test "x$$am__odir" = x"." || test -d "$$am__odir"      \
+  || $(MKDIR_P) "$$am__odir" || exit $$?;              \
+if test -f "./$$f"; then dir=./;                       \
+elif test -f "$$f"; then dir=;                         \
+else dir="$(srcdir)/"; fi;                             \
+tst=$$dir$$f; log='$@';                                \
+if test -n '$(DISABLE_HARD_ERRORS)'; then              \
+  am__enable_hard_errors=no;                           \
+else                                                   \
+  am__enable_hard_errors=yes;                          \
+fi;                                                    \
+case " $(XFAIL_TESTS) " in                             \
+  *[\ \        ]$$f[\ \        ]* | *[\ \      ]$$dir$$f[\ \   ]*) \
+    am__expect_failure=yes;;                           \
+  *)                                                   \
+    am__expect_failure=no;;                            \
+esac;                                                  \
+$(AM_TESTS_ENVIRONMENT) $(TESTS_ENVIRONMENT)
+# A shell command to get the names of the tests scripts with any registered
+# extension removed (i.e., equivalently, the names of the test logs, with
+# the '.log' extension removed).  The result is saved in the shell variable
+# '$bases'.  This honors runtime overriding of TESTS and TEST_LOGS.  Sadly,
+# we cannot use something simpler, involving e.g., "$(TEST_LOGS:.log=)",
+# since that might cause problem with VPATH rewrites for suffix-less tests.
+# See also 'test-harness-vpath-rewrite.sh' and 'test-trs-basic.sh'.
+am__set_TESTS_bases = \
+  bases='$(TEST_LOGS)'; \
+  bases=`for i in $$bases; do echo $$i; done | sed 's/\.log$$//'`; \
+  bases=`echo $$bases`
+RECHECK_LOGS = $(TEST_LOGS)
+AM_RECURSIVE_TARGETS = check recheck
+TEST_SUITE_LOG = test-suite.log
+TEST_EXTENSIONS = @EXEEXT@ .test
+LOG_DRIVER = $(SHELL) $(top_srcdir)/test-driver
+LOG_COMPILE = $(LOG_COMPILER) $(AM_LOG_FLAGS) $(LOG_FLAGS)
+am__set_b = \
+  case '$@' in \
+    */*) \
+      case '$*' in \
+        */*) b='$*';; \
+          *) b=`echo '$@' | sed 's/\.log$$//'`; \
+       esac;; \
+    *) \
+      b='$*';; \
+  esac
+am__test_logs1 = $(TESTS:=.log)
+am__test_logs2 = $(am__test_logs1:@EXEEXT@.log=.log)
+TEST_LOGS = $(am__test_logs2:.test.log=.log)
+TEST_LOG_DRIVER = $(SHELL) $(top_srcdir)/test-driver
+TEST_LOG_COMPILE = $(TEST_LOG_COMPILER) $(AM_TEST_LOG_FLAGS) \
+       $(TEST_LOG_FLAGS)
+am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/test-driver
+DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
+ACLOCAL = @ACLOCAL@
+AMTAR = @AMTAR@
+AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
+AUTOCONF = @AUTOCONF@
+AUTOHEADER = @AUTOHEADER@
+AUTOMAKE = @AUTOMAKE@
+AWK = @AWK@
+CC = @CC@
+CCDEPMODE = @CCDEPMODE@
+CFLAGS = @CFLAGS@
+CPP = @CPP@
+CPPFLAGS = @CPPFLAGS@
+CYGPATH_W = @CYGPATH_W@
+DEFS = @DEFS@
+DEPDIR = @DEPDIR@
+ECHO_C = @ECHO_C@
+ECHO_N = @ECHO_N@
+ECHO_T = @ECHO_T@
+EGREP = @EGREP@
+EXEEXT = @EXEEXT@
+GREP = @GREP@
+INSTALL = @INSTALL@
+INSTALL_DATA = @INSTALL_DATA@
+INSTALL_PROGRAM = @INSTALL_PROGRAM@
+INSTALL_SCRIPT = @INSTALL_SCRIPT@
+INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
+LDFLAGS = @LDFLAGS@
+LIBOBJS = @LIBOBJS@
+LIBS = @LIBS@
+LTLIBOBJS = @LTLIBOBJS@
+MAKEINFO = @MAKEINFO@
+MKDIR_P = @MKDIR_P@
+OBJEXT = @OBJEXT@
+PACKAGE = @PACKAGE@
+PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
+PACKAGE_NAME = @PACKAGE_NAME@
+PACKAGE_STRING = @PACKAGE_STRING@
+PACKAGE_TARNAME = @PACKAGE_TARNAME@
+PACKAGE_URL = @PACKAGE_URL@
+PACKAGE_VERSION = @PACKAGE_VERSION@
+PATH_SEPARATOR = @PATH_SEPARATOR@
+SET_MAKE = @SET_MAKE@
+SHELL = @SHELL@
+STRIP = @STRIP@
+VERSION = @VERSION@
+XSLT_CONFIG = @XSLT_CONFIG@
+abs_builddir = @abs_builddir@
+abs_srcdir = @abs_srcdir@
+abs_top_builddir = @abs_top_builddir@
+abs_top_srcdir = @abs_top_srcdir@
+ac_ct_CC = @ac_ct_CC@
+am__include = @am__include@
+am__leading_dot = @am__leading_dot@
+am__quote = @am__quote@
+am__tar = @am__tar@
+am__untar = @am__untar@
+bindir = @bindir@
+build_alias = @build_alias@
+builddir = @builddir@
+datadir = @datadir@
+datarootdir = @datarootdir@
+docdir = @docdir@
+dvidir = @dvidir@
+exec_prefix = @exec_prefix@
+host_alias = @host_alias@
+htmldir = @htmldir@
+includedir = @includedir@
+infodir = @infodir@
+install_sh = @install_sh@
+libdir = @libdir@
+libexecdir = @libexecdir@
+localedir = @localedir@
+localstatedir = @localstatedir@
+mandir = @mandir@
+mkdir_p = @mkdir_p@
+oldincludedir = @oldincludedir@
+pdfdir = @pdfdir@
+prefix = @prefix@
+program_transform_name = @program_transform_name@
+psdir = @psdir@
+runstatedir = @runstatedir@
+sbindir = @sbindir@
+sharedstatedir = @sharedstatedir@
+srcdir = @srcdir@
+sysconfdir = @sysconfdir@
+target_alias = @target_alias@
+top_build_prefix = @top_build_prefix@
+top_builddir = @top_builddir@
+top_srcdir = @top_srcdir@
+TESTS = basic title titlepage sections toc paragraph
+all: all-am
+
+.SUFFIXES:
+.SUFFIXES: .log .test .test$(EXEEXT) .trs
+$(srcdir)/Makefile.in:  $(srcdir)/Makefile.am  $(am__configure_deps)
+       @for dep in $?; do \
+         case '$(am__configure_deps)' in \
+           *$$dep*) \
+             ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
+               && { if test -f $@; then exit 0; else break; fi; }; \
+             exit 1;; \
+         esac; \
+       done; \
+       echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign test/Makefile'; \
+       $(am__cd) $(top_srcdir) && \
+         $(AUTOMAKE) --foreign test/Makefile
+Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
+       @case '$?' in \
+         *config.status*) \
+           cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
+         *) \
+           echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
+           cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
+       esac;
+
+$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
+       cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+
+$(top_srcdir)/configure:  $(am__configure_deps)
+       cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+$(ACLOCAL_M4):  $(am__aclocal_m4_deps)
+       cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+$(am__aclocal_m4_deps):
+tags TAGS:
+
+ctags CTAGS:
+
+cscope cscopelist:
+
+
+# Recover from deleted '.trs' file; this should ensure that
+# "rm -f foo.log; make foo.trs" re-run 'foo.test', and re-create
+# both 'foo.log' and 'foo.trs'.  Break the recipe in two subshells
+# to avoid problems with "make -n".
+.log.trs:
+       rm -f $< $@
+       $(MAKE) $(AM_MAKEFLAGS) $<
+
+# Leading 'am--fnord' is there to ensure the list of targets does not
+# expand to empty, as could happen e.g. with make check TESTS=''.
+am--fnord $(TEST_LOGS) $(TEST_LOGS:.log=.trs): $(am__force_recheck)
+am--force-recheck:
+       @:
+
+$(TEST_SUITE_LOG): $(TEST_LOGS)
+       @$(am__set_TESTS_bases); \
+       am__f_ok () { test -f "$$1" && test -r "$$1"; }; \
+       redo_bases=`for i in $$bases; do \
+                     am__f_ok $$i.trs && am__f_ok $$i.log || echo $$i; \
+                   done`; \
+       if test -n "$$redo_bases"; then \
+         redo_logs=`for i in $$redo_bases; do echo $$i.log; done`; \
+         redo_results=`for i in $$redo_bases; do echo $$i.trs; done`; \
+         if $(am__make_dryrun); then :; else \
+           rm -f $$redo_logs && rm -f $$redo_results || exit 1; \
+         fi; \
+       fi; \
+       if test -n "$$am__remaking_logs"; then \
+         echo "fatal: making $(TEST_SUITE_LOG): possible infinite" \
+              "recursion detected" >&2; \
+       elif test -n "$$redo_logs"; then \
+         am__remaking_logs=yes $(MAKE) $(AM_MAKEFLAGS) $$redo_logs; \
+       fi; \
+       if $(am__make_dryrun); then :; else \
+         st=0;  \
+         errmsg="fatal: making $(TEST_SUITE_LOG): failed to create"; \
+         for i in $$redo_bases; do \
+           test -f $$i.trs && test -r $$i.trs \
+             || { echo "$$errmsg $$i.trs" >&2; st=1; }; \
+           test -f $$i.log && test -r $$i.log \
+             || { echo "$$errmsg $$i.log" >&2; st=1; }; \
+         done; \
+         test $$st -eq 0 || exit 1; \
+       fi
+       @$(am__sh_e_setup); $(am__tty_colors); $(am__set_TESTS_bases); \
+       ws='[   ]'; \
+       results=`for b in $$bases; do echo $$b.trs; done`; \
+       test -n "$$results" || results=/dev/null; \
+       all=`  grep "^$$ws*:test-result:"           $$results | wc -l`; \
+       pass=` grep "^$$ws*:test-result:$$ws*PASS"  $$results | wc -l`; \
+       fail=` grep "^$$ws*:test-result:$$ws*FAIL"  $$results | wc -l`; \
+       skip=` grep "^$$ws*:test-result:$$ws*SKIP"  $$results | wc -l`; \
+       xfail=`grep "^$$ws*:test-result:$$ws*XFAIL" $$results | wc -l`; \
+       xpass=`grep "^$$ws*:test-result:$$ws*XPASS" $$results | wc -l`; \
+       error=`grep "^$$ws*:test-result:$$ws*ERROR" $$results | wc -l`; \
+       if test `expr $$fail + $$xpass + $$error` -eq 0; then \
+         success=true; \
+       else \
+         success=false; \
+       fi; \
+       br='==================='; br=$$br$$br$$br$$br; \
+       result_count () \
+       { \
+           if test x"$$1" = x"--maybe-color"; then \
+             maybe_colorize=yes; \
+           elif test x"$$1" = x"--no-color"; then \
+             maybe_colorize=no; \
+           else \
+             echo "$@: invalid 'result_count' usage" >&2; exit 4; \
+           fi; \
+           shift; \
+           desc=$$1 count=$$2; \
+           if test $$maybe_colorize = yes && test $$count -gt 0; then \
+             color_start=$$3 color_end=$$std; \
+           else \
+             color_start= color_end=; \
+           fi; \
+           echo "$${color_start}# $$desc $$count$${color_end}"; \
+       }; \
+       create_testsuite_report () \
+       { \
+         result_count $$1 "TOTAL:" $$all   "$$brg"; \
+         result_count $$1 "PASS: " $$pass  "$$grn"; \
+         result_count $$1 "SKIP: " $$skip  "$$blu"; \
+         result_count $$1 "XFAIL:" $$xfail "$$lgn"; \
+         result_count $$1 "FAIL: " $$fail  "$$red"; \
+         result_count $$1 "XPASS:" $$xpass "$$red"; \
+         result_count $$1 "ERROR:" $$error "$$mgn"; \
+       }; \
+       {                                                               \
+         echo "$(PACKAGE_STRING): $(subdir)/$(TEST_SUITE_LOG)" |       \
+           $(am__rst_title);                                           \
+         create_testsuite_report --no-color;                           \
+         echo;                                                         \
+         echo ".. contents:: :depth: 2";                               \
+         echo;                                                         \
+         for b in $$bases; do echo $$b; done                           \
+           | $(am__create_global_log);                                 \
+       } >$(TEST_SUITE_LOG).tmp || exit 1;                             \
+       mv $(TEST_SUITE_LOG).tmp $(TEST_SUITE_LOG);                     \
+       if $$success; then                                              \
+         col="$$grn";                                                  \
+        else                                                           \
+         col="$$red";                                                  \
+         test x"$$VERBOSE" = x || cat $(TEST_SUITE_LOG);               \
+       fi;                                                             \
+       echo "$${col}$$br$${std}";                                      \
+       echo "$${col}Testsuite summary for $(PACKAGE_STRING)$${std}";   \
+       echo "$${col}$$br$${std}";                                      \
+       create_testsuite_report --maybe-color;                          \
+       echo "$$col$$br$$std";                                          \
+       if $$success; then :; else                                      \
+         echo "$${col}See $(subdir)/$(TEST_SUITE_LOG)$${std}";         \
+         if test -n "$(PACKAGE_BUGREPORT)"; then                       \
+           echo "$${col}Please report to $(PACKAGE_BUGREPORT)$${std}"; \
+         fi;                                                           \
+         echo "$$col$$br$$std";                                        \
+       fi;                                                             \
+       $$success || exit 1
+
+check-TESTS:
+       @list='$(RECHECK_LOGS)';           test -z "$$list" || rm -f $$list
+       @list='$(RECHECK_LOGS:.log=.trs)'; test -z "$$list" || rm -f $$list
+       @test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
+       @set +e; $(am__set_TESTS_bases); \
+       log_list=`for i in $$bases; do echo $$i.log; done`; \
+       trs_list=`for i in $$bases; do echo $$i.trs; done`; \
+       log_list=`echo $$log_list`; trs_list=`echo $$trs_list`; \
+       $(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) TEST_LOGS="$$log_list"; \
+       exit $$?;
+recheck: all 
+       @test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
+       @set +e; $(am__set_TESTS_bases); \
+       bases=`for i in $$bases; do echo $$i; done \
+                | $(am__list_recheck_tests)` || exit 1; \
+       log_list=`for i in $$bases; do echo $$i.log; done`; \
+       log_list=`echo $$log_list`; \
+       $(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) \
+               am__force_recheck=am--force-recheck \
+               TEST_LOGS="$$log_list"; \
+       exit $$?
+basic.log: basic
+       @p='basic'; \
+       b='basic'; \
+       $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
+       --log-file $$b.log --trs-file $$b.trs \
+       $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
+       "$$tst" $(AM_TESTS_FD_REDIRECT)
+title.log: title
+       @p='title'; \
+       b='title'; \
+       $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
+       --log-file $$b.log --trs-file $$b.trs \
+       $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
+       "$$tst" $(AM_TESTS_FD_REDIRECT)
+titlepage.log: titlepage
+       @p='titlepage'; \
+       b='titlepage'; \
+       $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
+       --log-file $$b.log --trs-file $$b.trs \
+       $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
+       "$$tst" $(AM_TESTS_FD_REDIRECT)
+sections.log: sections
+       @p='sections'; \
+       b='sections'; \
+       $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
+       --log-file $$b.log --trs-file $$b.trs \
+       $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
+       "$$tst" $(AM_TESTS_FD_REDIRECT)
+toc.log: toc
+       @p='toc'; \
+       b='toc'; \
+       $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
+       --log-file $$b.log --trs-file $$b.trs \
+       $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
+       "$$tst" $(AM_TESTS_FD_REDIRECT)
+paragraph.log: paragraph
+       @p='paragraph'; \
+       b='paragraph'; \
+       $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
+       --log-file $$b.log --trs-file $$b.trs \
+       $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
+       "$$tst" $(AM_TESTS_FD_REDIRECT)
+.test.log:
+       @p='$<'; \
+       $(am__set_b); \
+       $(am__check_pre) $(TEST_LOG_DRIVER) --test-name "$$f" \
+       --log-file $$b.log --trs-file $$b.trs \
+       $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
+       "$$tst" $(AM_TESTS_FD_REDIRECT)
+@am__EXEEXT_TRUE@.test$(EXEEXT).log:
+@am__EXEEXT_TRUE@      @p='$<'; \
+@am__EXEEXT_TRUE@      $(am__set_b); \
+@am__EXEEXT_TRUE@      $(am__check_pre) $(TEST_LOG_DRIVER) --test-name "$$f" \
+@am__EXEEXT_TRUE@      --log-file $$b.log --trs-file $$b.trs \
+@am__EXEEXT_TRUE@      $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
+@am__EXEEXT_TRUE@      "$$tst" $(AM_TESTS_FD_REDIRECT)
+
+distdir: $(DISTFILES)
+       @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+       topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+       list='$(DISTFILES)'; \
+         dist_files=`for file in $$list; do echo $$file; done | \
+         sed -e "s|^$$srcdirstrip/||;t" \
+             -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
+       case $$dist_files in \
+         */*) $(MKDIR_P) `echo "$$dist_files" | \
+                          sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
+                          sort -u` ;; \
+       esac; \
+       for file in $$dist_files; do \
+         if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
+         if test -d $$d/$$file; then \
+           dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
+           if test -d "$(distdir)/$$file"; then \
+             find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
+           fi; \
+           if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
+             cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
+             find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
+           fi; \
+           cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
+         else \
+           test -f "$(distdir)/$$file" \
+           || cp -p $$d/$$file "$(distdir)/$$file" \
+           || exit 1; \
+         fi; \
+       done
+check-am: all-am
+       $(MAKE) $(AM_MAKEFLAGS) check-TESTS
+check: check-am
+all-am: Makefile
+installdirs:
+install: install-am
+install-exec: install-exec-am
+install-data: install-data-am
+uninstall: uninstall-am
+
+install-am: all-am
+       @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
+
+installcheck: installcheck-am
+install-strip:
+       if test -z '$(STRIP)'; then \
+         $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+           install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+             install; \
+       else \
+         $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+           install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+           "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
+       fi
+mostlyclean-generic:
+       -test -z "$(TEST_LOGS)" || rm -f $(TEST_LOGS)
+       -test -z "$(TEST_LOGS:.log=.trs)" || rm -f $(TEST_LOGS:.log=.trs)
+       -test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
+
+clean-generic:
+
+distclean-generic:
+       -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
+       -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
+
+maintainer-clean-generic:
+       @echo "This command is intended for maintainers to use"
+       @echo "it deletes files that may require special tools to rebuild."
+clean: clean-am
+
+clean-am: clean-generic clean-local mostlyclean-am
+
+distclean: distclean-am
+       -rm -f Makefile
+distclean-am: clean-am distclean-generic
+
+dvi: dvi-am
+
+dvi-am:
+
+html: html-am
+
+html-am:
+
+info: info-am
+
+info-am:
+
+install-data-am:
+
+install-dvi: install-dvi-am
+
+install-dvi-am:
+
+install-exec-am:
+
+install-html: install-html-am
+
+install-html-am:
+
+install-info: install-info-am
+
+install-info-am:
+
+install-man:
+
+install-pdf: install-pdf-am
+
+install-pdf-am:
+
+install-ps: install-ps-am
+
+install-ps-am:
+
+installcheck-am:
+
+maintainer-clean: maintainer-clean-am
+       -rm -f Makefile
+maintainer-clean-am: distclean-am maintainer-clean-generic
+
+mostlyclean: mostlyclean-am
+
+mostlyclean-am: mostlyclean-generic
+
+pdf: pdf-am
+
+pdf-am:
+
+ps: ps-am
+
+ps-am:
+
+uninstall-am:
+
+.MAKE: check-am install-am install-strip
+
+.PHONY: all all-am check check-TESTS check-am clean clean-generic \
+       clean-local cscopelist-am ctags-am distclean distclean-generic \
+       distdir dvi dvi-am html html-am info info-am install \
+       install-am install-data install-data-am install-dvi \
+       install-dvi-am install-exec install-exec-am install-html \
+       install-html-am install-info install-info-am install-man \
+       install-pdf install-pdf-am install-ps install-ps-am \
+       install-strip installcheck installcheck-am installdirs \
+       maintainer-clean maintainer-clean-generic mostlyclean \
+       mostlyclean-generic pdf pdf-am ps ps-am recheck tags-am \
+       uninstall uninstall-am
+
+.PRECIOUS: Makefile
+
+
+clean-local:
+       rm -f *.html *.tex *.aux *.dvi *.pdf
+
+# Tell versions [3.59,3.63) of GNU make to not export all variables.
+# Otherwise a system limit (for SysV at least) may be exceeded.
+.NOEXPORT:
diff --git a/test/basic b/test/basic
new file mode 100755 (executable)
index 0000000..fdd83d5
--- /dev/null
@@ -0,0 +1,5 @@
+#!/bin/bash
+
+./check basic
+
+exit $?
diff --git a/test/basic.html.exp b/test/basic.html.exp
new file mode 100644 (file)
index 0000000..aa74bce
--- /dev/null
@@ -0,0 +1,110 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN" "http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+  <head>
+    <meta charset="utf-8"/>
+    <link rel="stylesheet" type="text/css" href=""/>
+    <title>
+      -
+      </title>
+    <style type="text/css">
+      .center
+      {
+         text-align : center ;
+      }
+      table.docinfo
+      {
+         margin-left  : 10% ;
+         margin-right : 10% ;
+         border-style : solid ;
+      }
+      th
+      {
+         border-style : solid ;
+         border-width : thin ;
+      }
+      h3.toc
+      {
+         margin-left : 2em ;
+      }
+      pre.example
+      {
+         border : solid ;
+         padding-bottom : 1em ;
+      }
+      span.red
+      {
+         color : red ;
+      }
+      span.green
+      {
+         color : green ;
+      }
+      span.blue
+      {
+         color : blue ;
+      }
+      span.cyan
+      {
+         color : cyan ;
+      }
+      span.magenta
+      {
+         color : magenta ;
+      }
+      span.yellow
+      {
+         color : yellow ;
+      }
+      span.orange
+      {
+         color : orange ;
+      }
+      span.violet
+      {
+         color : violet ;
+      }
+      span.purple
+      {
+         color : purple ;
+      }
+      span.brown
+      {
+         color : brown ;
+      }
+      span.pink
+      {
+         color : pink ;
+      }
+      span.olive
+      {
+         color : olive ;
+      }
+      span.black
+      {
+         color : black ;
+      }
+      span.darkgray
+      {
+         color : darkgray ;
+      }
+      span.gray
+      {
+         color : gray ;
+      }
+      span.lightgray
+      {
+         color : lightgray ;
+      }
+      span.white
+      {
+         color : white ;
+      }
+   </style>
+  </head>
+  <body>
+
+      <h1>1  <a id="CH1"/>The only chapter</h1>
+
+   <hr/></body>
+</html>
diff --git a/test/basic.tex.exp b/test/basic.tex.exp
new file mode 100644 (file)
index 0000000..f81846e
--- /dev/null
@@ -0,0 +1,15 @@
+
+\documentclass[a4paper]{book}
+\usepackage{xcolor}
+\usepackage{graphics}
+\usepackage{latexsym}
+\usepackage{marvosym}
+\begin{document}
+   
+
+      
+   \chapter{The only chapter}
+
+
+   
+\end{document}
diff --git a/test/basic.xml b/test/basic.xml
new file mode 100644 (file)
index 0000000..3d45b6d
--- /dev/null
@@ -0,0 +1,14 @@
+<?xml version="1.0"?>
+
+<doc>
+
+   <book>
+
+      <chapter>
+         <heading>The only chapter</heading>
+
+      </chapter>
+
+   </book>
+
+</doc>
diff --git a/test/check b/test/check
new file mode 100755 (executable)
index 0000000..190d0a0
--- /dev/null
@@ -0,0 +1,22 @@
+#!/bin/bash
+
+FILE=$1
+STATUS=0
+
+../xp ../html.xsl $FILE.xml >$FILE.html
+diff $FILE.html.exp $FILE.html
+RESULT=$?
+if [ $STATUS == 0 ]
+then
+   STATUS=$RESULT
+fi
+
+../xp --latex ../latex.xsl $FILE.xml >$FILE.tex
+diff $FILE.tex.exp $FILE.tex
+RESULT=$?
+if [ $STATUS == 0 ]
+then
+   STATUS=$RESULT
+fi
+
+exit $STATUS
diff --git a/test/main.css b/test/main.css
new file mode 100644 (file)
index 0000000..bf4e975
--- /dev/null
@@ -0,0 +1,79 @@
+
+body
+{
+   background : white;
+   color      : black;
+}
+
+h1
+{
+   color : blue;
+   font-family : sans-serif ;
+   font-size : 150%;
+}
+
+h1.titlepage
+{
+   color : black;
+   font-family : sans-serif ;
+   font-size : 150%;
+   text-align : center ;
+}
+
+h2.titlepage
+{
+   color : black;
+   font-family : sans-serif ;
+   font-size : 120%;
+   text-align : center ;
+}
+
+h2
+{
+   color : green;
+}
+
+div.titlepage
+{
+   background : rgb(204, 204, 255) ;
+   border: solid;
+   border-width: thin;
+   padding : 1em;
+   margin : 5% ;
+   width: 90%;
+   text-align : center ;
+}
+
+p
+{
+   font-size : 100%;
+}
+
+pre.example
+{
+   background : lightblue ;
+   width      : 90% ;
+   margin-left: 5% ;
+}
+
+span.remark
+{
+   font-size : 90%;
+   background : yellow ;
+   color : rgb(0, 0, 150);
+}
+
+table
+{
+   width : 80% ;
+   border-width : medium ;
+   border-style : solid ;
+   border-collapse : collapse;
+   padding : 1px ;
+}
+
+dt
+{
+   font-weight : bold ;
+   top-margin  : 1ex;
+}
diff --git a/test/paragraph b/test/paragraph
new file mode 100755 (executable)
index 0000000..1fb40a1
--- /dev/null
@@ -0,0 +1,5 @@
+#!/bin/bash
+
+./check paragraph
+
+exit $?
diff --git a/test/paragraph.html.exp b/test/paragraph.html.exp
new file mode 100644 (file)
index 0000000..e323c1e
--- /dev/null
@@ -0,0 +1,126 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN" "http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+  <head>
+    <meta charset="utf-8"/>
+    <link rel="stylesheet" type="text/css" href="main.css"/>
+    <title>xmldoc paragraph check</title>
+    <style type="text/css">
+      .center
+      {
+         text-align : center ;
+      }
+      table.docinfo
+      {
+         margin-left  : 10% ;
+         margin-right : 10% ;
+         border-style : solid ;
+      }
+      th
+      {
+         border-style : solid ;
+         border-width : thin ;
+      }
+      h3.toc
+      {
+         margin-left : 2em ;
+      }
+      pre.example
+      {
+         border : solid ;
+         padding-bottom : 1em ;
+      }
+      span.red
+      {
+         color : red ;
+      }
+      span.green
+      {
+         color : green ;
+      }
+      span.blue
+      {
+         color : blue ;
+      }
+      span.cyan
+      {
+         color : cyan ;
+      }
+      span.magenta
+      {
+         color : magenta ;
+      }
+      span.yellow
+      {
+         color : yellow ;
+      }
+      span.orange
+      {
+         color : orange ;
+      }
+      span.violet
+      {
+         color : violet ;
+      }
+      span.purple
+      {
+         color : purple ;
+      }
+      span.brown
+      {
+         color : brown ;
+      }
+      span.pink
+      {
+         color : pink ;
+      }
+      span.olive
+      {
+         color : olive ;
+      }
+      span.black
+      {
+         color : black ;
+      }
+      span.darkgray
+      {
+         color : darkgray ;
+      }
+      span.gray
+      {
+         color : gray ;
+      }
+      span.lightgray
+      {
+         color : lightgray ;
+      }
+      span.white
+      {
+         color : white ;
+      }
+   </style>
+  </head>
+  <body>
+
+   <div class="titlepage">
+      <h1 class="titlepage">xmldoc paragraph check</h1>
+   </div>
+
+   <h1>1  <a id="CH1"/>The only chapter</h1><p>
+      This testcase test paragraphs and related block level content.
+      </p><blockquote><p>
+      This paragraph is printed in a quote environment.
+      </p></blockquote><pre>
+      A verbatim element prints text with
+              spaces   and
+              linebreaks
+        preserved.
+      </pre><pre class="example">
+      An example is like verbatim
+
+         but puts the text
+         in a box.
+      </pre>
+
+   <hr/></body>
+</html>
diff --git a/test/paragraph.tex.exp b/test/paragraph.tex.exp
new file mode 100644 (file)
index 0000000..6abecad
--- /dev/null
@@ -0,0 +1,53 @@
+
+\documentclass[a4paper]{book}
+\usepackage{xcolor}
+\usepackage{graphics}
+\usepackage{latexsym}
+\usepackage{marvosym}
+\begin{document}
+   
+
+   
+   \begin{titlepage}
+   
+      
+   \begin{center}
+   \sffamily\bfseries\LARGE{xmldoc paragraph check}
+   \end{center}
+
+   
+   \end{titlepage}
+
+
+   
+   \chapter{The only chapter}
+
+      This testcase test paragraphs and related block level content.
+      
+\begin{quote} 
+     
+      This paragraph is printed in a quote environment.
+      
+\end{quote}
+
+\begin{verbatim} 
+     
+      A verbatim element prints text with
+              spaces   and
+              linebreaks
+        preserved.
+      
+\end{verbatim}
+
+\begin{verbatim} 
+      An example is like verbatim
+
+         but puts the text
+         in a box.
+      
+\end{verbatim}
+
+
+   
+\end{document}
diff --git a/test/paragraph.xml b/test/paragraph.xml
new file mode 100644 (file)
index 0000000..4891783
--- /dev/null
@@ -0,0 +1,39 @@
+<?xml version="1.0"?>
+
+<doc style="main.css">
+
+   <book>
+
+   <titlepage>
+      <title>xmldoc paragraph check</title>
+   </titlepage>
+
+   <chapter>
+      <heading>The only chapter</heading>
+      <para>
+      This testcase test paragraphs and related block level content.
+      </para>
+
+      <quote>
+      This paragraph is printed in a quote environment.
+      </quote>
+
+      <verbatim>
+      A verbatim element prints text with
+              spaces   and
+              linebreaks
+        preserved.
+      </verbatim>
+
+      <example>
+      An example is like verbatim
+
+         but puts the text
+         in a box.
+      </example>
+
+   </chapter>
+
+   </book>
+
+</doc>
diff --git a/test/sections b/test/sections
new file mode 100755 (executable)
index 0000000..f890321
--- /dev/null
@@ -0,0 +1,5 @@
+#!/bin/bash
+
+./check sections
+
+exit $?
diff --git a/test/sections.html.exp b/test/sections.html.exp
new file mode 100644 (file)
index 0000000..b7f5aa5
--- /dev/null
@@ -0,0 +1,138 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN" "http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+  <head>
+    <meta charset="utf-8"/>
+    <link rel="stylesheet" type="text/css" href=""/>
+    <title>xmldoc sectioning check</title>
+    <style type="text/css">
+      .center
+      {
+         text-align : center ;
+      }
+      table.docinfo
+      {
+         margin-left  : 10% ;
+         margin-right : 10% ;
+         border-style : solid ;
+      }
+      th
+      {
+         border-style : solid ;
+         border-width : thin ;
+      }
+      h3.toc
+      {
+         margin-left : 2em ;
+      }
+      pre.example
+      {
+         border : solid ;
+         padding-bottom : 1em ;
+      }
+      span.red
+      {
+         color : red ;
+      }
+      span.green
+      {
+         color : green ;
+      }
+      span.blue
+      {
+         color : blue ;
+      }
+      span.cyan
+      {
+         color : cyan ;
+      }
+      span.magenta
+      {
+         color : magenta ;
+      }
+      span.yellow
+      {
+         color : yellow ;
+      }
+      span.orange
+      {
+         color : orange ;
+      }
+      span.violet
+      {
+         color : violet ;
+      }
+      span.purple
+      {
+         color : purple ;
+      }
+      span.brown
+      {
+         color : brown ;
+      }
+      span.pink
+      {
+         color : pink ;
+      }
+      span.olive
+      {
+         color : olive ;
+      }
+      span.black
+      {
+         color : black ;
+      }
+      span.darkgray
+      {
+         color : darkgray ;
+      }
+      span.gray
+      {
+         color : gray ;
+      }
+      span.lightgray
+      {
+         color : lightgray ;
+      }
+      span.white
+      {
+         color : white ;
+      }
+   </style>
+  </head>
+  <body>
+
+   <div class="titlepage">
+      <h1 class="titlepage">xmldoc sectioning check</h1>
+      Arjen Baart  &lt;arjen@andromeda.nl&gt;<br/>
+      <p>July 15, 2019</p>
+   </div>
+
+      <h1>1  <a id="CH1"/>The first chapter</h1><h2>1.1 <a id="SEC1.1"/>The first section</h2>
+               <h3>1.1.1 The first subsection</h3>
+               
+                  <h4>1.1.1.1 The first subsubsection</h4>
+                  
+                     <h4>1.1.1.1.1 The first paragraph</h4>
+                     
+                        <h4>1.1.1.1.1.1 The first subparagraph</h4>
+                     
+                  
+               
+            
+
+      <h1>2  <a id="CH2"/>The second chapter</h1><h2>2.1 <a id="SEC2.1"/>The second section</h2>
+               <h3>2.1.1 The second subsection</h3>
+               
+                  <h4>2.1.1.1 The second subsubsection</h4>
+                  
+                     <h4>2.1.1.1.1 The second paragraph</h4>
+                     
+                        <h4>2.1.1.1.1.1 The second subparagraph</h4>
+                     
+                  
+               
+            
+
+   <hr/></body>
+</html>
diff --git a/test/sections.tex.exp b/test/sections.tex.exp
new file mode 100644 (file)
index 0000000..e8e7bed
--- /dev/null
@@ -0,0 +1,83 @@
+
+\documentclass[a4paper]{book}
+\usepackage{xcolor}
+\usepackage{graphics}
+\usepackage{latexsym}
+\usepackage{marvosym}
+\begin{document}
+   
+
+   
+   \begin{titlepage}
+   
+      
+   \begin{center}
+   \sffamily\bfseries\LARGE{xmldoc sectioning check}
+   \end{center}
+
+      
+   \begin{center}
+   \sffamily{Arjen Baart  \verb+<+arjen@andromeda.nl\verb+>+}
+   \end{center}
+
+      
+   \begin{center}
+   \sffamily{July 15, 2019}
+   \end{center}
+
+   
+   \end{titlepage}
+
+
+      
+   \chapter{The first chapter}
+
+   \section{The first section}
+
+               
+   \subsection{The first subsection}
+
+               
+                  
+   \subsubsection{The first subsubsection}
+
+                  
+                     
+   \paragraph{The first paragraph}
+
+                     
+                        
+   \subparagraph{The first subparagraph}
+
+                     
+                  
+               
+            
+
+      
+   \chapter{The second chapter}
+
+   \section{The second section}
+
+               
+   \subsection{The second subsection}
+
+               
+                  
+   \subsubsection{The second subsubsection}
+
+                  
+                     
+   \paragraph{The second paragraph}
+
+                     
+                        
+   \subparagraph{The second subparagraph}
+
+                     
+                  
+               
+            
+
+   
+\end{document}
diff --git a/test/sections.xml b/test/sections.xml
new file mode 100644 (file)
index 0000000..50e079a
--- /dev/null
@@ -0,0 +1,55 @@
+<?xml version="1.0"?>
+
+<doc>
+
+   <book>
+
+   <titlepage>
+      <title>xmldoc sectioning check</title>
+      <author>Arjen Baart  &lt;arjen@andromeda.nl&gt;</author>
+      <date>July 15, 2019</date>
+   </titlepage>
+
+      <chapter>
+         <heading>The first chapter</heading>
+         <section>
+            <heading>The first section</heading>
+            <subsection>
+               <heading>The first subsection</heading>
+               <subsubsection>
+                  <heading>The first subsubsection</heading>
+                  <paragraph>
+                     <heading>The first paragraph</heading>
+                     <subparagraph>
+                        <heading>The first subparagraph</heading>
+                     </subparagraph>
+                  </paragraph>
+               </subsubsection>
+            </subsection>
+         </section>
+
+      </chapter>
+
+      <chapter>
+         <heading>The second chapter</heading>
+         <section>
+            <heading>The second section</heading>
+            <subsection>
+               <heading>The second subsection</heading>
+               <subsubsection>
+                  <heading>The second subsubsection</heading>
+                  <paragraph>
+                     <heading>The second paragraph</heading>
+                     <subparagraph>
+                        <heading>The second subparagraph</heading>
+                     </subparagraph>
+                  </paragraph>
+               </subsubsection>
+            </subsection>
+         </section>
+
+      </chapter>
+
+   </book>
+
+</doc>
diff --git a/test/title b/test/title
new file mode 100755 (executable)
index 0000000..7ebc819
--- /dev/null
@@ -0,0 +1,5 @@
+#!/bin/bash
+
+./check title
+
+exit $?
diff --git a/test/title.html.exp b/test/title.html.exp
new file mode 100644 (file)
index 0000000..a828035
--- /dev/null
@@ -0,0 +1,112 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN" "http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+  <head>
+    <meta charset="utf-8"/>
+    <link rel="stylesheet" type="text/css" href=""/>
+    <title>xmldoc title check</title>
+    <style type="text/css">
+      .center
+      {
+         text-align : center ;
+      }
+      table.docinfo
+      {
+         margin-left  : 10% ;
+         margin-right : 10% ;
+         border-style : solid ;
+      }
+      th
+      {
+         border-style : solid ;
+         border-width : thin ;
+      }
+      h3.toc
+      {
+         margin-left : 2em ;
+      }
+      pre.example
+      {
+         border : solid ;
+         padding-bottom : 1em ;
+      }
+      span.red
+      {
+         color : red ;
+      }
+      span.green
+      {
+         color : green ;
+      }
+      span.blue
+      {
+         color : blue ;
+      }
+      span.cyan
+      {
+         color : cyan ;
+      }
+      span.magenta
+      {
+         color : magenta ;
+      }
+      span.yellow
+      {
+         color : yellow ;
+      }
+      span.orange
+      {
+         color : orange ;
+      }
+      span.violet
+      {
+         color : violet ;
+      }
+      span.purple
+      {
+         color : purple ;
+      }
+      span.brown
+      {
+         color : brown ;
+      }
+      span.pink
+      {
+         color : pink ;
+      }
+      span.olive
+      {
+         color : olive ;
+      }
+      span.black
+      {
+         color : black ;
+      }
+      span.darkgray
+      {
+         color : darkgray ;
+      }
+      span.gray
+      {
+         color : gray ;
+      }
+      span.lightgray
+      {
+         color : lightgray ;
+      }
+      span.white
+      {
+         color : white ;
+      }
+   </style>
+  </head>
+  <body>
+
+   <div class="titlepage">
+      <h1 class="titlepage">xmldoc title check</h1>
+   </div>
+
+      <h1>1  <a id="CH1"/>The only chapter</h1>
+
+   <hr/></body>
+</html>
diff --git a/test/title.tex.exp b/test/title.tex.exp
new file mode 100644 (file)
index 0000000..4c4c413
--- /dev/null
@@ -0,0 +1,27 @@
+
+\documentclass[a4paper]{book}
+\usepackage{xcolor}
+\usepackage{graphics}
+\usepackage{latexsym}
+\usepackage{marvosym}
+\begin{document}
+   
+
+   
+   \begin{titlepage}
+   
+      
+   \begin{center}
+   \sffamily\bfseries\LARGE{xmldoc title check}
+   \end{center}
+
+   
+   \end{titlepage}
+
+
+      
+   \chapter{The only chapter}
+
+
+   
+\end{document}
diff --git a/test/title.xml b/test/title.xml
new file mode 100644 (file)
index 0000000..3bbc36a
--- /dev/null
@@ -0,0 +1,18 @@
+<?xml version="1.0"?>
+
+<doc>
+
+   <book>
+
+   <titlepage>
+      <title>xmldoc title check</title>
+   </titlepage>
+
+      <chapter>
+         <heading>The only chapter</heading>
+
+      </chapter>
+
+   </book>
+
+</doc>
diff --git a/test/titlepage b/test/titlepage
new file mode 100755 (executable)
index 0000000..17bd3a7
--- /dev/null
@@ -0,0 +1,5 @@
+#!/bin/bash
+
+./check titlepage
+
+exit $?
diff --git a/test/titlepage.html.exp b/test/titlepage.html.exp
new file mode 100644 (file)
index 0000000..26fa1a6
--- /dev/null
@@ -0,0 +1,117 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN" "http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+  <head>
+    <meta charset="utf-8"/>
+    <link rel="stylesheet" type="text/css" href=""/>
+    <title>xmldoc titlepage check</title>
+    <style type="text/css">
+      .center
+      {
+         text-align : center ;
+      }
+      table.docinfo
+      {
+         margin-left  : 10% ;
+         margin-right : 10% ;
+         border-style : solid ;
+      }
+      th
+      {
+         border-style : solid ;
+         border-width : thin ;
+      }
+      h3.toc
+      {
+         margin-left : 2em ;
+      }
+      pre.example
+      {
+         border : solid ;
+         padding-bottom : 1em ;
+      }
+      span.red
+      {
+         color : red ;
+      }
+      span.green
+      {
+         color : green ;
+      }
+      span.blue
+      {
+         color : blue ;
+      }
+      span.cyan
+      {
+         color : cyan ;
+      }
+      span.magenta
+      {
+         color : magenta ;
+      }
+      span.yellow
+      {
+         color : yellow ;
+      }
+      span.orange
+      {
+         color : orange ;
+      }
+      span.violet
+      {
+         color : violet ;
+      }
+      span.purple
+      {
+         color : purple ;
+      }
+      span.brown
+      {
+         color : brown ;
+      }
+      span.pink
+      {
+         color : pink ;
+      }
+      span.olive
+      {
+         color : olive ;
+      }
+      span.black
+      {
+         color : black ;
+      }
+      span.darkgray
+      {
+         color : darkgray ;
+      }
+      span.gray
+      {
+         color : gray ;
+      }
+      span.lightgray
+      {
+         color : lightgray ;
+      }
+      span.white
+      {
+         color : white ;
+      }
+   </style>
+  </head>
+  <body>
+
+   <div class="titlepage">
+      <h1 class="titlepage">xmldoc titlepage check</h1>
+      Arjen Baart  &lt;arjen@andromeda.nl&gt;<br/>
+      <p>July 13, 2019</p>
+      <blockquote><p><b>Abstract:</b></p><p>
+         XMLdoc test suite for regression testing
+      </p></blockquote>
+   </div>
+
+      <h1>1  <a id="CH1"/>The only chapter</h1>
+
+   <hr/></body>
+</html>
diff --git a/test/titlepage.tex.exp b/test/titlepage.tex.exp
new file mode 100644 (file)
index 0000000..47cce90
--- /dev/null
@@ -0,0 +1,48 @@
+
+\documentclass[a4paper]{book}
+\usepackage{xcolor}
+\usepackage{graphics}
+\usepackage{latexsym}
+\usepackage{marvosym}
+\begin{document}
+   
+
+   
+   \begin{titlepage}
+   
+      
+   \begin{center}
+   \sffamily\bfseries\LARGE{xmldoc titlepage check}
+   \end{center}
+
+      
+   \begin{center}
+   \sffamily{Arjen Baart  \verb+<+arjen@andromeda.nl\verb+>+}
+   \end{center}
+
+      
+   \begin{center}
+   \sffamily{July 13, 2019}
+   \end{center}
+
+      
+   
+   \vspace{0.5cm}
+   \begin{bfseries}Abstract:\end{bfseries}
+
+   \begin{quote}
+   
+         XMLdoc test suite for regression testing
+      
+   \end{quote}
+
+   
+   \end{titlepage}
+
+
+      
+   \chapter{The only chapter}
+
+
+   
+\end{document}
diff --git a/test/titlepage.xml b/test/titlepage.xml
new file mode 100644 (file)
index 0000000..f99c6f0
--- /dev/null
@@ -0,0 +1,23 @@
+<?xml version="1.0"?>
+
+<doc>
+
+   <book>
+
+   <titlepage>
+      <title>xmldoc titlepage check</title>
+      <author>Arjen Baart  &lt;arjen@andromeda.nl&gt;</author>
+      <date>July 13, 2019</date>
+      <abstract>
+         XMLdoc test suite for regression testing
+      </abstract>
+   </titlepage>
+
+      <chapter>
+         <heading>The only chapter</heading>
+
+      </chapter>
+
+   </book>
+
+</doc>
diff --git a/test/toc b/test/toc
new file mode 100755 (executable)
index 0000000..4dc3782
--- /dev/null
+++ b/test/toc
@@ -0,0 +1,5 @@
+#!/bin/bash
+
+./check toc
+
+exit $?
diff --git a/test/toc.html.exp b/test/toc.html.exp
new file mode 100644 (file)
index 0000000..d7f4c61
--- /dev/null
@@ -0,0 +1,140 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN" "http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+  <head>
+    <meta charset="utf-8"/>
+    <link rel="stylesheet" type="text/css" href=""/>
+    <title>xmldoc table of contents check</title>
+    <style type="text/css">
+      .center
+      {
+         text-align : center ;
+      }
+      table.docinfo
+      {
+         margin-left  : 10% ;
+         margin-right : 10% ;
+         border-style : solid ;
+      }
+      th
+      {
+         border-style : solid ;
+         border-width : thin ;
+      }
+      h3.toc
+      {
+         margin-left : 2em ;
+      }
+      pre.example
+      {
+         border : solid ;
+         padding-bottom : 1em ;
+      }
+      span.red
+      {
+         color : red ;
+      }
+      span.green
+      {
+         color : green ;
+      }
+      span.blue
+      {
+         color : blue ;
+      }
+      span.cyan
+      {
+         color : cyan ;
+      }
+      span.magenta
+      {
+         color : magenta ;
+      }
+      span.yellow
+      {
+         color : yellow ;
+      }
+      span.orange
+      {
+         color : orange ;
+      }
+      span.violet
+      {
+         color : violet ;
+      }
+      span.purple
+      {
+         color : purple ;
+      }
+      span.brown
+      {
+         color : brown ;
+      }
+      span.pink
+      {
+         color : pink ;
+      }
+      span.olive
+      {
+         color : olive ;
+      }
+      span.black
+      {
+         color : black ;
+      }
+      span.darkgray
+      {
+         color : darkgray ;
+      }
+      span.gray
+      {
+         color : gray ;
+      }
+      span.lightgray
+      {
+         color : lightgray ;
+      }
+      span.white
+      {
+         color : white ;
+      }
+   </style>
+  </head>
+  <body>
+
+   <div class="titlepage">
+      <h1 class="titlepage">xmldoc table of contents check</h1>
+      Arjen Baart  &lt;arjen@andromeda.nl&gt;<br/>
+      <p>July 15, 2019</p>
+   </div>
+
+   <h1>Table Of Contents</h1><h2>1  <a href="#CH1">The first chapter</a></h2><h3 class="toc">1.1 <a href="#SEC1.1">The first section</a></h3><h2>2  <a href="#CH2">The second chapter</a></h2><h3 class="toc">2.1 <a href="#SEC2.1">The second section</a></h3><hr/>
+
+      <h1>1  <a id="CH1"/>The first chapter</h1><h2>1.1 <a id="SEC1.1"/>The first section</h2>
+               <h3>1.1.1 The first subsection</h3>
+               
+                  <h4>1.1.1.1 The first subsubsection</h4>
+                  
+                     <h4>1.1.1.1.1 The first paragraph</h4>
+                     
+                        <h4>1.1.1.1.1.1 The first subparagraph</h4>
+                     
+                  
+               
+            
+
+      <h1>2  <a id="CH2"/>The second chapter</h1><h2>2.1 <a id="SEC2.1"/>The second section</h2>
+               <h3>2.1.1 The second subsection</h3>
+               
+                  <h4>2.1.1.1 The second subsubsection</h4>
+                  
+                     <h4>2.1.1.1.1 The second paragraph</h4>
+                     
+                        <h4>2.1.1.1.1.1 The second subparagraph</h4>
+                     
+                  
+               
+            
+
+   <hr/></body>
+</html>
diff --git a/test/toc.tex.exp b/test/toc.tex.exp
new file mode 100644 (file)
index 0000000..3b06e9b
--- /dev/null
@@ -0,0 +1,88 @@
+
+\documentclass[a4paper]{book}
+\usepackage{xcolor}
+\usepackage{graphics}
+\usepackage{latexsym}
+\usepackage{marvosym}
+\begin{document}
+   
+
+   
+   \begin{titlepage}
+   
+      
+   \begin{center}
+   \sffamily\bfseries\LARGE{xmldoc table of contents check}
+   \end{center}
+
+      
+   \begin{center}
+   \sffamily{Arjen Baart  \verb+<+arjen@andromeda.nl\verb+>+}
+   \end{center}
+
+      
+   \begin{center}
+   \sffamily{July 15, 2019}
+   \end{center}
+
+   
+   \end{titlepage}
+
+
+   
+\tableofcontents
+\newpage
+
+
+      
+   \chapter{The first chapter}
+
+   \section{The first section}
+
+               
+   \subsection{The first subsection}
+
+               
+                  
+   \subsubsection{The first subsubsection}
+
+                  
+                     
+   \paragraph{The first paragraph}
+
+                     
+                        
+   \subparagraph{The first subparagraph}
+
+                     
+                  
+               
+            
+
+      
+   \chapter{The second chapter}
+
+   \section{The second section}
+
+               
+   \subsection{The second subsection}
+
+               
+                  
+   \subsubsection{The second subsubsection}
+
+                  
+                     
+   \paragraph{The second paragraph}
+
+                     
+                        
+   \subparagraph{The second subparagraph}
+
+                     
+                  
+               
+            
+
+   
+\end{document}
diff --git a/test/toc.toc b/test/toc.toc
new file mode 100644 (file)
index 0000000..e4a5c98
--- /dev/null
@@ -0,0 +1,12 @@
+\contentsline {chapter}{\numberline {1}The first chapter}{5}
+\contentsline {section}{\numberline {1.1}The first section}{5}
+\contentsline {subsection}{\numberline {1.1.1}The first subsection}{5}
+\contentsline {subsubsection}{The first subsubsection}{5}
+\contentsline {paragraph}{The first paragraph}{5}
+\contentsline {subparagraph}{The first subparagraph}{5}
+\contentsline {chapter}{\numberline {2}The second chapter}{7}
+\contentsline {section}{\numberline {2.1}The second section}{7}
+\contentsline {subsection}{\numberline {2.1.1}The second subsection}{7}
+\contentsline {subsubsection}{The second subsubsection}{7}
+\contentsline {paragraph}{The second paragraph}{7}
+\contentsline {subparagraph}{The second subparagraph}{7}
diff --git a/test/toc.xml b/test/toc.xml
new file mode 100644 (file)
index 0000000..c8d9966
--- /dev/null
@@ -0,0 +1,57 @@
+<?xml version="1.0"?>
+
+<doc>
+
+   <book>
+
+   <titlepage>
+      <title>xmldoc table of contents check</title>
+      <author>Arjen Baart  &lt;arjen@andromeda.nl&gt;</author>
+      <date>July 15, 2019</date>
+   </titlepage>
+
+   <toc/>
+
+      <chapter>
+         <heading>The first chapter</heading>
+         <section>
+            <heading>The first section</heading>
+            <subsection>
+               <heading>The first subsection</heading>
+               <subsubsection>
+                  <heading>The first subsubsection</heading>
+                  <paragraph>
+                     <heading>The first paragraph</heading>
+                     <subparagraph>
+                        <heading>The first subparagraph</heading>
+                     </subparagraph>
+                  </paragraph>
+               </subsubsection>
+            </subsection>
+         </section>
+
+      </chapter>
+
+      <chapter>
+         <heading>The second chapter</heading>
+         <section>
+            <heading>The second section</heading>
+            <subsection>
+               <heading>The second subsection</heading>
+               <subsubsection>
+                  <heading>The second subsubsection</heading>
+                  <paragraph>
+                     <heading>The second paragraph</heading>
+                     <subparagraph>
+                        <heading>The second subparagraph</heading>
+                     </subparagraph>
+                  </paragraph>
+               </subsubsection>
+            </subsection>
+         </section>
+
+      </chapter>
+
+   </book>
+
+</doc>