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

RE: Re: ASN.1 is an XML Schema Language (Encoding Control

  • To: "'Pete Kirkham'" <pete.kirkham@b...>, <xml-dev@l...>
  • Subject: RE: Re: ASN.1 is an XML Schema Language (Encoding Control
  • From: "Bob Wyman" <bob@w...>
  • Date: Thu, 6 Nov 2003 12:39:54 -0500
  • Importance: Normal
  • In-reply-to: <"031106132353Z.WT12372. 8*/PN=Pete.Kirkham/OU=Technical/OU=NOTES/O=BAe MAA/PRMD=BAE/ADMD=GOLD 400/C=GB/"@MHS>
  • Reply-to: <bob@w...>

asn.1 encoder
Pete Kirkham wrote:
> If the encoding was expressed in suitable form, then that 
> could be retrieved and compiled instead having a library 
> of native decoders.
See:
http://www.itu.int/ITU-T/studygroups/com17/languages/X.692-0203.pdf

If you use the ASN.1 Encoding Control Notation, you could can then
define your abstract syntax in ASN.1 and define your encoder/decoder
in Encoding Control Notation. The result is that you get XML, BER,
PER, etc. for free and you can use the ECN to generate
encoder/decoders for your special format. The really wonderful thing
about this is that your specification is "executable" and generates
encoder/decoders deterministically and automatically. The result is
that you don't have to suffer the normal delay between writing the
specification seeing the first implementations. The specification
itself *is* the first implementation! This massively decreases the
effort needed to support the new encoding and ensures that you have a
reference implementation immediately.

> Since one of the projects I work on has to support legacy text
files, 
> random formats from other tools, its own XMI data and SOAP messages 
> (which are essentially aliases of each other), I can think of one 
> use case for plugging encodings like this; but at the moment someone

> ends up writing the encoder manually, rather it being generated off 
> a concrete syntax description.
	If you were using ECN, then the process of coming to
"understand" the legacy format would be one of writing the ECN
definition for the encoding. To actually generate the
encoder/decoders, you would just compile the results of your research
on the legacy format. Thus, you wouldn't have people doing manual
construction of encoders any more and you would "debug" your
encoder/decoders by fixing the ECN specification, not the actual
source code...
	Also, assuming that part of this process was defining the
abstract syntax for the legacy format, it means that once you were
done, transformations to alternate encodings like BER, XML, PER, etc.
would be largely labor free.

		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.