Facet Type Properties in XML Schemas

Facet types have the properties described in Table 39:

Property
Description
Facet Type
Must be one of the following: enumeration, fractionDigits, length, maxExclusive, maxInclusive, maxLength, minExclusive, minInclusive, minLength, pattern, totalDigits, or whiteSpace.
Fixed
A Boolean value that indicates whether you can further restrict the simpleType with this same facet and a different value. The default is false. That is, the default is that you can apply the same facet more than once. For example, suppose you specify the following definition:
<xsd:simpleType name="zip"> 
               

              
<xsd:restriction base="xsd:string"> 
                   
<xsd:length value="5" fixed="true"/> 
                   
</xsd:restriction> 
                   

                
</xsd:simpleType>  
This defines a postal code whose length is 5 characters. You can further restrict this simpleType with, for example, the pattern facet so that the first three characters must always be " 100", but you cannot further restrict the length facet when the Fixed property is set to true.
Facet types of pattern and enumeration do not have the Fixed property.
Value
Varies according to the facet type. See About Facet Types for simpleTypes.
Table 39. Facet Type Properties

Learn XQuery Visually

Stylus Studio offers three infomative XQuery demonstration videos illustrating Stylus Studio's XQuery Editor, Mapper, Debugger and other advanced functionality. Watch them today!

Web Service Data Mapping

Stylus Studio makes it possible for you to use Web services as live XML data sources for XML mapping projects.

XML Applications

XML Applications are software applications that process data using standard XML technologies like XML, XML Schema, XSLT and XQuery. Using Stylus Studio XML Pipeline, learn how to model, edit, test and deploy an XML Application with ease.

Using DTD in Java Applications

Learn how to validate XML documents using industry-standard DTD's from within your Java applications using Java DTD components including Apache Xerces and XSV.

Stylus Most Wanted

 
Free Stylus Studio XML Training:
W3C Member