XSD assert [message #1785778] |
Thu, 19 April 2018 11:22  |
Eclipse User |
|
|
|
XML XSD vaildation gives an error on my assert (XSD 1.1)
element policyHolderFirstName is mandatory if policyHolderCompanyFlag is 'n'.
Can anyone help me please!!! It's urgent.
The error that I get: S4s-elt-invalid-content.1: The Content Of '#AnonType_policyHolder' Is Invalid. Element 'assert' Is Invalid, Misplaced, Or Occurs Too Often.
<xs:element name="policyHolder">
<xs:complexType>
<xs:sequence>
<xs:element name="policyHolderCompanyFlag" type="booleanType" />
<xs:element name="policyHolderFirstName" type="xs:string" />
</xs:sequence>
<xs:assert test="policyHolderFirstName
or not(policyHolderCompanyFlag = 'n')" />
</xs:complexType>
</xs:element>
|
|
|
|
Powered by
FUDForum. Page generated in 0.15282 seconds