I have an element with an assert,
<xsd:element name="Type" dfdl:inputValueCalc="{ fn:lower-case(../MixedCaseType) }">
<xsd:annotation>
<xsd:appinfo source="http://www.ogf.org/dfdl/dfdl-1.0/">
<dfdl:assert test="{ dfdl:checkConstraints(.) }" message="The type must match one of the values on the enumerated list."/>
</xsd:appinfo>
</xsd:annotation>
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:enumeration value="application"/>
<xsd:enumeration value="multipart"/>
<xsd:enumeration value="message"/>
<xsd:enumeration value="text"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
and the assert is failing (as it should in this case!).
Parse Error: Assertion failed. The type must match one of the values on the enumerated list.
What are the consequences of a failed assert? I have an old version of the spec-is there a place to a get a current, complete copy?-but it says "An unsuccessful dfdl:assert causes a processing error."
1. What does "processing error" mean in English?
2. Does it mean the input is invalid?
3. Does it mean the processor should stop here and go no further?
4. Does it mean the process should simply ignore the problem and move on to the next item in the schema?
TIA
A set of DFDL schemas that model HL7 v2.7 messages are now available in a
DFDLSchemas GitHub repsitory at http://dfdlschemas.github.io/HL7-v2.7/.
Regards
Steve Hanson
Architect, IBM Data Format Description Language (DFDL)
Co-Chair, OGF DFDL Working Group
IBM SWG, Hursley, UK
smh(a)uk.ibm.com
tel:+44-1962-815848
Unless stated otherwise above:
IBM United Kingdom Limited - Registered in England and Wales with number
741598.
Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU