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

No Subject

  • From: Charles Reitzel <creitzel@m...>
  • To: xml-dev@i...
  • Date: Wed, 14 Apr 1999 12:20:06 -0400 (EDT)

asn data types
I saw this comment and felt compelled to share my thoughts.  While I agree
data type inheritance is a useful thing, it seems outside the scope of XML.
But there are alternatives.

David Megginson wrote:
>Universal names (as in "Namespaces in XML") get you part way there,
>because different document types can share semantics of well-known
>element types: 

... namespace example <html:title> snipped ...

>What's really useful, though, is to develop some kind of inheritance
>scheme, so that you can say "this is just like an html:title, except
>that it's also a little more specialised".  Architectural forms
>provide a very lightweight mechanism for this; XML Schemas will
>probably provide another.

I would suggest to folks who need this level of data type reuse and/or
sophistication that they look into ASN.1.  This is the ISO data type
definition language used to define the SSL, SNMP, X.500 and LDAP protocols.
The language itself is very general and has many benefits.  It supports all
the basic data types and compound data types (i.e. C++ structs).  It
supports inheritance for the same. There is a global object namespace
(Object ID, or OID for short), wherein each firm or organization can
register a base ID namespace in which all "custom" object types can be
defined.  Thus, they (the ISO) have solved both the FPI and namespace
problems that has caused XML-Dev'ers so much grief.  Perhaps most important,
all datatypes defined using ASN.1 have a standard, unambiguous method of
encoding the data for transmission on the wire.  These rules are known as
the "Basic Encoding Rules", or BER, of ASN.1.

Certainly, a general ASN.1 parser is non-trivial.  The subset required for
any given protocol (e.g. LDAP) is easy enough, however.  Basically, ASN.1
statements can be understood as a simple, elegant DTD language.  The
"document" equivalent is not text, but the binary image defined by applying
the BER to ASN.1 datatypes.  In this context, ASN.1 itself doesn't need a
mime type.  But the protocols developed with ASN.1 do.

So, I would use well-formed XML for basic, web based data transfer.
Schemas/DTD/SGML for complex document work.  LDAP/X.500 for inter-operable
data exchange.  SNMP for inter-operable device/application management.
ASN.1 based private protocol for custom application work.

Best regards,
Charles Reitzel


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/ and on CD-ROM/ISBN 981-02-3594-1
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...)


  • Follow-Ups:
    • Re: ASN.1
      • From: David Brownell <david-b@p...>

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.