Jason Novotny wrote:
>
>    Here are my files:
>
> I load in UsersGuide.xml which imports the other files, I can see my
> document is loaded up but I get that error when I try to
> convert to HTML.

XXE has not been designed to handle documents such as yours which
heavily makes use of references to external entities.

In the case of UsersGuide.xml, the killer is:
---
<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
  "../common/docbook-xml-4.4/docbookx.dtd" [
  <!-- Useful snippets -->

<!ENTITY % GridSphereLinks SYSTEM "GridSphereLinks.xml">
  %GridSphereLinks; <------------------------------------- ***THIS***

<!-- Each chapter is in its own file -->[*]

<!ENTITY chap-intro SYSTEM "intro.xml">

<!ENTITY chap-config SYSTEM "config.xml">

<!ENTITY chap-install SYSTEM "install.xml">

<!-- Application, page, library, component specification entities  -->
]>
---
(You forgot to send me GridSphereLinks.xml but I've found one on the
Internet using Google.)

When XXE transforms a DocBook document to any other format, it does so
by copying the document and all its resources (e.g. graphics files) to a
temporary working directory (e.g. /tmp/xxe23456).

XXE should have copied GridSphereLinks.xml too to this temporary
directory to make Saxon happy (this is not really needed because XXE
creates a ``flat'' XML file for use by Saxon where all entities,
including those defined in GridSphereLinks.xml, have been replaced).

This is not a bug (not even a limitation because we have not created XXE
to do this) but this makes XXE unusable for you (more info. in
http://www.xmlmind.com/xmleditor/detailed_features.html#nonfeatures).
Sorry for that.



---
[*] This comment is false: intro.xml and al. contain a bunch of <sect1>
and not a <chapter>. This also is not supported by XXE. (A single
<chapter> would have worked fine.)

---
PS: UsersGuide.xml is structurally invalid. For example, you directly
write some text in a <sect1> instead of doing so in a <para>.



Reply via email to