Kenneth Johansson wrote:
> The Document Type header is the same as you use. 
> I don't have any catalogs set up in my environment variables.
> The bundled catalog is where it should be.
> 
> The documents have recently been converted from Word using upcast and are
> not indented, and all xml-code are basically in a single line. 
> 
> I have other documents that works fine.
> 
> I'm attaching an example file. 

XXE is not namespace-aware when the document is conforming to a DTD. You 
need to configure the tool used to convert Word documents to DocBook:

[1] Not to add xmlns:xi="http://www.w3.org/2003/XInclude"; to the root 
element of the document.

[2] To add xmlns:xi="http://www.w3.org/2003/XInclude"; to each generated 
xi:include element.

Example:

---
<xi:include href="file:///common/copyright.xml"></xi:include>
---

needs to be replaced by:

---
<xi:include href="file:///common/copyright.xml"
xmlns:xi="http://www.w3.org/2003/XInclude";></xi:include>
---

The red icon displayed at the bottom left of XXE clearly indicated that 
there was a severe problem with your document and in such case, XXE is 
run in a lenient mode where some elements may loose their types.

That's why, <programlisting>s temporarily lost their 
xml:space="preserve" attribute. (However, after fixing the document, 
without having to restart the editor, XXE automatically reverts to its 
normal, strictly typed, mode.)


Reply via email to