cppagent
cppagent copied to clipboard
Extended namespace tags Validating
Up until recently, all extended tags would not validate to the schema. Seems lately, ALL extended tags are validating. I believe this to be in error.
ex.
<DataItem category="EVENT" id="Tool_suffix" type="x:TOOL_SUFFIX"/>
I started going back in versions of agents and testing. All are now validating to the schemas online.
<MTConnectDevices xmlns:m="urn:mtconnect.org:MTConnectDevices:2.0" xmlns="urn:mtconnect.org:MTConnectDevices:2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:mtconnect.org:MTConnectDevices:2.0 http://schemas.mtconnect.org/schemas/MTConnectDevices_2.0.xsd">

It should have validated based on below. It wouldn't have validated if you had 'X:' instead of 'x:'.
<xs:simpleType name='DataItemEnumExtType'>
<xs:annotation>
<xs:documentation>
Extended tyoe for The types of measurements available
</xs:documentation>
</xs:annotation>
<xs:restriction base='xs:string'>
<xs:pattern value='[a-ln-z][a-z]*:[A-Z_0-9]+'/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name='DataItemEnumType'>
<xs:annotation>
<xs:documentation>
The types of measurements available
</xs:documentation>
</xs:annotation>
<xs:union memberTypes='DataItemEnumEnum DataItemEnumExtType'/>
</xs:simpleType>
Can this issue be closed?