In an inputValueCalc I want to have this:
if (../BitCode = (12 to 71)) then 'UNDEFINED'
See below. From my testing, it appears that Daffodil does not support the "to"
operator. Is that correct? Is there a workaround?
<xs:element name="test">
<xs:complexType>
<xs:sequence>
<xs:element name="BitCode" type="unsignedint5"/>
<xs:element name="Meaning" type="xs:string"
dfdl:inputValueCalc="{
if (../BitCode eq 0) then 'A'
else if (../BitCode eq 1) then 'B'
...
else if (../BitCode = (12 to 71)) then 'UNDEFINED'
else fn:error('invalid value for test')
}"
/>
</xs:sequence>
</xs:complexType>
</xs:element>