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

RE: ASN.1 is an XML Schema Language (Fix those lists!)and Bina


how asn.1 works
Robin Berjon wrote:
> An XML parser can successfully read anything produced based 
> on an XML schema language (not to mention all that can be 
> done without any schema) -- unless that schema language is 
> ASN.1 (which could be an argument for saying it isn't exactly 
> an XML schema language).
	Just because ASN.1 works with encodings other than XML doesn't
mean it is any less useful in describing XML. The fact that it works
with other encodings doesn't make it less of an "XML Schema Language."
Also, it can be argued that ASN.1 works *better* with XML than some
things popularly considered to be "XML Schema Languages" since ASN.1
supports a wider range of XML encoding possiblities than some (but not
all) of the others do.
	The issue you mention, is with the encodings -- not the
abstract syntax. Certainly, an XML parser can't "read anything
produced based on" some encoding other than XML. It doesn't matter if
that non-XML encoding was produced by something from the ASN.1 suite
or something entirely different (e.g. XDR).

> If all you have is an ASN.1 schema, and you're on the 
> receiving side, you don't know what you're going to get. 
> If it's an ER you don't know about you won't read it.
	Right. Once you have choice, you need to have a way of
discovering what choices were made. You need a way to tag an encoding
with its type. This is not a problem unique to the encodings defined
by ASN.1. The same problem will arise with *any* alternative encoding
of XML data -- including all the various proposals for a "binary XML."
This will even be true if "binary XML" is simply zipped text.
	These days, we tend to use MIME types for this sort of thing.
That's why I've begun a discussion on the asn1xml mailing list to work
up a proposal for registering MIME types for the various encodings
defined in ASN.1 land.

		bob wyman



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.