[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

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

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!

[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]


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.