Kimbro Staken wrote:
Are you sure that Xindice is doing this with the DOCTYPE and not
something else in your application? We've never really claimed that
Xindice handled DTDs at all, what support we do have is simply a side
effect of using Xerces as a parser. Once the document is parsed though,
the DTD should be gone and definitely shouldn't be preserved inline in
the document unless this is a really weird bug.
Xindice itself is only a downstream processor from Xerces 2, where
the problem arises. My best guess is that you'll eliminate this
problem if you set your DocumentBuilderFactory to create a
DocumentBuilder (ie., XML parser) that ignores comments. This is
done using the setIgnoringComments() method to true.
Another option would be to preprocess the DocBook DTD using James
Clark's SP tools, which could strip the comments for you and reduce
the size of the DTD used during processing.
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