Alex Milowski wrote:
> 
> In theory, you should be able to have both of these in the same document:
> 
> <?xml version="1.0" encoding="ISO-8859-1"?>
> <!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
> "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd";>
> <article>
>   <phrase id="myprod">My New Product Name</phrase>
>   <phrase id="otherprod">My Other Product Name</phrase>
>   <title>Test</title>
> 
>   <sect1>
>     <title>Test</title>
> 
>     <para>First product <xi:include href="#myprod" 
> xmlns:xi="http://www.w3.org/2001/XInclude"/>.</para>
> 
>     <para>Second product <xi:include href="#otherprod" 
> xmlns:xi="http://www.w3.org/2001/XInclude"/>.</para>
>   </sect1>
> </article>
> 
> I was not able to make this work.  If I load the above into XML mind it 
> complains
> about an inclusion loop--which doesn't exist as the targets of the 
> inclusion
> is *not* an ancestor.
> 
> I also checked with a colleague of mine on the XML Core WG about this 
> and it is
> correct that this example should work.

Your colleague is right. This is a limitation of XXE that needs to be 
documented.


Reply via email to