Answer»
- XML Schema data type supported by XForms model.
- XML Schema Data Types: Because XFormes model supports XML Schema data types. Using this feature XForms processor check the data for correct input values.
- If we want to use XML Schema data types, we must have to use XML Schema namespaces into our namespace declaration,
Example: <html XMLNS:xf="http://www.w3.org/2002/xforms" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
After using the XML Schema namespaces, we can add type attributes into our XForms instance elements like this:
Example: <xf:instance> <person xmlns=""> <FNAME xsi:type="xsd:string"/> <lname xsi:type="xsd:string"/> <born xsi:type="xsd:date"/> <size xsi:type="xsd:integer"/> </person> </xf:instance> I haven GIVEN you a list of XML Schema data types except that XForms uses all XML schema data type.
List of unsupported XML Schema datatype in XForms:
Example: <html xmlns:xf="http://www.w3.org/2002/xforms" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> After using the XML Schema namespaces, we can add type attributes into our XForms instance elements like this: Example: <xf:instance> <person xmlns=""> <fname xsi:type="xsd:string"/> <lname xsi:type="xsd:string"/> <born xsi:type="xsd:date"/> <size xsi:type="xsd:integer"/> </person> </xf:instance> I haven given you a list of XML Schema data types except that XForms uses all XML schema data type. List of unsupported XML Schema datatype in XForms:
|