Hello everyone,

The 2.2.1 schema validating sax parser rejects anonymous (no name 
attribute)complexType with final attribute in a schema (it also rejects 3 other 
attributes that are OK for named complex types).

The XML schema specification does not prohibit an anonymous complexType from 
having a final attribute (even though absurd since how can you derive a class 
from an unnamed class). 

Unless I missed something in my reading of the schema spec, since behaviour is 
not clearly speced out in this case, to ignore would be as valid as to throw an 
error. 

EXAMPLE I think this is legal by spec, but rejected by parser.

<?xml version="1.0" encoding="UTF-8"?>
<schema targetNamespace="urn:tl" xmlns="http://www.w3.org/2001/XMLSchema"; 
elementFormDefault="qualified"> 
        <element name="element_one">
                <complexType final="restriction">
                        <sequence>
                                <element name="child_one" type="string"/>
                                <element name="child_two" type="string"/>
                        </sequence>
                </complexType>
        </element>
</schema>

Did I overlook something, or should the schema folks tighten up the spec?

Regards, and thanks for your comments,
Thierry

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

Reply via email to