Re: BATH PROFILE - XML RECORDS

Johan Zeeman wrote:

> I think ISO 8824 is perfectly clear about this.

I don't. You might argue an inference, but I think it's far from clear.

> If the external object is a
> single ASN.1 type, then you may encode it with the "single-ASN1-type"
> choice.  If it is not then you may not ....

I'd be hard-pressed to prove that from the text of the standard! Quote:

"If the data value is the value of a single ASN.1 data type and if the encoding
rules for this data type are the same as those for the complete EXTERNAL
datatype [what doe that mean?] then the sending implementation shall use any of
the encoding choices: single-asn1-type, octet-aligned, arbitrary....

"if the encoding of the data value ...... is an integral number of octets, then
..... octet aligned or arbitrary"

But it never say: if it's not an asn.1 type, what to do. (It could be both an
asn.1 type and an integral number of bytes.)

So you could reasonable argue that this may be inferred, but this part of the
standard is so poorly written that I'd hesitate to infer it.



> So encoding an external object that is not specified in ASN.1 as a
> "single-ASN1-type" is wrong.
>

I'd certainly agree that it makes no sense to do it.

--Ray

Received on Friday, 4 October 2002 18:02:12 UTC