<dataFacet>
restricts the value of the strings used to represent values of a datatype, according to XML Schema Part 2: Datatypes Second Edition.
Module tagdocsTD-datatypes
Attributes
Global and inherited attributes:
- @namethe name of the facet.
- Status
- Required
- Datatype
- teidata.word
- Legal values
lengthminLengthmaxLengthpatternenumerationwhiteSpacemaxInclusiveminInclusivemaxExclusiveminExclusivetotalDigitsfractionDigits
- @valuethe facet value.
- Status
- Required
- Datatype
- string
Classes and content
- May contain
- empty
- Contained by
tagdocs
Note
This element is only allowed when the parent dataRef refers with @name to a datatype from the specification XML Schema Part 2: Datatypes Second Edition.
Examples
<datatype>
<dataRef name="decimal">
<dataFacet name="maxInclusive" value="360.0"/>
<dataFacet name="minInclusive" value="-360.0"/>
</dataRef>
</datatype>
<dataSpec ident="data.integerExample">
<desc>datatype used for attributes taking an integer value between 0 and 99</desc>
<content>
<dataRef name="nonNegativeInteger">
<dataFacet name="maxInclusive" value="99"/>
<dataFacet name="minInclusive" value="0"/>
</dataRef>
</content>
</dataSpec>
Content model
<content>
<empty/>
</content>