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 2002/04/11 10:36:47 UTC
DO NOT REPLY [Bug 7950] New: -
Empty complex type with mixed="true" allows non-whitespace characters.
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=7950>.
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=7950
Empty complex type with mixed="true" allows non-whitespace characters.
Summary: Empty complex type with mixed="true" allows non-
whitespace characters.
Product: Xerces2-J
Version: 2.0.0
Platform: PC
OS/Version: Windows NT/2K
Status: NEW
Severity: Normal
Priority: Other
Component: XML Schema Structures
AssignedTo: xerces-j-dev@xml.apache.org
ReportedBy: ksaito@jp.fujitsu.com
Following samples is parsed as valid.
XSD:
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="root">
<xs:complexType mixed="true"/>
</xs:element>
</xs:schema>
XML:
<root>text</root>
The <complexType> has mixed=true and no children. Then
the specification says
{content type}:
1.1 If one of the following is true
1.1.1 There is no <group>, <all>, <choice> or <sequence> among the [children];
-- snip --
, then empty; (*1)
I think above sample is not valid.
*1: http://www.w3.org/TR/xmlschema-1/#content_type
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-dev-help@xml.apache.org