On Wed, 27 Dec 2000, naoki hashimoto wrote:

> Hi:
>  
>  I do not understand CHOICE in below definition,
> (from ISO/WD 14827-2, P.19)
> 
> Time ::= SEQUENCE {
> time-Year-qty   INTEGER (-32768..32767) OPTIONAL,
> time-Second-qty INTEGER (0..60)         DEFAULT {0},
> 
> time-SecondFractions    CHOICE {               <-----
>     deci-seconds            INTEGER (0..9),
>     centi-seconds           INTEGER (0..99),
>     milliseconds            INTEGER (0..999),
>     ...}                    DEFAULT {0},       <-----

This default value is not valid ASN.1 for two reasons:  You must indicate
which field the value is for and should not have "{}" around to value.
For example: "DEFAULT milliseconds : 0" in place of the above would be
valid.

Paul
----------------------------------------------------------------------------
Paul E. Thorpe                                 Toll Free    : 1-888-OSS-ASN1
OSS Nokalva                                    International: 1-609-987-9073
Email: [EMAIL PROTECTED]                          Tech Support : 1-732-302-9669
http://www.oss.com                             Fax          : 1-732-302-0023

Reply via email to