Hello DFDL community,
The input file contains binary data. There are a series of "sections" in the
input. The data for a section might not fill the last byte; if so, that byte is
filled with padding bits - up to 7 padding bits.
Here's what I tried. It doesn't work. What is the right way to implement this?
... consume/parse the section's data ...
... there may be padding bits after the last data item:
<xs:sequence dfdl:hiddenGroupRef="padding0-7Bits" />
<xs:group name="padding0-7Bits">
<xs:sequence>
<xs:element name="padding"
type="xs:hexBinary"
dfdl:alignment="implicit"
dfdl:alignmentUnits="bits"
dfdl:fillByte="%NUL;"
dfdl:outputValueCalc="{xs:hexBinary('00')}" />
</xs:sequence>
</xs:group>