W3C home > Mailing lists > Public > xmlschema-dev@w3.org > March 2005

rules for handling document elements not in the target namespace?

From: Bryan Rasmussen <brs@itst.dk>
Date: Thu, 31 Mar 2005 15:53:05 +0200
Message-ID: <D45A5694803BE943BA46F9A7262BF83D12370E@its42.itst.local>
To: "'xmlschema-dev@w3.org'" <xmlschema-dev@w3.org>

Hi, I have a schema in namespace X that validates one global element, in
order to test that element I went ahead and put various versions of the
element in a document with a document element in a different namespace, most
processors reacted fine with that and told me that my proper examples were
correct and my bad examples were incorrect. 
XMLSPY however got upset that the document element was not validated in my

as a second test I then created an instance consisting only of a document
element not in the target namespace of the schema which XMLSPY also reported
as being invalid because of the document element not being validated by the

A co-worker said that this was because doing so was optional by the spec, by
my memory this was not one of the optional sections. I've looked but of
course the spec is rather large, can someone point me to the optional part
of the spec on this matter or give me some backup on its not being optional
if indeed it isn't. 
Received on Thursday, 31 March 2005 14:00:12 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:56:07 UTC