[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[KEYPROV] XML to ASN.1 for attributes



As PSKC is basically done, I'm going to convert the XML elements/attributes to ASN.1. I've got one question: should the elements with child elements be one attribute or separate attributes? For example, DeviceInfo is as follows:

<DeviceInfo>
  <Manufacturer>Manufacturer</Manufacturer>
  <SerialNo>987654321</SerialNo>
  <UserId>DC=example-bank,DC=net</UserId>

We could either have one attribute:

DeviceInfo ::= SEQUENCE {
  manufactuer Manufactuer,
  serialNo    SerialNo,
  userId      UserId }

or three separate attributes:

 Manufactuer, SerialNo, and UserId.

Which way do people want it?

spt