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 2003/05/05 15:32:18 UTC
DO NOT REPLY [Bug 19532] -
base - extension - restriction error
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=19532>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=19532
base - extension - restriction error
sandygao@ca.ibm.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
------- Additional Comments From sandygao@ca.ibm.com 2003-05-05 13:32 -------
The schema is indeed invalid.
In xerces-bug.xsd (I hate this file name ;-) ), you have
> attributeFormDefault="unqualified"
which means local attribute declarations in this schema document don't have a
target namespace. Specifically, the "foo" attribute doesn't have a namespace.
And in xerces-bug2.xsd, you have
> targetNamespace="urn:rs.bateconsulting.com"
> attributeFormDefault="qualified"
which means local attribute declarations in this schema document have the
target namespace "urn:rs.bateconsulting.com". So all "foo" attributes have this
namespace.
Now you see the mis-match of the namespace of the "foo" attributes in the
derived types from that in the base type, which is why Xerces reports the
errors.
> Both of these schemas are acceptable to XMLSPY 5.4 and XSV.
This has nothing to do with whether Xerces is doing the right thing. :-)
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-dev-help@xml.apache.org