Hi Ramaswamy, The answer is the same for a VariableTypeValueField regardless of whether the "FieldName" references a file of the current information object class (as your earlier example did), or of a different information object class (as in this example). The literal application of X.681 9.8b indicates that the "OpenType" format should NOT be used, but that the default value for &var1 should be just the value notation for INTEGER (in this case just "0").
---------------------------------------------------------------------------- Paul E. Thorpe Toll Free : 1-888-OSS-ASN1 OSS Nokalva International: 1-732-302-0750 Email: [EMAIL PROTECTED] Tech Support : 1-732-302-9669 http://www.oss.com Fax : 1-732-302-0023 On Wed, 30 Jul 2003, Ramaswamy wrote: > Hi, > I wanted to define a class with variable type fields (both Value and ValueSet) > with DEFAULT values. I have some queries on the same. Pls observe the following > ASN.1 spec snippet > > -------------------------------------------------------------------------------- > > TID ::= CLASS > { > &Type DEFAULT INTEGER, > &id OBJECT IDENTIFIER UNIQUE > } > > PARAMS ::= CLASS > { > &type TID, > &var1 &type.&Type DEFAULT INTEGER:0, -- Value in OpenType notation > &Var2 &type.&Type DEFAULT {0|1|2|3|4}, -- Value/ValueSet in its pure form > } > > -------------------------------------------------------------------------------- > > > According to clause 9.8.b of X.681-0207, which say "if the > "ValueOptionalitySpec" is "DEFAULT Value", then the type field denoted by the > "FieldName" shall have a "TypeOptionalitySpec" of "DEFAULT Type", and "Value" shall > be a value of that type.". > > I request for clarification as to whether the value following the DEFAULT > keyword in the Variable Type field must be an OpenType Value (since a variable type > field becomes an opentype), or must be just a Value of the Type specified following > the DEFAULT keyword of the type field denoted by the FieldName (TID.&Type in the > above case). I infered that it must be the Value in its pure form since there would > be no notation to represent a ValueSet in the OpenType notation. Kindly confirm in > this regard. Thanking you. > > Yours Sincerely > Ramaswamy > > -------------------------------------------------------------------------------- > "Any intelligent fool can make things bigger, more complex, and more violent. It > takes a touch of genius -- and a lot of courage -- to move in the opposite > direction." - Albert Einstein > > -------------------------------------------------------------------------------- > Information contained and transmitted by this E-MAIL is proprietary to > Synergy Infotech Private Limited and is intended for use only by the > individual or entity to which it is addressed, and may contain information > that is privileged, confidential or exempt from disclosure under applicable > law. If this is a forwarded message, the content of this E-MAIL may not have > been sent with the authority of the Company. If you are not the intended > recipient, an agent of the intended recipient or a person responsible for > delivering the information to the named recipient, you are notified that any > use, distribution, transmission, printing, copying or dissemination of this > information in any way or in any manner is strictly prohibited. We have taken > precautions to minimize the risk of transmitting software viruses, but we > advise you to carry out your own virus checks on any attachment to this > message. We cannot accept liability for any loss or damage caused by software > viruses. If you have received this communication in error, please delete this > mail & notify us immediately at mailto:[EMAIL PROTECTED] >
