Specifies an inclusive limit for numeric values (which includes dates, times, durations, etc.); equivalent to the HTML 5 min attribute.
Attribute | Description | Type | Default | Options | Use |
---|---|---|---|---|---|
value | The minimum value of the restricted type. | xs:anySimpleType | required |
<?xml version="1.0" encoding="UTF-8"?>
<html xmlns="http://www.w3.org/2002/06/xhtml2"
xmlns:si="http://www.volantis.com/xmlns/2006/01/xdime2/si"
xmlns:xforms="http://www.w3.org/2002/xforms"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<head>
<title>xsd:minInclusive</title>
<xforms:model id="model1">
<xsd:schema>
<xsd:simpleType name="myType" >
<xsd:restriction base="xforms:decimal">
<xsd:minInclusive value="-99"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:schema>
<xforms:instance>
<si:instance>
<si:item name="number"/>
</si:instance>
</xforms:instance>
<xforms:bind nodeset="number" type="myType"/>
</xforms:model>
</head>
<body>
<xforms:input model="model1" ref="number">
<xforms:label>Pick a number:</xforms:label>
</xforms:input>
</body>
</html>