Bernd Kuemmerlen wrote:
>> 1. I spent a lot of time working out why XXE refused to load my existing
>> Docbook documents, with chapters as external entities, as "modular
>> documents". I got a message box saying that the document contained
>> "...entities that are not managed by XML Mind XML Editor...", with no
>> hint
>> as to why. I eventually tracked this down to the presence of comments
>> before
>> the <chapter> tags in the sub-documents. It was only later that I
>> found the
>> note about "Managed and unmanaged references to external documents" in
>> the
>> online Help, as this is buried in a rather obscure location ("Dialog
>> Boxes",
>> "Option dialog box", "Open options").
>>
>> At the very least, there should be a clear note in the "Modular
>> Documents"
>> section of the User's Guide. It is common practice to put file and
>> version
>> information in a comment preceding the "root" tag of a document, so
>> this is
>> likely to trip many users up.
>
>
> I stumbled upon the same problem (and I already had written a mail to
> the mailing list when I finally found the section in the User's Guide).
> I wanted to support that at least it should be made more clear why an
> entity is not managed.
> Even better would be to at least allow comments and processing
> instructions before the element root of an included document.
Sorry for being so late to answer: I was in vacations for the last 2 weeks.
For technical reasons, this is not easy to do for *external entities*.
Note that the behavior you expect is what exactly what is done by XXE
for XIncludes. In the case of XIncludes, XXE automatically appends an
XPointer (#element(/1)) to the document reference which makes it ignore
comments and processing instructions before the element root of an
included document.
Disclaimer: I'm not saying this to force anyone to buy Professional Edition.