W3C home > Mailing lists > Public > www-xml-xinclude-comments@w3.org > June 2003

Standalone nature of included documents

From: Peter McCracken <peterjm@ca.ibm.com>
Date: Thu, 5 Jun 2003 11:52:38 -0400
To: www-xml-xinclude-comments@w3.org
Message-ID: <OF607344C6.CC0843E9-ON85256D3C.005037C7@torolab.ibm.com>

Hello,

I was wondering what an XInclude processor's behaviour should be when
included documents contain qualified element names which use undefined
namespace prefixes. For instance:

file1.xml:
<p:root xmlns:p="http://www.example.org" xmlns:xi
="http://www.w3.org/2001/XInclude">
    <xi:include href="file2.xml"/>
</p:root>

file2.xml:
<p:child/>

In the above case, file2.xml would not be valid on its own, because the
prefix 'p' is undefined, and the [in-scope namespaces] is empty (except for
the implicit prefix). But when it is included into file1.xml, it would be
valid.

Is there a defined behaviour for this? Is the [in-scope namespaces] of the
include parent combined with the [in-scope namespaces] of the top level
included elements?

Thanks,
Peter McCracken
IBM Toronto Lab
Received on Thursday, 5 June 2003 11:53:17 GMT

This archive was generated by hypermail 2.2.0 + w3c-0.30 : Thursday, 9 June 2005 12:16:09 GMT