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/08/07 19:25:20 UTC

[Bug 3006] - Restricted type where the base type uses local element is not allowed

PLEASE DO NOT REPLY TO THIS MESSAGE. TO FURTHER COMMENT
ON THE STATUS OF THIS BUG PLEASE FOLLOW THE LINK BELOW
AND USE THE ON-LINE APPLICATION. REPLYING TO THIS MESSAGE
DOES NOT UPDATE THE DATABASE, AND SO YOUR COMMENT WILL
BE LOST SOMEWHERE.

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

*** shadow/3006	Mon Aug  6 13:14:55 2001
--- shadow/3006.tmp.19856	Tue Aug  7 10:25:19 2001
***************
*** 2,15 ****
  | Restricted type where the base type uses local element is not allowed      |
  +----------------------------------------------------------------------------+
  |        Bug #: 3006                        Product: Xerces-J                |
! |       Status: NEW                         Version: 1.4.2                   |
! |   Resolution:                            Platform: PC                      |
  |     Severity: Normal                   OS/Version: Windows NT/2K           |
  |     Priority: Other                     Component: Schema-Structures       |
  +----------------------------------------------------------------------------+
  |  Assigned To: xerces-j-dev@xml.apache.org                                  |
  |  Reported By: jslein@crt.xerox.com                                         |
- |      CC list: Cc:                                                          |
  +----------------------------------------------------------------------------+
  |          URL:                                                              |
  +============================================================================+
--- 2,14 ----
  | Restricted type where the base type uses local element is not allowed      |
  +----------------------------------------------------------------------------+
  |        Bug #: 3006                        Product: Xerces-J                |
! |       Status: RESOLVED                    Version: 1.4.2                   |
! |   Resolution: INVALID                    Platform: PC                      |
  |     Severity: Normal                   OS/Version: Windows NT/2K           |
  |     Priority: Other                     Component: Schema-Structures       |
  +----------------------------------------------------------------------------+
  |  Assigned To: xerces-j-dev@xml.apache.org                                  |
  |  Reported By: jslein@crt.xerox.com                                         |
  +----------------------------------------------------------------------------+
  |          URL:                                                              |
  +============================================================================+
***************
*** 94,96 ****
--- 93,110 ----
  </AGlobalElement2>
  </MyElementGlobals>
  -->
+ 
+ ------- Additional Comments From sandygao@ca.ibm.com  2001-08-07 10:25 -------
+ By looking at element "ALocalElement2" in type "RestrictedTypeLocals", I 
+ noticed that you didn't specify a type for this element, so the parser uses the 
+ default type: "xsd:anyType".
+ 
+ Now to make "RestrictedTypeLocals" validly derived 
+ from "BaseTypeLocals", "xsd:anyType" must be validly derived from "xsd:string", 
+ which is not true.
+ 
+ To solve the problem, simply provide a type for "ALocalElement2":
+   <xsd:element name="ALocalElement2" type="xsd:string"/>
+ 
+ Cheers,
+ Sandy Gao
\ 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