Sixten Otto wrote:
At 09:03 PM 4/11/02 +0200, Steven Noels wrote:
Sixten, could you provide us with the first few lines (xml & doctype
declaration, some comments) of your misbehaving document?
Sure. This is the prolog and root element of my document:
----------
<?xml version="1.0" ?>
<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
"http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
<article role="Creature">
<!-- ... ~5kb snipped ... -->
</article>
----------
After adding and retrieving the document, I've got this:
----------
<?xml version="1.0"?>
<!--
......................................................................
--><!-- DocBook XML DTD V4.1.2
................................................. --><!-- File
docbookx.dtd ....................................................
--><!-- ... ~110kb of other comments snipped ... --><article
role="Creature">
<!-- ... ~5kb snipped ... -->
</article>
----------
Well, I've been wrong before certainly, but this REALLLY looks like
a serialization problem, or perhaps the way Xerces is hooked up to
the serializer, in the sense that the serializer shouldn't be active
in capturing comments during processing of the prolog. It *should*
be a fairly straightforward bug to fix.
Murray
......................................................................
Murray Altheim <mailto:m.altheim @ open.ac.uk>
Knowledge Media Institute
The Open University, Milton Keynes, Bucks, MK7 6AA, UK
In the evening
The rice leaves in the garden
Rustle in the autumn wind
That blows through my reed hut. -- Minamoto no Tsunenobu