Tecnologías XML / XML Schema / Referencia de tipos de datos / xs:negativeInteger

(Extracto de «XML Schema» de Eric van der Vlist)

Enteros estrictamente negativos de longitud arbitraria

Derivado de: xs:nonPositiveInteger

Tipo primitivo: xs:decimal

Subtipos conocidos: ninguno

Facetas: xs:enumeration, xs:fractionDigits, xs:maxExclusive, xs:maxInclusive, xs:minExclusive, xs:minInclusive, xs:pattern, xs:totalDigits, xs:whiteSpace

Definición

<xs:simpleType name="negativeInteger" id="negativeInteger">
    <xs:restriction base="xs:nonPositiveInteger">
        <xs:maxInclusive value="-1"/>
    </xs:restriction>
</xs:simpleType>

Descripción

El espacio de valores de xs:negativeInteger contiene todos los enteros estrictamente negativos, excluido el 0, sin límites de intervalo. El espacio léxico permite cualquier número de ceros iniciales no significativos.

Restricciones

Se prohíbe el punto decimal, incluso si solo va seguido de ceros no significativos.

Ejemplo

Los valores válidos de xs:negativeInteger incluyen "-123456789012345678901234567890", "-1" o "-0000000000000000000005".

Los valores no válidos incluyen "0" o "-1.".

   

<< atrás

siguiente >>

 

 

 

volver arriba