Hello DFDL community, I have an input file containing a sequence of rows, separated by one or more newlines, for example:
[cid:[email protected]] If I assume that there are no more than 3 newlines between rows, then this works: <xs:sequence dfdl:separator="%NL; %NL;%NL; %NL;%NL;%NL;" dfdl:separatorPosition="infix" dfdl:separatorSuppressionPolicy="trailingEmptyStrict"> Of course, if the input contains 4 newlines between rows, then it breaks. I guess, the following is not legal, right? dfdl:separator="%NL;+?" Is there a more robust solution? Below is my DFDL schema. /Roger <xs:element name="really-simple-format"> <xs:complexType> <xs:sequence dfdl:separator="%NL; %NL;%NL; %NL;%NL;%NL;" dfdl:separatorPosition="infix" dfdl:separatorSuppressionPolicy="trailingEmptyStrict"> <xs:element name="row" maxOccurs="unbounded"> <xs:complexType> <xs:sequence dfdl:separator=":" dfdl:separatorPosition="infix"> <xs:element name="label" type="xs:string" /> <xs:element name="message" type="xs:string" /> </xs:sequence> </xs:complexType> </xs:element> </xs:sequence> </xs:complexType> </xs:element>
