W3C home > Mailing lists > Public > public-ws-media-types@w3.org > April 2005

Examples invalid?

From: Roger L. Costello <costello@mitre.org>
Date: Tue, 5 Apr 2005 09:13:34 -0400
Message-Id: <200504051313.j35DDYU19334@smtp-bedford-dr.mitre.org>
To: <public-ws-media-types@w3.org>
Cc: <costello@mitre.org>
Hi Folks,
 
I believe that the schemas in this document have some bugs.  For example, in
Example 1 there is:
 
<xs:element name="MyBinaryData"/>

I believe that the slash at the end should not be there.
 
All of the examples show a restriction of a simpleContent, e.g.,
 
    <xs:complexType name="JPEGPreferredPictureType">
        <xs:simpleContent>
            <xs:restriction base="xs:base64Binary" >
                <xs:attribute ref="xmlmime:contentType" use="required" />
            </xs:restriction>
        </xs:simpleContent>
    </xs:complexType>
 
I believe that it should an extension of a simpleContent, e,g,
 
    <xs:complexType name="JPEGPreferredPictureType">
        <xs:simpleContent>
            <xs:extension base="xs:base64Binary" >
                <xs:attribute ref="xmlmime:contentType" use="required" />
            </xs:extension>
        </xs:simpleContent>
    </xs:complexType>
 
All the examples have similar problems  /Roger
Received on Tuesday, 5 April 2005 13:13:38 GMT

This archive was generated by hypermail 2.2.0 + w3c-0.30 : Tuesday, 5 April 2005 13:13:38 GMT