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=3228

*** shadow/3228 Wed Aug 22 09:27:13 2001
--- shadow/3228.tmp.25819       Thu Aug 23 01:50:46 2001
***************
*** 2,9 ****
  | Re-usable XML Schema attribute groups are not being evaluated correctly.   |
  +----------------------------------------------------------------------------+
  |        Bug #: 3228                        Product: Xerces-J                |
! |       Status: RESOLVED                    Version: 1.4.2                   |
! |   Resolution: INVALID                    Platform: Other                   |
  |     Severity: Major                    OS/Version: Other                   |
  |     Priority: Other                     Component: Schema-Structures       |
  +----------------------------------------------------------------------------+
--- 2,9 ----
  | Re-usable XML Schema attribute groups are not being evaluated correctly.   |
  +----------------------------------------------------------------------------+
  |        Bug #: 3228                        Product: Xerces-J                |
! |       Status: REOPENED                    Version: 1.4.2                   |
! |   Resolution:                            Platform: Other                   |
  |     Severity: Major                    OS/Version: Other                   |
  |     Priority: Other                     Component: Schema-Structures       |
  +----------------------------------------------------------------------------+
***************
*** 182,184 ****
--- 182,220 ----
  namespace, but your instance document has them in no namespace.  If you change
  the document to use a prefix for the http://adwuk007/XMLSchema/Test namespace
  and prefix the attributes then the document will validate.
+ 
+ 
+ ------- Additional Comments From [EMAIL PROTECTED]  2001-08-23 01:50 -------
+ Thanks for your swift response.
+ I've reviewed your comments and proposed resolution however the schema includes 
+ the attributeFormDefault attribute in the schema which is set to "unqualified". 
+ This means I shouldn't have to prefix attributes. I have to declare a non-
+ prefixed namespace in the schema otherwise the schema is invalid.
+ 
+ If I change the schema to the following, removing the reusable attribute group, 
+ then the document validates. I think this clearly shows that re-usable 
+ attribute groups are not being evaluated correctly.
+ 
+ 
+ <?xml version = "1.0" encoding = "UTF-8"?>
+ <xsd:schema xmlns = "http://adwuk007/XMLSchema/Test"; 
+           xmlns:xsd="http://www.w3.org/2001/XMLSchema";
+           targetNamespace = "http://adwuk007/XMLSchema/Test";
+           version = "5.0"
+           elementFormDefault = "unqualified"
+           attributeFormDefault = "unqualified">
+ 
+ 
+       <xsd:element name = "Voice">
+               <xsd:complexType>
+                       <xsd:attribute name = "countryCode" type 
+ = "xsd:nonNegativeInteger" use = "required"/>
+                       <xsd:attribute name = "areaCode" type 
+ = "xsd:nonNegativeInteger" use = "required"/>
+                       <xsd:attribute name = "number" type 
+ = "xsd:nonNegativeInteger" use = "required"/>
+                       <xsd:attribute name = "leaveMessage" type 
+ = "xsd:boolean" default = "false"/>
+               </xsd:complexType>
+       </xsd:element>
+ </xsd:schema>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to