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

Re: ASN.1 and XML

  • From: "Thomas B. Passin" <tpassin@h...>
  • To: xml-dev@l...
  • Date: Mon, 28 May 2001 10:18:49 -0400

convert asn.1 to xml
[Al Snell]

> 1) It's currently mandatory in ASN.1 that types have names starting with a
> capital letter, and values with a small letter. sually, value names map to
> XML element names - the things compromising an Address-typed element are
> called street city, and postcode so the elements are named after that,
> not "String". This is fine when you're encoding something with ASN.1 roots
> in XML, but how does that cope with an existing XML schema using capital
> letters on things that you convert to ASN.1? The case-of-first-letter
> thing will probably be dropped from "requirement" to "stylistic
> recommendation".
>

Yes, the case/naming can be a little iffy for automated processing.  Those
lower-case slots are really type labels too, as I understand it, aren't
they?  They will be assigned values in an instance but they are types in the
schema.  The difference is that they are locally-defined type labels whose
scope is limited, and they are used to define the type of a slot, not to
name an entire type definition.

BTW, Al, maybe you're the one to answer this, I've been wondering about it.
In view of the mandatory upper/lower case naming requirements, how can
someone create ASN.1 labels in a language that does not make that
distinction?  Or are you simply not allowed to name types using such
characters at all (which isn't so good for internationalization, I would
thnk)?

Cheers,

Tom 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-2011 All Rights Reserved.