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/13 17:38:48 UTC

[Bug 2154] New: - type="string" allowed without schema prefix (no default xmlns)

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

*** shadow/2154	Wed Jun 13 08:38:48 2001
--- shadow/2154.tmp.15168	Wed Jun 13 08:38:48 2001
***************
*** 0 ****
--- 1,34 ----
+ +============================================================================+
+ | type="string" allowed without schema prefix (no default xmlns)             |
+ +----------------------------------------------------------------------------+
+ |        Bug #: 2154                        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                                   |
+ The following schema example parses without error, although the type="string" 
+ should report an undefined type. Correctly it would be type="xs:string":
+ 
+ 3_15si30.xsd
+ ============
+ <?xml version="1.0"?>
+ <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
+ 
+ <xs:element name="root" type="string"/>
+ 
+ </xs:schema>
+ 
+ 3_15si30.xml
+ ============
+ <?xml version="1.0"?>
+ <root xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+       xsi:noNamespaceSchemaLocation="3_15si30.xsd">
+ </root>
\ 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