OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]
Re: Can schemas be in the default namespace?

>>>>> "G. Ken Holman" <gkholman@CraneSoftwrights.com>:
> At 2015-05-05 14:15 +0200, Steinar Bang wrote:

>> Is it legal to do this?
>> <schema xmlns="http://www.w3.org/2001/XMLSchema";>
>> ...
>> </schema>

> Yes.

Ok, thanks!

>> Ie. they have set xmlns="http://www.w3.org/2001/XMLSchema"; (and
>> xmlns:xsd="http://www.w3.org/2001/XMLSchema.xsd"; as well, though the
>> "xsd:" prefix isn't used anywhere I could see).

> Not a problem.


[snip! eclipse WTP error message]
> That sounds like a bug as if they were expecting prefix-based
> properties.

Ok, it sounds like a bug in eclipse.  I will report that if I can make a
simple repro of it.


>> The XSLT-based XSD to RNG converter[3] says:
>> error on line 11 at column 37: xml namespace URI cannot be the
>> default namespace

> I understand the wording of that message to be talking about the
> namespace used for xml:space= and xml:lang=, not the namespace for
> XSD.  One isn't allowed to declare the namespace for the "xml:"
> prefix.

Hm... OK I'll study the schema more carefully with this in mind.

> "Tickle"?  No ... wholesale edit removing the use of the default
> namespace in order to accommodate a buggy validator.

(Yup, I've already tried something of the kind, so far without success
and with very obscure error messages, something gone wrong in my
regexp-replace but it hasn't been easy to say what)

>> Is the problem that both the outer schema and the imported schema
>> uses "xmlns="?

> It is difficult to understand the "bug emulation mode" of a
> non-conformant processor.


> I hope this helps.

Very helpful!  Thanks again!

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 1993-2007 XML.org. This site is hosted by OASIS