ГОСТ Р ИСО 20242-4—2012
С.7 Примеры описания возможностей устройства
С.7.1 Общие сведения
XML-схемы DCDl.xsd и DCD2.xsd являются примерами описания возможностей устройства, которые рас
ширяют существующую XML-схему ORiNCommon.xsd всоответствии с возможностямидрайверов устройств. Име
на XML-злементов должны быть определены в соответствии с требованиями потребителей. Структурная инфор
мация об XML-элементах определена в содержании XML-атрибута «категория» (category).
С.7.2ХМ1_-схема: DCD1.xsd
<?xml version="1.0" encoding=-,utf-8"?>
<xsd:schema xmlns:xsd=’http^Avww.w3.org/2001.’XMLSchema*
xmlns="
http://www.ORiN.co.jp/ISO20242-4>’DCD1
"
targetNamespace="http^Avww.ORiN.co.jp/lSO20242-4/lDCDr elementFormDefault=*qualified“>
<xsd:annotation>
<xsd:appinfo source=*http^Avww.ORiN.jp/ISO20242-4/DCPTHeader.xsd"*>
<DCPTHeader>
<DCPTIdentification>DCD1<.’DCPTIdentification>
<DCPTRevision>1.O^DCPTRevision»
<DCPTName>DCD1 </DCPTName>
<DCPTSource>DCD1 .xsd<yDCPTSource>
<DCPTClasslD>DCD1 </DCPTCIasslD>
<DCPTDate>2010-05-26</DCPTDate>
<ISO20242Reference>
<ISO20242Edition >1</ISO20242Edition>
<Techno4ogy>ORi N</Technotogy>
<VISO20242Reference>
</DCPTHeader>
</xsd:appinfo>
</xsd:annotation>
<xsd:include schemaLocation=“ORiNcomn>on.xsd7>
<!- Main type is ORiN_DCD with contained Virtual Device Types.
There may be many different Virtual Device Types contained. ->
<xsd:e»ement name=’DCDr type=’DCDType7>
<xsd:comptexType name=’DCDType*>
<xsd:complexContent>
<xsd:extension base=”ORiN_DCD">
<xsd:sequence>
<xsd:element ref=*Provider* minOccurs=*0" maxOccurs="unboundedV>
</xsd:sequence>
</xsd:extension>
</xsd :complexContent>
</xsd:complexType>
<!-- Virtual Device Types have fixed numbers for identification in modulelD.
This is a restriction of type VDInstance. If You want to avoid
restriction, move attribute moduleld from type ORiN_Module with a fixed
number to type ProviderType below, which than is an extension of ORiN_Module
and type ProviderBaseType will be obsolete. -->
<xsd:comp!exType name="Provider8aseType*>
<xsd:complexContent>
<xsd:restriction base=*ORiN_Module">
<xsd:attribute name=’provider" type="xsd:string* use="required“ fixed=*CaoProv.DCD17>
<xsdattribute name="moduleld" type=*xsd:unsignedShort" use="required" fixed="07>
</xsd:restriction>
</xsd:complexContent>
<j’xsd:ccmplexType>
<!~ This Virtual Device Type exemplary only contains one Function Object
type without restricting the number of instances. ->
<xsd:eiement name=’Provider’ type=”ProviderType7>
<xsd:complexType name=”ProviderType’>
<xsd:complexContent>
<xsd:extension base="ProviderBaseType“>
<xsd:sequence>
<xsd:element ref="CaoProvController* maxOccurs="unboundecT.’>
57