Lars Trieloff wrote:
> I am writing a document on an specific XML format and I would like to
> include the example XML snippets through XInclude, parsed as text.
> 
> <xi:include href="examples/appetizer.xml" parse="text"/>
> 
> This way I could validate the XML of the example documents independently
> from the main document. Unfortunately XMLmind XML Editor does not
> recognize the parse attribute of the include element

XMLmind XML Editor is supposed to recognize parse="text". (That is, we 
have tested this feature.)




> and will complain about the xml declaration in the first line of the included 
> document.

XXE should be able to open the document correctly processed but it 
should also display a warning dialog box saying somthing like 
``<xi:include> references not managed by XXE''.

If this is not the case, may be you have found a bug and in such case, 
sending us sample XML files showing the problem would be really nice.




> Is there any possibility to work around this behavior?

(((Once the bug is fixed, if there is a bug whe can reproduce.)))

Write a CGI which will wrap a <programlisting> element around your 
examples and XInclude the path to the CGI+example.

No, unfortunately, I'm not kidding...




> Is it possible to enable text inclusions in a newer version of XXE?

Sorry but the answer is no because it would require a complete rewrite 
of XXE.


Reply via email to