Stewart W Moore wrote:
> I'm trying to include some MathML in a docbook. Attached is a test file
> from docbook home page that gives the following error when I try to convert
> using the xmleditor. I get the same error regardless of the output form
> (i.e. pdf, html, etc)
> 
> (See attached file: testmath.xml)

.
.
.

> Transforming XML file "__doc.xml" to "__doc.html" using
> "xsl/html/chunk.xsl"
> Compiling style sheet "file:///D:/Program
> Files/XMLmind_XML_Editor/config/docbook/xsl/html/chunk.xsl"
> Processing XML file "D:\Documents and Settings\smoore\Local
> Settings\Temp\xxe21939\__doc.xml"
> Fatal error: Failure reading file:/D:/Documents and Settings/smoore/Local
> Settings/Temp/xxe21939/__doc.xml

This error is reported by the XSLT processor (saxon).

__doc.xml is a copy of testmath.xml which starts with:

---
<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook MathML Module V1.0//EN"
               "dbmathml.dtd">
---

I think that saxon cannot parse __doc.xml because dbmathml.dtd has not 
been copied to Temp/xxe21939 (along with testmath.xml).

I would recommend to create a new XML catalog with an entry for 
"-//OASIS//DTD DocBook MathML Module V1.0//EN" and to declare this 
catalog to XXE using Options|Options, Schema tab, DTD Catalogs frame.

This is pretty simple to do. Just look at what has been done in 
<XXE_install_dir>/config/catalog.xml.



Reply via email to