W3C home > Mailing lists > Public > xmlschema-dev@w3.org > October 2001

Re: How we can use targetNamespace?

From: Eric van der Vlist <vdv@dyomedea.com>
Date: Thu, 18 Oct 2001 17:07:31 +0200
Message-ID: <3BCEF033.1010108@dyomedea.com>
To: Dmitry_Trifonov@exigengroup.com
Cc: "xmlschema-dev@w3.org" <xmlschema-dev@w3.org>
Dmitry_Trifonov@exigengroup.com wrote:

> Hello all,
> Now I see  - "What is targetNamespace for." (See below)
> But I have one important question - "How we can use it? or For which
> purposes we will use targetNamespace?"

I have tried to explain this in my tutorial:


> Another question: "How namespace http://example.org/demos resolved to
> schema file? By my mind namespace is unique identifier only."

Yet another controversial question ;=) I'll try to be as objective as 

You're right but nothing is explicitely forbidding to publish a document 
at the location pointed by the namespace URI.

The rec mentions 3 ways to bind a schema to a namespace:

1.) In the instance document using xsi:schemaLocation.

2.) Giving the location as a parameter to the schema processor which you 
are using (with a tool dependent syntax).

3) A schema processor may also try (for instance if none of 1. or 2. are 
used) to retrieve what may available at the location pointed by the 
namespace name to see if, by chance, there wouldn't be a schema there.

Hope this helps.


> Best Regards,
> Dmitry Trifonov
> Exigen Group (Saint-Petersburg)

Rendez-vous  Paris pour le Forum XML.
Eric van der Vlist       http://xmlfr.org            http://dyomedea.com
http://xsltunit.org      http://4xt.org           http://examplotron.org
Received on Thursday, 18 October 2001 11:07:10 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:55:53 UTC