ГОСТ Р ИСО/МЭК 8825-5— 2013
xsd-module(2) version!.(1))
/* For a Version 2 mapping, the last component of
themodule
Identifier would be version2(2) */
ЛЪс-elem :;ш [NAME AS DNCAPITALIZED] Xyr-type
Subl-elea
Sub2-elem :
[NAME AS DNCAPITALIZED) XSD.String
[NAME AS DNCAPITALIZED] XSD.String
:
Sub2-attr : [NAMEAS DNCAPITALIZED) [ATTRIBOTE] XSD.String
ENCODING-CONTROLXER
GLOBAL-DEFADLTSMODIFIED-ENCODINGS
GLOBAL-DEFAOLTS CONTROL-NAMESPACE
"http://www.w3.org/2001/XMLSchesia-instance"
PREFIX "xsi"
NAMESPACEALL AS
"http://exanple.com/abc
"
PREFIX "abc"
END
D.3.2 Отображение простых определений типа
D.3.2.1 Простое определение типа, полученное ограничением
Для полного набора примеров простых ограничений типа см. примеры фасетов в D.3.3.
D.3.2.2 Простое определение типа, полученное по списку
<xsd:simpleType name=”lnt-list">
<xsd:list itemType="xsd:integer’7>
</xsd:simpleType>
<xsd:simpleType name=“lnt-10-to-100-list”>
<xsd:list>
<xsd:simpleType>
<xsd:restriction base="xsd:integer”>
<xsd:minlnclusive value=”10”/>
<xsd:maxlnclusive value="100’7>
</xsd:restriction>
</xsd:simpleType>
</xsd:list>
</xsd:simpleType>
Эти
простыеопределениятипа
отображаются в следующие присвоения типа АСН.1:
Int-list ::• [LIST) SEQOENCE OF INTEGER
Int-10-tO-100-liet[LIST) SEQOENCE OF INTEGER (10..100)
D.3.2.3 Простое определение типа, полученное совокупностью
<xsd:simpleType name="lnt-or-boolean">
<xsd:union memberType=”xsd:integer xsd:boolean"/>
</xsd:simpleType>
<xsd:simpleType name="Time-or-int-or-booiean- -or-dateRestriction">
<xsd:union memberType=" xsditime lnt-or-boolean">
<xsd:simpleType>
<xsd:restriction base="xsd:date">
<xsd:minlnclusive value="2003-01-01*7>
<lx
sd restricti о n>
</xsd:simpleType>
</xsd:union>
</xsd:simpleType>
Эти
простыеопределениятипа
отображаются в следующие присвоения типа АСН.1:
Int-or-boolean ::« [OSE-DNIONJ CHOICE {
integer [NAMESPACE
"http://www.w3.org/2001/XMLSchema
")
INTEGER,
boolean [NAMESPACE
"http://www.w3.org/2001/XMLSchema
")
BOOLEAN }
Time-or-int-or-boolean-or-dateRestriction ::■ [OSE-DNION] CHOICE
[
time [NAMESPACE
"http://www.w3.org/2001/XMLSchema
"]
XSD.Time.
integer [NAMESPACE
"http://www.w3.org/2001/XMLSchema
")
INTEGER,
50