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/06/14 18:25:48 UTC

[Bug 2185] New: - attribute decl with type="garbage" not reporting error

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

*** shadow/2185	Thu Jun 14 09:25:48 2001
--- shadow/2185.tmp.19958	Thu Jun 14 09:25:48 2001
***************
*** 0 ****
--- 1,53 ----
+ +============================================================================+
+ | attribute decl with type="garbage" not reporting error                     |
+ +----------------------------------------------------------------------------+
+ |        Bug #: 2185                        Product: Xerces-J                |
+ |       Status: NEW                         Version: 1.4                     |
+ |   Resolution:                            Platform: PC                      |
+ |     Severity: Major                    OS/Version: Windows NT/2K           |
+ |     Priority: Other                     Component: Schema-Structures       |
+ +----------------------------------------------------------------------------+
+ |  Assigned To: xerces-j-dev@xml.apache.org                                  |
+ |  Reported By: mhuffman@ca.ibm.com                                          |
+ |      CC list: Cc:                                                          |
+ +----------------------------------------------------------------------------+
+ |          URL:                                                              |
+ +============================================================================+
+ |                              DESCRIPTION                                   |
+ In this example, an error should be reported that "xs:garbage" is an invalid 
+ type, but the test parses without error.
+ 
+ 3_2si49.xsd
+ ===========
+ <?xml version="1.0"?>
+ <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
+ 
+ <xs:element name="Root">
+   <xs:complexType>
+     <xs:attribute name="BadAttrib" type="xs:garbage"/>
+   </xs:complexType>
+ </xs:element>
+ 
+ </xs:schema>
+ 
+ 3_2si49.xml
+ ===========
+ <?xml version="1.0"?>
+ <Root xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+       xsi:noNamespaceSchemaLocation="3_2si49.xsd"/>
+ 
+ NOTE:
+ =====
+ If "BadAttrib" appears in the instance document as in:
+ 
+ <Root xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+       xsi:noNamespaceSchemaLocation="3_2si49.xsd"
+       BadAttrib="string"/>
+ 
+ the error produced is:
+ 
+ " Attribute "BadAttrib" must be declared for element type "Root". "
+ 
+ which is not the actual error.
+ 
+ (Also covers 3_2si33,3_2si48,3_2si50)
\ No newline at end of file

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-dev-help@xml.apache.org