Michel Kergoat wrote:
> I have the same behavior with programlisting element.
> It appears that this behavior is with DOCTYPE pointing to 4.2 docbook 
> DTD or with no DOCTYPE line.
> But it is not with a DOCTYPE pointing to 4.1.2.
> I downloaded xxe's user guide as docbook source, which has DOCTYPE 
> pointing to 4.1.2 and programlisting element, and this element is seen 
> correct with newlines.
> If you replace the DOCTYPE line from
> ----
> <!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
> "http://www.oasis-open.org/docbook/xml/4.0/docbookx.dtd";>
> ----
> to
> ----
> <!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
> "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd";>
> ----
> and reload the file on xxe, the programlisting element is seen in one 
> line (i.e. the newlines are cutted out).
> I do not know how to have newlines in 4.2 docbook documents.
> What should I do then ?

I did exactly what you did with userguide.xml and the programlisting 
elements are OK.

This may be an XML catalog problem. The XML catalog used by XXE must 
point to the DTDs bundled with XXE and not on original OASIS DTDs.

Use the Options dialog box, Schema tab and check the Reset button in the 
DTD catalogs frame. Then reload your modified userguide.xml document.


Reply via email to