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

Re: xsi:schemalocation vs. xsi:nonamespaceschemalocation

From: Jeni Tennison <jeni@jenitennison.com>
Date: Wed, 20 Mar 2002 09:50:27 +0000
Message-ID: <164254774476.20020320095027@jenitennison.com>
To: "Manav Singal" <manav_singal@infy.com>
CC: xmlschema-dev@w3.org, David_E3@Verifone.Com
Hi Manav,

> We are faced with big confusion that if a XML document has
> xsi:noNamespaceSchemaLocation, then Schema used for creation of this
> XML doc needs to have targetNamespace or not.

It's fairly straight-forward:

  - if the schema has a target namespace, then you must use
    xsi:schemaLocation to locate it
    
  - if the schema has not got a target namespace, then you must use
    xsi:noNamespaceSchemaLocation to locate it

Cheers,

Jeni

---
Jeni Tennison
http://www.jenitennison.com/
Received on Wednesday, 20 March 2002 05:10:02 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:14:30 GMT