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/03/10 15:41:09 UTC
DO NOT REPLY [Bug 17798] -
Content type of derived type (mixed/element-only)
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=17798>.
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=17798
Content type of derived type (mixed/element-only)
sandygao@ca.ibm.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
------- Additional Comments From sandygao@ca.ibm.com 2003-03-10 14:41 -------
If you read section 3.4.2 of the structure spec [1], look for 3.2.1 under
{content type} for complex content, you'll see:
"If the effective content is empty, then the {content type} of the type
definition resolved to by the actual value of the base [attribute]."
In your example, the effective content is empty, so the content type of the
base is used, which is mixed. The result is, the type for "myElem" has a type
with mixed content.
[1] http://www.w3.org/XML/Group/2002/09/xmlschema-1/structures-with-
errata.html#declare-type
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-dev-help@xml.apache.org