Adaptive Form - XML Schema Validation Failure
Hello,
I have created an XML Schema Definition (XSD) and there are no issues with creating the data connection in the Designer XDP. I am able to properly bind the fields in the XDP.
When creating an adaptive form in AEM and selecting the Schema, it states there is an error: "XML Schema Validation Failure - An error occurred while parsing SCHEMA. Ensure that you have selected a valid SCHEMA.".
Below is the XSD file:
<?xml version="1.0" encoding="UTF-8" ?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xhtml="http://www.w3.org/1999/xhtml">
<xsd:import namespace="http://www.w3.org/1999/xhtml"/>
<xsd:element name="formData">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="headerInfo">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="field1" />
<xsd:element name="field2" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="bodyInfo">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="field3">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="xhtml:body" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:schema>
I was under the assumption that any XSD supported in Designer is supported in AEM as well. Any insight on why this is occurring is appreciated. Thank you