Fixed facets ensure that the minimum value of our minInclusive cannot be modified : fixed « XML Schema « XML






Fixed facets ensure that the minimum value of our minInclusive cannot be modified


<?xml version="1.0"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
  targetNamespace="http://www.java2s.com" xmlns="http://www.java2s.com"
  elementFormDefault="qualified">

  <xs:simpleType name="minInclusive">
    <xs:restriction base="xs:float">
      <xs:minInclusive value="10" fixed="true" />
    </xs:restriction>
  </xs:simpleType>

</xs:schema>

 








Related examples in the same category

1.fixed value is one of the value in restriction
2.Set fixed value for attribute during simpleType declaration
3.element fixed value is the restriction value
4.Reference element with fixed value