[Date Prev]
| [Thread Prev]
| [Thread Next]
| [Date Next]
--
[Date Index]
| [Thread Index]
Re: Can schemas be in the default namespace?
- From: Steinar Bang <sb@dod.no>
- To: xml-dev@lists.xml.org
- Date: Tue, 05 May 2015 23:12:00 +0200
>>>>> "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!
[snip!]
>> 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.
Ok.
[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.
Thanks!
>> 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.
Right!
> I hope this helps.
Very helpful! Thanks again!
[Date Prev]
| [Thread Prev]
| [Thread Next]
| [Date Next]
--
[Date Index]
| [Thread Index]