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

Re: using schemaLocation to point multiple same namespaceschem

  • To: jeni@j...
  • Subject: Re: using schemaLocation to point multiple same namespaceschemas
  • From: "m batsis" <mbatsis@n...>
  • Date: Thu, 05 Sep 2002 12:54:52 +0300
  • Cc: dareo@m..., xml-dev <xml-dev@l...>
  • User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.1) Gecko/20020826

xsi schemalocation multiple

Hi Jenny,

Thanks for your reply. The spec seams a little contradictive to me, 
since it urges me to use

<p1:root xmlns:p1="NS_URI1"
  xsi:schemaLocation="NS_URI1 schemaLocation1"

to bind a schema (location) to a namespace URI, while allowing 
processors to ignore the second URI and try to resolve the schema using 
the first one... this does not "degrade well"...

Also: 
Jeni Tennison wrote:
[...]

> This option implies that if you already have a schema for a given
> namespace then there is no need to find another one.


True but different practices collide (see above).

What about the case of:

<p1:root xmlns:p1="URI1" xmlns:p2="URI2"
xsi:schemaLocation="URI1 schemaLocation1 URI2 schemaLocation2"

The mess is getting worse here... [1] says that

"The means used to locate appropriate schema document(s) are processor 
and application dependent, subject to the following requirements: "

Where requirement #3 says that for each pair of URIs in the 
schemaLocation attribute, the first is used as the namespace URI to bind 
the schema document to, and the second as the the schema document 
location. Also:

"Unless directed otherwise, for example by the invoking application or 
by command line option, processors should attempt to dereference each 
schema document location URI in the·actual value· 
<http://www.w3.org/TR/2001/REC-xmlschema-1-20010502/#key-vv> of 
such|xsi:schemaLocation|"[...]


[1] http://www.w3.org/TR/2001/REC-xmlschema-1-20010502/#schema-loc


Kindest regards,

Manos




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.