Hello,
I would like to know if there is a proper way to define a root type in such a
situation (ASN.1 + E-XER):
Suppose the xsd schema contains "flat" elements T1, T2 and no root level
element. XML documents accepted are <T1...>...</T1> and
<T2...>...</T2>. The equivalent ASN.1 schema resulting from X694 will thus
contain T1 and T2 and no root type. In order to pass a
top level type to the EXER decoder, I would like to create a root type that
would be a CHOICE between T1 and T2 this way :
R ::= [UNTAGGED] CHOICE {
t1 [NAME AS CAPITALIZED] T1,
t2 [NAME AS CAPITALIZED] T2
}
This definition is normally not accepted by the E-XER specification since
UNTAGGED is not authorized if the type is not a component
of a CHOICE, SEQUENCE, SET or SEQUENCE OF, SET OF (X693 amdt1 32.2.1) and more
UNTAGGED must be ignored on the root type (X693 amdt1
32.3.1).
Is there another means to indicate that the tag for R is not encoded or another
way to handle properly this situation?
Thanks for your help,
Bruno Konik
_______________________________________________
ASN1 mailing list
[email protected]
http://lists.asn1.org/mailman/listinfo/asn1