Name

xsd:positiveInteger — Strictly positive integers of arbitrary length

Synopsis

<xsd:simpleType name="positiveInteger” id="positiveInteger">
 <xsd:restriction base="xsd:nonNegativeInteger">
 <xsd:minInclusive value="1"/>
 </xsd:restriction>
</xsd:simpleType>

Derived from

xsd:nonNegativeInteger

Primary

xsd:decimal

Known subtypes

None

Data parameters (facets)

enumeration, fractionDigits, maxExclusive, maxInclusive, minExclusive, minInclusive, pattern, totalDigits

Description

The value space of xsd:positiveInteger includes the set of the strictly positive integers (excluding zero), with no restriction of range. Its lexical space allows any number of insignificant leading zeros.

Restrictions

The decimal point (even when followed only by insignificant zeros) is forbidden.

Example

Valid values include 123456789012345678901234567890, 1, and 0000000000000000000005.

Invalid values include 0 and 1.

Get RELAX NG 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.