Below is a snippit that demonstrats how to create a required/non blank
element in an .xsd document used as the main datasource for your infopath
form:
Comments?
<xsd:element name="foo" type="my:requiredString"/>
<xsd:simpleType name="requiredString">
<xsd:restriction base="xsd:string">
<xsd:minLength value="1"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="requiredAnyURI">
<xsd:restriction base="xsd:anyURI">
<xsd:minLength value="1"/>
</xsd:restriction>
</xsd:simpleType>
Albator - 24 Jan 2006 07:59 GMT
Hi,
Just for information:
when you define an attribut and the type is non-string this attribut
will always be required!
Thierry