Talk:XForms/Facet Validation

XFroms/Facet Validation : works with Firefox 0.8.7
I have made somme changes only to the schema, and then this xform works well with Firefox 0.8.7. and not only with Xsmile. The way I have changed the schema is as follow: - speparate the types description (complex and simple) from the elements used in root elemnt. - then use the types declared previously for describing elements

Here is the schema file:

 

  A demonstration of XML Schema string facets.  

        <xs:element name="string-5-7" type="string-5-7Type"> </xs:element> </xs:sequence> </xs:complexType> <xs:simpleType name="string-length-2Type"> <xs:restriction base="xs:string"> <xs:length value="2"/> </xs:restriction> </xs:simpleType>

<xs:simpleType name="string-min-3Type"> <xs:restriction base="xs:string"> <xs:minLength value="3"/> </xs:restriction> </xs:simpleType>

<xs:simpleType name="string-max-5Type"> <xs:restriction base="xs:string"> <xs:maxLength value="5"/> </xs:restriction> </xs:simpleType>

<xs:simpleType name="string-5-7Type"> <xs:restriction base="xs:string"> <xs:minLength value="5"/> <xs:maxLength value="7"/> </xs:restriction> </xs:simpleType>

</xs:schema>

Good luck