Maps to a UML Attribute with the stereotype XSDtotalDigits. The name and type of such an attribute do not make sense.
- value – to Attribute initial value.
totalDigits XML representation summary
<totalDigits
fixed = boolean : false
id = ID
value = positiveInteger
{any attributes with non-schema namespace…}>
Content: (annotation?)
</totalDigits>
totalDigits XML code sample
The following is the definition of a user-derived datatype which could be used to represent monetary amounts, such as in a financial
management application which does not have figures of $1M or more and only allows whole cents. This definition would appear in a
schema authored by an 'end-user' and shows how to define a datatype by specifying facet values which constrain the range of the
base type in a manner specific to the base type. (different than specifying max/min values as before).
<simpleType name='amount'>
<restriction base='decimal'>
<totalDigits value='8'/>
<fractionDigits value='2' fixed='true'/>
</restriction>
</simpleType>