[Tighten up the DocBook XSL stylesheet test Simon Marlow **20090603101244 Ignore-this: e68f96360250831634c77914afe11566 It wasn't failing even when the DTD was not found. ] { hunk ./aclocal.m4 750 +# +# It took a lot of experimentation to find a document that will cause +# xsltproc to fail with an error code when the relevant +# stylesheets/DTDs are not found. I couldn't make xsltproc fail with +# a single-file document, it seems a multi-file document is needed. +# -- SDM 2009-06-03 +# hunk ./aclocal.m4 758 -[rm -f conftest.xml +[rm -f conftest.xml conftest-book.xml hunk ./aclocal.m4 762 - "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd"> + "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd" [[ + +]]> hunk ./aclocal.m4 766 - A DocBook Test Document +&conftest-book; + +EOF +cat >conftest-book.xml << EOF + + A DocBook “Test Document” hunk ./aclocal.m4 780 - hunk ./aclocal.m4 809 -# FP_DOCBOOK_XSL(XSL-DIRS) +# FP_DOCBOOK_XSL hunk ./aclocal.m4 811 -# Check which of the directories XSL-DIRS contains DocBook XSL stylesheets. The -# output variable HAVE_DOCBOOK_XSL will contain the first usable directory or -# will be empty if none could be found. +# Check that we can process a DocBook XML document to HTML using xsltproc. hunk ./aclocal.m4 852 - if $XmllintCmd --nonet --valid --noout conftest.xml > /dev/null 2>&1; then + if $XmllintCmd --nonet --valid --noout conftest.xml ; then }