cppagent icon indicating copy to clipboard operation
cppagent copied to clipboard

Extended namespace tags Validating

Open NeilDes opened this issue 3 years ago • 1 comments

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">

image

NeilDes avatar Aug 08 '22 14:08 NeilDes

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>

MRIIOT avatar Oct 03 '22 13:10 MRIIOT

Can this issue be closed?

wsobel avatar Apr 21 '23 18:04 wsobel