You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by bu...@apache.org on 2001/02/26 22:31:47 UTC

[Bug 719] New - incorrect validation of content model when mixed="true"

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=719

*** shadow/719	Mon Feb 26 13:31:47 2001
--- shadow/719.tmp.20171	Mon Feb 26 13:31:47 2001
***************
*** 0 ****
--- 1,46 ----
+ +============================================================================+
+ | incorrect validation of content model when mixed="true"                    |
+ +----------------------------------------------------------------------------+
+ |        Bug #: 719                         Product: Xerces-J                |
+ |       Status: NEW                         Version: 1.3.0                   |
+ |   Resolution:                            Platform: PC                      |
+ |     Severity: Normal                   OS/Version:                         |
+ |     Priority: Medium                    Component: Schema-Structures       |
+ +----------------------------------------------------------------------------+
+ |  Assigned To: xerces-j-dev@xml.apache.org                                  |
+ |  Reported By: mhuffman@ca.ibm.com                                          |
+ |      CC list: Cc:                                                          |
+ +----------------------------------------------------------------------------+
+ |          URL:                                                              |
+ +============================================================================+
+ |                              DESCRIPTION                                   |
+ IBM Test Cases: ibm4_3_2ii03, ibm4_3_2ii05, ibm4_3_2ii10
+ 
+ The elements in a content model of a complexType with mixed="true" are not 
+ validated properly in the instance document.
+ 
+ Ex. schema
+ ==========
+ <element name="root">
+   <complexType mixed="true">
+     <element name="child" type="string"/>
+   </complexType>
+ </element>
+ 
+ Ex. instance #1
+ ===============
+ <root>
+ This will validate OK.
+ </root>
+ 
+ Ex. instance #2
+ ===============
+ <root>
+ This will also validate OK.
+   <child>Fred</child>
+   <child>Barney</child>
+ </root>
+ 
+ In the example schema, <child> is required to appear exactly once inside <root>.
+ In the example instances, it appears 0 and 2 times, and the parser does not 
+ report an error in either case.