XML.orgXML.org
FOCUS AREAS |XML-DEV |XML.org DAILY NEWSLINK |REGISTRY |RESOURCES |ABOUT
OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]
RE: [xml-dev] ID Conflicts in Namespaces.

Yes, it's an error.

There aren't two schemas, there is only one. A schema is a collection of
schema components and they can be drawn from more than one schema document.

Michael Kay
http://www.saxonica.com/ 

> -----Original Message-----
> From: Ben Trafford [mailto:ben@prodigal.ca] 
> Sent: 18 August 2006 00:00
> To: xml-dev@lists.xml.org
> Subject: [xml-dev] ID Conflicts in Namespaces.
> 
> 
> 	(Woo! Looks like XML-DEV is back!)
> 
> 	Hi!
> 
> 	I have a question. To illustrate it, take a look at this markup:
> 
> <document xmlns="http://www.example.com/document"; 
> xmlns:sample="http://www.sample.com/sample";>
> 	<paragraph id="one">This is a sample paragraph.</paragraph>
> 	<sample:text id="one">This is another sample 
> paragraph.</sample:text> </document>
> 
> 	Let's assume that the schema for the "document" said 
> that the "id" 
> attribute on "paragraph" was is an ID (as in the attribute type). 
> Let's also assume that the schema for the "sample" said that the "id" 
> attribute on "text" is an ID.
> 
> 	Should a validation tool flag an error (e.g. using two 
> identical IDs in one document)?
> 
> 	I don't think it ought to (since it's one document, but 
> two different schemas), but I also think of 
> namespace-qualified document fragments as being islands in 
> and unto themselves.
> 
> 	Anybody got any ideas? And pointers to specifications 
> that define what ought to be happening here?
> 
> --->Ben
> 
> 
> -----------------------------------------------------------------
> 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>
> 



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 1993-2007 XML.org. This site is hosted by OASIS