The specification says this about dfdl:emptyValueDelimiterPolicy:
'none' indicates that if the content region is empty neither the dfdl:initiator
or dfdl:terminator must be present. On unparsing when the content region is
empty nothing will be output.
My DFDL schema (see below) declares two elements, separated by newline, each
with an initiator, the first element specifies
dfdl:emptyValueDelimiterPolicy="none". The input has empty content for the
first element.
FIRST
SECOND Hello, world
Daffodil does not behave correctly: If I remove the initiator from the input
file for the first element, I get an error. Bug in Daffodil? /Roger
<xs:element name="input">
<xs:complexType>
<xs:sequence dfdl:separator="%NL;"
dfdl:separatorPosition="infix">
<xs:element name="A" type="xs:string"
dfdl:initiator="FIRST"
dfdl:emptyValueDelimiterPolicy="none" />
<xs:element name="B" type="xs:string"
dfdl:initiator="SECOND" />
</xs:sequence>
</xs:complexType>
</xs:element>