具有属性的命名空间

时间:2019-07-16 19:02:01

标签: namespaces attributes

我必须创建一个XML模式。

在创建此指令的说明中,我找到了:

  

[...]

     

必须使用属性## CAM声明名称空间<CAM>

     

[...]

代码含义是什么?什么样的属性?

架构很简单

<?xml version="1.0" encoding="UTF-8" ?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
    <xs:element name="CustomData">
        <xs:complexType>
            <xs:sequence>
                <xs:element name="Name" type="xs:string" minOccurs="1" maxOccurs="1" fixed="Italian CAM"/>
                <xs:element name="UniqueIdentifier" type="xs:string" minOccurs="1" maxOccurs="1" fixed="TBD"/>
                <xs:element name="CAM_Rated_Voltage" type="xs:decimal" minOccurs="1" maxOccurs="1"/>
                <xs:element name="CAM_Max_Voltage" type="xs:decimal" minOccurs="1" maxOccurs="1"/>
                <xs:element name="CAM_Min_Voltage" type="xs:decimal" minOccurs="1" maxOccurs="1"/>
                <xs:element name="CAM_Rated_Frequency" type="xs:decimal" minOccurs="1" maxOccurs="1"/>
                <xs:element name="CAM_Max_Frequency" type="xs:decimal" minOccurs="1" maxOccurs="1"/>
                <xs:element name="CAM_Min_Frequency" type="xs:decimal" minOccurs="1" maxOccurs="1"/>
                <xs:element name="CAM_Rated_Current" type="xs:decimal" minOccurs="1" maxOccurs="1"/>
                <xs:element name="CAM_Max_Current" type="xs:decimal" minOccurs="1" maxOccurs="1"/>
                <xs:element name="CAM_Min_Current" type="xs:decimal" minOccurs="1" maxOccurs="1"/>
                <xs:element name="CAM_Rated_Power_Factor" type="xs:decimal" minOccurs="1" maxOccurs="1"/>
                <xs:element name="CAM_Num_Sources" type="xs:int" minOccurs="1" maxOccurs="1"/>
                <xs:element name="CAM_Replaceable_Sources" type="xs:boolean" minOccurs="1" maxOccurs="1"/>
                <xs:element name="CAM_Nominal_Source_Power" type="xs:decimal" minOccurs="0" maxOccurs="unbounded"/>
                <xs:element name="CAM_InsulationClass" type="xs:string" minOccurs="1" maxOccurs="1"/>
                <xs:element name="CAM_IP_Body" type="xs:int" minOccurs="1" maxOccurs="1"/>
                <xs:element name="CAM_IP_Box" type="xs:int" minOccurs="1" maxOccurs="1"/>
                <xs:element name="CAM_IK" type="xs:int" minOccurs="1" maxOccurs="1"/>
                <xs:element name="CAM_Surge" type="xs:int" minOccurs="1" maxOccurs="1"/>
                <xs:element name="CAM_IDPhotobiological_Risk" type="xs:string" minOccurs="0" maxOccurs="1"/>
                <xs:element name="CAM_Threshold_Distace_PhRisk" type="xs:decimal" minOccurs="0" maxOccurs="1"/>
                <xs:element name="CAM_Rated_Life" type="xs:string" minOccurs="1" maxOccurs="1"/>
                <xs:element name="CAM_Failure_Index" type="xs:string" minOccurs="0" maxOccurs="1"/>
                <xs:element name="CAM_Luminous_Efficacy" type="xs:decimal" minOccurs="1" maxOccurs="1"/>
                <xs:element name="CAM_Dff" type="xs:decimal" minOccurs="1" maxOccurs="1"/>
                <xs:element name="CAM_Warranty" type="xs:string" minOccurs="0" maxOccurs="1"/>
                <xs:element name="CAM_ID_Mark" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>
                <xs:element name="CAM_ID_Mark_Link" type="xs:anyURI" minOccurs="0" maxOccurs="unbounded"/>
            </xs:sequence>
        </xs:complexType>
    </xs:element>
</xs:schema>

0 个答案:

没有答案