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

Re: Notations

  • From: "Eddie Sheffield" <eddie.sheffield@e...>
  • To: xml-dev@i...
  • Date: Mon, 14 Dec 1998 14:11:48 -0500

zipping with base64 encoding


roddey@u... wrote:

> "For example, assuming MIDI data is binary, it might carry two notations.
>  The first would indicate that it is base64-encoded -- remember that this
> is still character data -- and the second would indicate that it is MIDI
> data.  Based on the first notation, the application would pass the
> character data to a base64 decoder to translate it to binary.  Based on the
> second notation, the application would pass the now-binary data to a MIDI
> application, which could play it for your enjoyment."
>
> Just from a practical standpoint though, if you found an element that had
> say three notations. One said it was MIDI, one said it was Base64, and one
> said it was zipped. Was it base64'd then zipped, or zipped then base 64'd?
> How would one indicate the ordering of original transformations in such a
> situation, so that it could be untransformed correctly back?

Technically, you have a good point. And in some instances it could be a major
issue. In practice, this might not be too big of a concern in most instances just
because of usual conventions. In your example, the base64 would almost by
definition be the last transform done because that's how it was made easily
transportable via a text (XML) file. Just like an email attachment, you don't
base64 then zip - it defeats the purpose of the base64 encoding. Likewise with a
zip notation. Zipping is usually the last step before preparing a file for
archiving or transport (subject to a transport encoding like base64). Of course,
all this means nothing to a parser, but to an application that understands the
notations at all, it would have to be assumed that the application understands an
expected encoding transformation sequence as well.

For those applications where it would be a problem, perhaps some kind of nesting
of elements would be possible, each indicating the encoding of the next nested
element.

Eddie Sheffield



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.