Hi Manuel,

Have you tried a construction like this?

Chunk ::= SEQUENCE
{
   head [1] OCTET STRING,
   body [2] SEQUENCE OF [2] BodyChunk
}

Per my understanding ASN.1, a tagged type is also a type :). Unless I am
mistaken, this should do what you are looking for.

Cheerios
Ramaswamy

--
Its wierd, but sometime you find things that are more important to you than
things you think that are important. You know what I mean? Maybe its just
getting older ;)
http://ramaswamy.r.googlepages.com

On 7/5/07, Manuel Polling <[EMAIL PROTECTED]> wrote:

Hi all,
I am trying to create an abstract ASN.1 syntax for our own application.
This is for a communication stream between two programs. In our case,
the binary stream was created by someone without use of "real" ASN.1
tools and maybe without fully understanding the do's and don'ts of ASN.1.
So, what I am running in to is the occurrence of repeating tags without
an enclosing container type. If I understand correctly, repeating tags
are normally specified in a fashion like this:
Chunk ::= SEQUENCE {
    head [1] OCTET STRING,
    body [2] SEQUENCE OF BodyChunk
}
BodyChunk ::= [1] OCTET STRING

And this would result in a structure like this:
1 <Chunk>
  1 <head>
  2 <body>
    1 <BodyChunk>
    1 <BodyChunk>
    1 <BodyChunk>
    1 <BodyChunk>

What I want to describe is something like this:
1 <Chunk>
  1 <head>
  2 <BodyChunk>
  2 <BodyChunk>
  2 <BodyChunk>
  2 <BodyChunk>

I have tried constructions like:
    head [1] OCTET STRING,
    COMPONENTS OF SEQUENCE OF [2] BodyChunk
but the viewers I am using seem not able to compile/parse that.

Can anyone tell me if it is possible to specify what I want and how that
is done?

Thanks,
Manuel.
--
drs. Manuel Polling
Consultant/Software Engineer
Edmond Research & Development B.V.
/The Document Solutions Specialist/
http://www.edmond.nl/

_______________________________________________
Asn1 mailing list
[email protected]
http://lists.asn1.org/mailman/listinfo/asn1

_______________________________________________
Asn1 mailing list
[email protected]
http://lists.asn1.org/mailman/listinfo/asn1

Reply via email to