>>For example, 4) is equivalent to the notation DummyString4 ::= IA5String(SIZE(4)).
FROM(SIZE(4)) in my opinion is that the maximum size is 4 which is not quite equivalent to (SIZE(4)) where the size has to be exactly 4.
-Cheers-
Salim Mounir Alaoui, Ph.D.
WangHao <[EMAIL PROTECTED]> wrote:
Hi,The clause 47.7.1 of X.680 says_________________________________________________________________________________The "PermittedAlphabet" notation shall bePermittedAlphabet ::= FROM Constraint.________________________________________________________________________________The clause 47.7.3 of X.680 specifies________________________________________________________________________________The "Constraint" is any which couldbe applied to the parent type (Table 9), except that it shall usethe "SubtypeConstraint" alternative of "ConstraintSpec".________________________________________________________________________________So, the following forms of permitted alphabet constraints are allvalid according to 47.7.3:1)DummyString1 ::= IA5String (FROM("A".."B")) -- value range form2)DummyString2 ::= IA5String (FROM("A")) -- single value form3)DummyString3 ::= IA5String (FROM(INCLUDES DummyStringType))-- contained type formDummyStringType ::= IA5String (FROM("abcd"))(SIZE(4))4)DummyString4 ::= IA5String (FROM(SIZE(4))) -- size constraint form5)DummyString5 ::= IA5String (FROM(PATTERN "[a-z]+"))However, as this subtype element implies, permitted alphabet selects the charaterswhich are allowed to be used to construct strings of the new constrained type. So,I think that only 1) and 2) make sense. 3),4) and 5) are equivalent to the contraintswithin the PermittedAlphabet notation.For example, 4) is equivalent to the notation DummyString4 ::= IA5String(SIZE(4)).So, my question is why not change the clause 47.7.3 of X.680 into the following statement:"The 'contraint' is only limited to the single value, the contained subtype and the value rangeor set arithmetic of them" ?Author Name: Wang Hao_______________________________________________
Phone:+86-755-89650628
EMail:[EMAIL PROTECTED]
*****************************************************************
This e-mail and its attachments contain confidential information from HUAWEI, which is intended only for the person or entity whose address is listed above. Any use of the information contained herein in any way (including, but not limited to, total or partial disclosure, reproduction, or dissemination) by persons other than the intended recipient(s) is prohibited. If you receive this e-mail in error, please notify the sender by phone or email immediately and delete it!
*****************************************************************
ASN1 mailing list
[EMAIL PROTECTED]
http://lists.asn1.org/mailman/listinfo/asn1
_______________________________________________ ASN1 mailing list [EMAIL PROTECTED] http://lists.asn1.org/mailman/listinfo/asn1
