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

Re: How we can use targetNamespace?

From: <Dmitry_Trifonov@exigengroup.com>
Date: Thu, 18 Oct 2001 19:28:25 +0300
To: Eric van der Vlist <vdv@dyomedea.com>
Cc: "xmlschema-dev@w3.org" <xmlschema-dev@w3.org>
Message-ID: <OFDB518E5A.B05C7D16-ON43256AE9.005A3A76@int.exigengroup.ru>

Hello Eric,

By my mind we must explicitly use mechanisims defined in XML Schema -
<import> and <include> with "schemaLocation" attrobute to
reslove namespaces with schema files.



                    Eric van der                                                                                   
                    Vlist                To:     Dmitry_Trifonov@exigengroup.com                                   
                    <vdv@dyomedea.       cc:     "xmlschema-dev@w3.org" <xmlschema-dev@w3.org>                     
                    com>                 Subject:     Re: How we can use targetNamespace?                          
                    06:07 PM                                                                                       

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:29:02 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:14:54 UTC