V
Victor Engmark
I am making an XML Schema for emails, and would like to specify that any
elements from the XHTML2 namespace are allowed in the body/contents and
signature/footer parts of the message (and _only_ there). I guess I have
to use some combination of the xsd:import and xsd:any elements, but I'm
not sure of the syntax.
What should I fill into the following structure and/or the top of the file?
<?xml version="1.0"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<!-- Definition of header structure -->
<!-- Contents structure -->
<xsd:complexType name="contentsType" use="optional">
<xsd: ...
</xsd:complexType>
<!-- Footer structure -->
<xsd:complexType name="footerType" use="optional">
<xsd:element name="signature">
<xsd: ...
</xsd:element>
</xsd:complexType>
</xsd:schema>
elements from the XHTML2 namespace are allowed in the body/contents and
signature/footer parts of the message (and _only_ there). I guess I have
to use some combination of the xsd:import and xsd:any elements, but I'm
not sure of the syntax.
What should I fill into the following structure and/or the top of the file?
<?xml version="1.0"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<!-- Definition of header structure -->
<!-- Contents structure -->
<xsd:complexType name="contentsType" use="optional">
<xsd: ...
</xsd:complexType>
<!-- Footer structure -->
<xsd:complexType name="footerType" use="optional">
<xsd:element name="signature">
<xsd: ...
</xsd:element>
</xsd:complexType>
</xsd:schema>