The spec says that the dfdl:choiceLength property specifies the length
of the choice in bytes, so specifying a unit is not required. Perhaps a
future DFDL version or a Daffodil extension could add a
dfdl:choiceLengnthUnits property so you could specify units. But I
suspect no one has seen a format in the wild that actually needs the
feature, so there wasn't a reason to add it to the spec and future
complicate implementations.

- Steve

On 8/19/20 12:19 PM, Roger L Costello wrote:
> Hi Folks,
> 
> I have a choice element in which I specify dfdl:choiceLengthKind="explicit" 
> and dfdl:choiceLength="3" but I do not specify dfdl:lengthUnits. I run my 
> schema and get no error. Why? I believe that I should get an error. What 
> value is there to telling the parser that each branch of the choice is 3?    
> 3 what?    3 bytes?    3 bits?    3 characters?
> 
> /Roger
> 

Reply via email to