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

RE: using more then one schema within one XML


xsi nonamespaceschemalocation


> -----Original Message-----
> From: Chiusano Joseph [mailto:chiusano_joseph@b...] 
> Sent: Thursday, November 04, 2004 13:27
> To: pat; XML :: dev
> Subject: RE:  using more then one schema within one XML
> 
> 
> For W3C Schema, this is done using the xsi:schemaLocation and
> xsi:noNamespaceschemaLocation attributes. Please note that 
> some parsers
> ignore all occurrences past the first one.


My interpretation is that a parser should issue an error if it encounters an
"overriding" xsi:schemaLocation or xsi:noNamespaceSchemaLocation after it
has already used the first xsi:schemaLocation and
xsi:noNamespaceSchemaLocation:

---------------------
4 xsi:schemaLocation and xsi:noNamespaceSchemaLocation [attributes] can
occur on any element. However, it is an error if such an attribute occurs
after the first appearance of an element or attribute information item
within an element information item initially .validated. whose [namespace
name] it addresses. [...]   Although schema location attributes can occur on
any element, and can be processed incrementally as discovered, their effect
is essentially global to the .assessment.. Definitions and declarations
remain in effect beyond the scope of the element on which the binding is
declared.
---------------------

In other words, if a parser encounters a xsi:noNamespaceSchemaLocation at
some place, then validates an element with no namespace, then encounters
another xsi:noNamespaceSchemaLocation further on, it should issue an error.
Are you saying  that *some* parsers issue an error and some don't?  Or are
you saying that you would expect a parser to switch to the new "location"
indicated by the overriding xsi:schemaLocation or
xsi:noNamespaceSchemaLocation?

Alessandro Triglia


> 
> Kind Regards,
> Joseph Chiusano
> Booz Allen Hamilton
> Strategy and Technology Consultants to the World
>  
> 
> > -----Original Message-----
> > From: pat [mailto:pat@x...] 
> > Sent: Thursday, November 04, 2004 11:49 AM
> > To: XML :: dev
> > Subject:  using more then one schema within one XML
> > 
> > Hi All,
> > 
> > Is it possible to define more then one schema (DTD or 
> > XMLSchema or ...) within one XML document and mix them using 
> > namespaces ??? Something like:
> > <first:element/>
> > <second:element/>
> > 
> > Thanks to all
> > 
> >      Pat
> > 
> > 
> > -----------------------------------------------------------------
> > The xml-dev list is sponsored by XML.org 
> > <http://www.xml.org>, an initiative of OASIS 
> > <http://www.oasis-open.org>
> > 
> > The list archives are at http://lists.xml.org/archives/xml-dev/
> > 
> > To subscribe or unsubscribe from this list use the subscription
> > manager: <http://www.oasis-open.org/mlmanage/index.php>
> > 
> > 
> 
> -----------------------------------------------------------------
> The xml-dev list is sponsored by XML.org <http://www.xml.org>, an
> initiative of OASIS <http://www.oasis-open.org>
> 
> The list archives are at http://lists.xml.org/archives/xml-dev/
> 
> To subscribe or unsubscribe from this list use the subscription
> manager: <http://www.oasis-open.org/mlmanage/index.php>
> 
> 


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.