On 3 Sep 2015, at 10:12, Hussein Shafie wrote:
On 09/03/2015 12:20 AM, Leif Halvard Silli (russisk.no) wrote:
But when I do, I am told that the xinclude
elements are illegal in the context.
[ ... snip ... ]
It's probably something very simple to solve such as forgetting to
specify the XInclude namespace. Example:
<xi:include href="../_tutorial/create_doc/index.html"
xpointer="create_doc"
xmlns:xi="http://www.w3.org/2001/XInclude" />
where xmlns:xi="http://www.w3.org/2001/XInclude" would be missing.
You were right. My error was that I used a deprecated namespace for
XInclude. That namespace is, however, anyhow supported by libxml2. The
deprecated namespace uses "2003" instead of "2001". It worked in the
libxml2 based implementation. But not in XXE.
It was a little hard to discover ...
Leif
--
XMLmind XML Editor Support List
xmleditor-support@xmlmind.com
http://www.xmlmind.com/mailman/listinfo/xmleditor-support