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

Re: SchemaLocation: schemaLocation value = 'myschema.xsd' must have even number of URIs.

From: Mgr Georg Black <georg.black@seznam.cz>
Date: Fri, 4 Oct 2002 01:32:59 -0400 (EDT)
To: Jeni Tennison <jeni@jenitennison.com>
Cc: xmlschema-dev@w3.org
Message-Id: <5418.16941-24429-12678950-1033709564@seznam.cz>




Dne 3. říjen 2002, Jeni Tennison, <jeni@jenitennison.com> napsal:

Hi Jeni,
I like you. Thanks for you help again.
Have a nice day and weekend.
Georg Black.


> Hi Georg,
> 
> > I am trying to use namespaces. If I changed atribute
> > xsi:noNamespaceSchemaLocation to xs:scheamLocation and wrote
> > targetNameSpace to .xsd file I get this mistake from my
> > parser(Java-Xeres 2.0.0).
> >
> > SchemaLocation: schemaLocation value = 'myschema.xsd' must have even
> > number of URIs.
> >
> > What is wrong?
> 
> The xsi:schemaLocation attribute works a bit differently from the
> xsi:noNamespaceSchemaLocation attribute. It takes *pairs* of values in
> which the first value is a namespace URI and the second value is the
> location of the schema for that namespace, separated by whitespace. So
> you need it to look like:
> 
>   xsi:schemaLocation="http://www.example.com/namespace
>                       myschema.xsd"
> 
> instead, where "http://www.example.com/namespace" is whatever target
> namespace you're now using in your schema.
> 
> Cheers,
> 
> Jeni
> 
> ---
> Jeni Tennison
> http://www.jenitennison.com/
> 
> 

______________________________________________________________________
Reklama:
WWW stranky zdarma na http://www.sweb.cz
Received on Friday, 4 October 2002 06:18:50 GMT

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