[Mono-bugs] [Bug 81129][Nor] Changed - XmlSchema:Duplicate id attribute (exception in mono - works in MS)

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Wed Mar 14 00:45:21 EDT 2007

Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by atsushi at ximian.com.


--- shadow/81129	2007-03-12 23:51:59.000000000 -0500
+++ shadow/81129.tmp.10123	2007-03-13 23:45:21.000000000 -0500
@@ -1,14 +1,14 @@
 Bug#: 81129
 Product: Mono: Class Libraries
 Version: 1.2
+OS: unknown
 OS Details: 
-Status: NEW   
+Status: RESOLVED   
+Resolution: NOTABUG
+Severity: Unknown
 Priority: Normal
 Component: Sys.XML
 AssignedTo: atsushi at ximian.com                            
 ReportedBy: mmorano at mikeandwan.us               
 QAContact: mono-bugs at ximian.com
 TargetMilestone: ---
@@ -102,6 +102,30 @@
 This is currently working unmodified on MS.Net.
+------- Additional Comments From atsushi at ximian.com  2007-03-13 23:45 -------
+<?xml version="1.0" encoding="utf-8"?>
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
+           targetNamespace="http://www.molecular.com/molecular.config"
+           xmlns="http://www.molecular.com/molecular.config"
+           elementFormDefault="qualified"
+           attributeFormDefault="unqualified"
+           id="molecular">
+It just works fine. So, at least you need a schema which exactly
+reproduce the issue, but I rather just close this NOTABUG issue as it
+is rather a bug in MS.
+Having duplicate IDs in a schema scope (schema set) should be regarded
+as invalid in System.Xml.Schema. Every other components than XmlSchema
+(i.e. XmlSchemaElement, XmlSchemaAttribute et.al.) are rejected when
+there is a duplicate ID.
+In XML Schema specification there is no mention on ID scope and schema
+set (ID in DTD is only scoped within a document), but since .NET
+rejects all other components but does not reject XmlSchema, it must be
+a bug due to the design.

More information about the mono-bugs mailing list