Proposed changes for Media Types Note

Based on the input we received from Joe Fialli [1] with respect to data
binding and the media types note[2], I would like to propose the
following changes to the media types note. Note that this is an agenda
item for the upcoming f2f meeting[3]. 

Add the following paragraph to Section 3.1 (after the third paragraph)
{The xmime:expectedContentType attribute may be used  in conjunction
with either type or element declarations. In order to facilitate tools
that enable static binding of XML datatypes to programming language
constructs, xmime:expectedContentTypes attribute is RECOMMENDED to be
declared within a complexType declaration that is derived from
xs:base64Binary or xs:hexBinary only when the element declaration
utilizes a named complexType instead of annotating a binary element
declaration that uses the complexType definition. An example is provided
in Example 6} 

Change the contents of Example 6 from 

<xs:complexType name="JPEGPreferredPictureType"> 
     <xs:simpleContent> 
         <xs:restriction base="xmime:base64Binary" > 
             <xs:attribute ref="xmime:contentType" use="required" />
        </xs:restriction>
    </xs:simpleContent> 
</xs:complexType> 
<xs:element name="JPEGPeferredPicture"
type="tns:JPEGPreferredPictureType" 
xmime:expectedContentTypes="image/jpeg;q=1.0, image/tiff;q=0.8"/> 

To 

<xs:complexType name="JPEGPreferredPictureType"
    xmime:expectedContentTypes="image/jpeg;q=1.0, image/tiff;q=0.8"/> 
     <xs:simpleContent> 
         <xs:restriction base="xmime:base64Binary" > 
             <xs:attribute ref="xmime:contentType" use="required" />
        </xs:restriction>
    </xs:simpleContent> 
</xs:complexType> 
<xs:element name="JPEGPeferredPicture"
type="tns:JPEGPreferredPictureType" />

Please send comments to the list prior to the f2f meeting.  

--umit



[1] http://lists.w3.org/Archives/Member/w3c-ws-desc/2005Mar/0017.html
[2]
http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/media-types/xml-media-t
ypes.html?content-type=text/html;%20charset=utf-8
[3] http://lists.w3.org/Archives/Public/www-ws-desc/2005Apr/0088.html

Received on Saturday, 16 April 2005 00:27:03 UTC