Dear Mr. Shafie, thank you very much for your answer. For some additional comments, please see below.
-------- Original-Nachricht -------- > Datum: Wed, 01 Sep 2010 12:33:02 +0200 > Von: Hussein Shafie <[email protected]> > An: "Dirk Bächle" <[email protected]> > CC: "[email protected]" <[email protected]> > Betreff: Re: [XXE] Support for xi:fallback (XInclude)... > Dirk Bächle wrote: > > ... > > There is currently no way to edit the contents of an "xi:include" > element (e.g. insert an "xi:fallback" element). The reason is: XMLmind > XML Editor does not allow to edit the *physical* representation of XML. > For example, "xi:include" elements, just like namespace prefixes, only > exist at document load time and at document save time. > I don't need to edit the text/nodes of the "xi:include" element. It would be sufficient, if the XmlMind Editor would not choke on the input, report the file as valid XML, and display the "xi:fallback" content...such that it cannot be edited (the way we see referenced parts in modular documents, for example). > > > > Please find a short example attached, demonstrating the problem > (document is reported to be invalid). > > Any comments, tips and pointers are welcome... > > > > Your document is reported to be invalid because, when an "xi:include" > element cannot be transcluded (that is, replaced by the contents pointed > to), it is kept as is in the opened document. Your test document is a > DocBook v4.5 one. The DocBook v4.5 DTD does not allow to have > "xi:include" elements anywhere in the document. > This behaviour comes as a little surprise, from my point of view. At http://www.w3.org/TR/xinclude/#fallback_element in section "3.2 xi:fallback Element" it is stated that: "The xi:fallback element appears as a child of an xi:include element. It provides a mechanism for recovering from missing resources. When a resource error is encountered, the xi:include element is replaced with the contents of the xi:fallback element. If the xi:fallback element is empty, the xi:include element is removed from the result. If the xi:fallback element is missing, a resource error results in a fatal error." This is why I expect the "xi:include" to get replaced, in which case the document would get valid again. Best regards, Dirk Baechle -- Neu: GMX De-Mail - Einfach wie E-Mail, sicher wie ein Brief! Jetzt De-Mail-Adresse reservieren: http://portal.gmx.net/de/go/demail -- XMLmind XML Editor Support List [email protected] http://www.xmlmind.com/mailman/listinfo/xmleditor-support

