Sorry for being so late to answer: I was in vacations for the last 2 weeks.

As described in 
http://www.xmlmind.com/xmleditor/_distrib/docs/help/ar01s07s01.html#managedUnmanaged
 
, "Currently, XXE only knows how to preserve the physical structure of 
xi:include elements pointing to a *single element*".

However in your case, the solution is easy. Simply replace <xi:include 
href="test2.xml" .../> by <xi:include href="test2.xml#element(/1)" 
.../>. "#element(/1)" is an XPointer pointing to the root element of 
test2.xml.

PS: At least for XXE, there is no need to declare xi:include and 
xi:fallback in the DTD.

Cameron Shorter wrote:
> Not sure if this is a feature or bug, but it took me a while to work it out.
 >
> I've been trying out the new modular doc features in V2.4.
> When I put at comment at the end of an included section, I get:
> "Document ...test/test1.xml contans references such as <xi:include 
> href='test2.xml'/> which are not managed by XMLmind XML Editor.
> ...
> 
> Attached are files required to reproduce the problem.
> 
> ------------------------------------------------------------------------
> 
> <?xml version="1.0" encoding="UTF-8"?>
> <!DOCTYPE section PUBLIC "-//OASIS//DTD Simplified DocBook XML V1.0//EN"
> "http://www.oasis-open.org/docbook/xml/simple/1.0/sdocbook.dtd"; [
> <!ENTITY % xinclude PUBLIC "-//NONAME//ELEMENTS DocBook XInclude 
> extension//EN" "xinclude.mod">
> %xinclude;
> <!ENTITY % entities SYSTEM "resources/entities.ent">
> %entities;
> ]>
> <section id="test1">
>   <title>Jalopy</title>
> 
>   <para>Bla bla bla</para>
> 
>   <xi:include href="test2.xml"
>   xmlns:xi="http://www.w3.org/2001/XInclude";></xi:include>
> 
> </section>
> <!-- Keep this comment at the end of the file
> Local variables:
> mode: xml
> sgml-default-dtd-file: "sectionxincl.ced"
> sgml-ecat-files: nil
> End:
> -->
> 
> 
> ------------------------------------------------------------------------
> 
> <?xml version="1.0" encoding="UTF-8"?>
> <!DOCTYPE section PUBLIC "-//OASIS//DTD Simplified DocBook XML V1.0//EN"
> "http://www.oasis-open.org/docbook/xml/simple/1.0/sdocbook.dtd";>
> <section id="test2">
>   <title>Section 2</title>
> 
>   <para>xaaxx</para>
> </section>
> <!-- The comment at the end causes problems
> -->
> 
> 
> ------------------------------------------------------------------------


Reply via email to