[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Last minute request for BASE64 section support in XML 1.0

  • From: "David G. Durand" <dgd@c...>
  • To: <xml-dev@i...>
  • Date: Tue, 10 Feb 1998 10:28:22 -0500

base64 xml
	From: Deke Smith <deke@t...>

	Don Park, donpark@q... said on 2/6/98 8:26 PM:

	>It looks like XML is about to be approved as standard by W3C.
Could we
	>please have BASE64 sections as a part of XML standard 1.0?
Everyone who
	>support this idea, please reply to this message (short replies
please to
	>avoid LISTRIVIA).

	Supported. If not officially accepted it WILL be used anyhow.

	Deke

This is silly. The specific proposal (a BASE64 marked section) _can't
be_ added at this point under the rules of the W3C. It's also unlikely
to fly in XML 1.1 for two reasons (which are more substantial
technical problems with the proposal as it stands):

  1. The proposed syntax is not compatible with SGML syntax, and can't
be made compatible without changes in SGML (violating the goals of the
XML project).

  2. The effect desired can be easily obtained in XML by the use of
NOTATION.

 For example:

<some-binary-element><![BASE64[ ..base64data..]]></some-binary-element>

could be replaced by (in the instance):
<some-binary-element>..base64data..</some-binary-element>

for a WF-checking application, the following DTD would be required:

<!attlist some-binary data-format NOTATION #FIXED "BASE64">

For validation, you'd have to declare the notation (by adding this to
the DTD or the internal subset):

<!NOTATION BASE64 "some URI for BASE64 encoding, determined by convention">

I may have made some detail mistakes, because I can't get to the
standard right now, but the basic point is that to handle base64
encoding (or any other encoding expressible in the XML character set)
you need only declare and attach a notation attribute.

If you don't like notation, you can even just use an attribute value
and keyword and skip the notation declaration. I don't remember the
character repertoire of BASE64, but the fact that it's email safe
means that the escaping issues are certainly no harer than those for
any XML text content.

If you really want to avoid escaping characters, you can use
references to external unparsed entities to avoid the problem altogether.


For the above reasons I expect that it _won't_ be used anyhow,
except by people who don't mind their documents being rejected by
conforming parsers. Given the presence of a simple way to do this
_inside_ XML, the need is unlikely to be regarded as being so
critical that conformance is irrelevant.

  -- David
------------------------------------------+----------------------------
David Durand                 dgd@c...| david@d...
Boston University Computer Science        | Dynamic Diagrams
http://www.cs.bu.edu/students/grads/dgd/  | http://dynamicDiagrams.com/
                                          | MAPA: mapping for the WWW



xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@i...
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/
To (un)subscribe, mailto:majordomo@i... the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo@i... the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@i...)


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.