W3C home > Mailing lists > Public > public-ws-media-types@w3.org > November 2004

Using xmlmime:contentType without XML Schema

From: John Cowan <jcowan@reutershealth.com>
Date: Wed, 3 Nov 2004 14:08:54 -0500
To: public-ws-media-types@w3.org
Message-ID: <20041103190854.GM29892@skunk.reutershealth.com>

The introduction to the 2 November 2004 Last Call WD of "Assigning Media
Types to Binary XML" states that XML Schema is not required in order to
make use of the xmlmime:contentType attribute.

Unfortunately, without type information it is not possible to reliably
distinguish between elements with base64 binary and hex binary content:
for example, the content "0000" decodes to the octets "0x00 0x00" in
hex binary, but "0xD3 0x4D 0x34" in base64 binary.

Therefore, either an xmlmime:contentTransferEncoding is required for
schema-free operations, or the recommendation should specify the use of
xsi:type with the values "xs:base64Binary" and "xs:hexBinary" for use
in schema-free operations.

I would prefer the latter alternative.

-- 
My confusion is rapidly waxing          John Cowan
For XML Schema's too taxing:            jcowan@reutershealth.com
    I'd use DTDs                        http://www.reutershealth.com
    If they had local trees --          http://www.ccil.org/~cowan
I think I best switch to RELAX NG.
Received on Wednesday, 3 November 2004 19:09:23 GMT

This archive was generated by hypermail 2.2.0 + w3c-0.29 : Thursday, 13 January 2005 12:08:52 GMT