mbeckerle commented on a change in pull request #138: Adding error when
dfdl:initiator is "%"
URL: https://github.com/apache/incubator-daffodil/pull/138#discussion_r234307323
##########
File path:
daffodil-test/src/test/resources/org/apache/daffodil/section12/delimiter_properties/DelimiterProperties.tdml
##########
@@ -129,6 +129,56 @@
</xs:complexType>
</xs:element>
+ <xs:element name="DP_05" dfdl:lengthKind="implicit">
+ <xs:complexType>
+ <xs:sequence dfdl:initiatedContent="no"
+ dfdl:separatorPosition="infix" dfdl:separator=",">
+ <xs:element name="num1" type="xs:int"
+ dfdl:initiator="%" maxOccurs="unbounded" />
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+
+ <xs:element name="DP_06" dfdl:lengthKind="implicit">
+ <xs:complexType>
+ <xs:sequence dfdl:initiatedContent="no"
+ dfdl:separatorPosition="infix" dfdl:separator="%">
+ <xs:element name="num1" type="xs:int"
+ dfdl:initiator=":" maxOccurs="unbounded" />
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+
+ <xs:element name="DP_07" dfdl:lengthKind="implicit">
+ <xs:complexType>
+ <xs:sequence dfdl:initiatedContent="no"
+ dfdl:separatorPosition="infix" dfdl:separator=",">
+ <xs:element name="num1" type="xs:int"
+ dfdl:terminator="%" maxOccurs="unbounded" />
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+
+ <xs:element name="DP_08" dfdl:lengthKind="implicit">
+ <xs:complexType>
+ <xs:sequence dfdl:initiatedContent="no"
+ dfdl:separatorPosition="infix" dfdl:separator=",">
+ <xs:element name="num1" type="xs:int"
+ dfdl:terminator="test%" maxOccurs="unbounded" />
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+
+ <xs:element name="DP_09" dfdl:lengthKind="implicit">
+ <xs:complexType>
+ <xs:sequence dfdl:initiatedContent="no"
+ dfdl:separatorPosition="infix" dfdl:separator=",">
+ <xs:element name="num1" type="xs:int"
+ dfdl:terminator="{if ('true') then '%' else 'IMPOSSIBLE'}"
maxOccurs="unbounded" />
Review comment:
Excellent test.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services