[Mono-bugs] [Bug 82099][Nor] Changed - Whitespace not rejected if there's no content model

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Tue Jul 17 05:53:02 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 gert.driesen at pandora.be.

http://bugzilla.ximian.com/show_bug.cgi?id=82099

--- shadow/82099	2007-07-17 00:27:23.000000000 -0400
+++ shadow/82099.tmp.4945	2007-07-17 05:53:02.000000000 -0400
@@ -1,13 +1,13 @@
 Bug#: 82099
 Product: Mono: Class Libraries
 Version: 1.2
 OS: All
 OS Details: 
-Status: RESOLVED   
-Resolution: NOTABUG
+Status: REOPENED   
+Resolution: 
 Severity: Unknown
 Priority: Normal
 Component: Sys.XML
 AssignedTo: atsushi at ximian.com                            
 ReportedBy: gert.driesen at pandora.be               
 QAContact: mono-bugs at ximian.com
@@ -45,6 +45,30 @@
 So, to my understanding, the validation is ambiguously implemented in
 .NET. Based on the fact, I chose "harmless" direction i.e. do not
 reject possibly valid documents, than allowing possibly invalid documents.
 
 Unless there is misunderstanding or other reasons to fix this issue, I
 won't do anything.
+
+------- Additional Comments From gert.driesen at pandora.be  2007-07-17 05:53 -------
+Atsushi, these bugs do not contradict each other. In bug #77241, the 
+type's content is not empty (it's a sequence of "child" elements). 
+However, in bug #82099 the type has no content at all.
+
+AFAIK, the MS behaviour is correct. It also matches that of the Sun 
+JDK 1.5 Xml Validation implementation (javax.xml.validation). I also 
+get the same result using XML Spy.
+
+I've attached a gzipped tar that uses the Sun Xml Validation 
+implementation to validate the repros for bugs #71241 and bug #82099.
+
+This results in the following output:
+
+javac XsdValidator.java
+java -cp . XsdValidator bug77241.xsd bug77241.xml
+bug77241.xsd is valid.
+java -cp . XsdValidator bug82099.xsd bug82099.xml
+bug82099.xsd is not valid because
+cvc-complex-type.2.1: Element 'Customer' must have no character or 
+element information item [children], because the type's content type 
+is empty.
+


More information about the mono-bugs mailing list