ГОСТ Р ИСО/МЭК 8825-5— 2013
<xsd:element name="a” type="xsd:string’7>
<xsd:element name=“b" type=“xsd:boolean"/»
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="MyComplexType-11”>
<xsd:sequence maxOccurs="5">
<xsd:element name="a" type="xsd:string’7>
<xsd:element name=’’b" type="xsd:boolean’7>
</xsd:sequence>
</xsd:complexType>
Эти сложные определения типа отображаются в следующие присвоения типа АСН.1:
MyComplexType-9 : SEQUENCE {
a XSD.String,
Ь BOOLEAN J
MyCosnplexType-10 : SEQOENCE {
sequence [ONTAGGED] SEQUENCE {
a XSD.String,
b BOOLEAN >OPTIONAL )
MyCoraplexType-11 : SEQOENCE {
sequence-list [ONTAGGED] SEQOENCE (SIZE(1..5)) OF [ONTAGGED)
SEQOENCE [
a XSD.String,
b BOOLEAN ) }
D.3.8.4 В следующем примере показаны сложные определения типа, типом содержимого которых явля
ется смешанная модель содержимого.
<xsd:complexType name=”MyComplexType-12" mixed=“true”>
<xsd:sequence>
<xsd:element name="a" type="xsd:string’7>
<xsd:element name=’’b" type=”xsd:boolean’7>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name=’’MyComplexType-13" mixed=’’true”>
<xsd:all>
<xsd:element name="a" type="xsd:string’7>
<xsd:element name="b" type=”xsd:boolean’7>
</xsd:all>
</xsd:complexType>
<xsd:complexType name="MyComplexType-14" mixed="true">
<xsd:choice>
<xsd:element name="a" type="xsd:string’7>
<xsd:element name=“b" type=“xsd:boo!ean’7>
</xsd:choice>
</xsd:complexType>
<xsd:complexType name="MyComplexType-15" mixed="true">
<xsd:all minOccurs="0">
<xsd:element name="a" type="xsd:string’7>
<xsd:element name="b" type=’’xsd:boolean’7>
</xsd:all>
</xsd:complexType>
<xsd:complexType name="MyComplexType-16" mixed=”true">
<xsd:sequence maxOccurs="unbounded" minOccurs="0">
<xsd:element name=”a“ type="xsd:string’7>
<xsd:element name=“b” type=”xsd:boolean"/»
</xsd:sequence>
</xsd:complexType>
Эти сложные определения типа отображаются в следующие присвоения типа АСН.1:
МуСоер1ехТуре-12 : [EMBED-VALOES] SEQOENCE {
SEQOENCE OF XSD.String,
XSD.String,
BOOLEAN )
esobed-values
a
b
(CONSTRAINED BY
65