Name
xs:totalDigits
Synopsis
<xs:totalDigits fixed = "( true |false
)" id = "ID
" value = "positiveInteger
" > <!-- (xs:annotation?) --> </xs:totalDigits>
The xs:totalDigits
facet
element is used when deriving from xs:decimal
elements and its descendants
(xs:integer
, xs:long
, xs:nonNegativeInteger
, xs:unsignedLong
, etc.) by restriction.
It specifies the maximum number of non-zero digits allowed in the
number, including both the integer and fractional parts, but not
counting the decimal point or the sign. This only sets the maximum
number of digits. If you want to specify a minimum number of
digits, use the xs:pattern
element instead. If the fixed
attribute has the value true
,
then types derived from this type are not allowed to override the
value of fractionDigits
given
here.
Get XML in a Nutshell, 3rd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.