ГОСТ Р ИСО/МЭК 8825-5— 2013
<xsd:restriction base="xsd:string"»
<xsd:minLength value="5“/>
<xsd:maxLength value=“10"/>
</xsd:restriction»
</xsd:simpleType>
Эти два простых определения типа отображаются в следующие присвоения типа АСН.1:
String-10XSD.String (SIZE(10))
String-5-to-10XSD.String (SIZE(5..10)>
0.3.3.2 pattern
<xsd:simpieType name="My-filename">
<xsd:restriction base="xsd:string”>
<xsd:pattern value=“[ :-ÿ]*’T»
<xsd:pattern value="/?([A/]*/)*[A/]T" />
</xsd:restriction»
</xsd:simpleType>
Это простое определение типа отображается в следующее присвоение типа АСН.1:
My-filenameXSD.String
(CONSTRAINED BY
{/* XML representation of the XSDpattern
"[6*x20;-i*xFF;]*- "/?([*/)*6#x2F;)*(*/]*6*x2F;*/))
0.3.3.3 whiteSpace
<xsd:simpleTypename=”My-String">
<xsd:restriction base="xsd:string">
<xsd:whiteSpace value="preserve’7>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="My-NormalizedString"»
<xsd: restriction base=”xsd:string”>
<xsd: whiteSpace value=”replace"/»
</xsd:restriction»
</xsd:simpleType>
<xsd:simpleType name="My-TokenString"»
<xsd:restriction base="xsd:string">
<xsd:whiteSpace value="collapse"/>
</xsd:restriction»
</xsd:simpleType>
Эти простые определения типа отображаются в следующие присвоения типа АСН.1:
My-StringXSD.String
My-NormalizedString[WHITESPACE REPLACE] XSD.String
(FROM {(0, 0, 0, 32) .. (0, 16, 255, 255)))
My-TokenString : [WHITESPACE COLLAPSE] XSD.String
(FROM ((0, 0, 0, 32) .. (0, 16, 255, 255)))
(PATTERN ’ ( П ( П 1 [A 1>*>?">
D.3.3.4 maxlnciusive, maxExclusive, minExclusive и minlnclusive
<xsd:simpleType name="lnt-10-to-100"»
<xsd:restriction base="xsd:integer”>
<xsd:minExclusive value-’10"/>
<xsd:maxlnclusive value="100’7>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="Pi-approximation">
<xsd:restriction base="xsd:double"»
<xsd:minExclusive value=“3.14159"/>
<xsd:maxExclusive value="3.1416"/»
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name-‘Morning"»
<xsd:restriction base="xsd:time">
<xsd:minlnclusive value="00:00:00’7>
<xsd:maxExclusive value="12:00:00"/»
</xsd:restriction>
</xsd:simpleType>
52