You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Custom Condition output from Agent with Upper Case X: instead of Lower Case x: #521
The issue is that when you create a Custom Condition such as x:CONDITION1000 it is output from the Agent with an Upper Case X:
The problem we have run into is that if you validate the localhost:5000/current Streams output against our Custom Streams Schema DevicesCustomDataStreams.xsd (which extends MTConnectStreams_1.3.xsd) it fails to validate due to the upper case X:. If we just change the upper case X to lowercase x then it will validate. We have tried to modify our DevicesCustomDataStreams.xsd to handle this but have not found a successful solution.
This issue appears to have appeared in the Agent around version 1.8. Prior to that the streams output was x:CONDITION1000.
Activity
wsobel commentedon Feb 25, 2025
I'll check this out in the agent. It should not change the namespace letter to upper case. Can you upload the Device.xml so I can reproduce?
FALapGGH commentedon Feb 26, 2025
MTConnectStreams with Custom Condition.zip
It would not let me attach a .XML file so I zipped up the Devices.xml and the Streams output and attached.
wsobel commentedon Apr 24, 2025
I will begin looking into this and get back. I think it should be an easy correction.
wsobel commentedon Apr 24, 2025
The current pattern for the data item type extension is:
'[a-ln-z][a-z]*:[A-Z_0-9]+'As you pointed out, this does not allow for uppercase namespace patterns. We can change it to:
'[a-ln-zA-Z][a-zA-Z]*:[A-Z_0-9]+I will also see if this can be done historically.
wsobel commentedon Apr 24, 2025
I'll also mention this is the schema development section since it is generated from the XMI.
wsobel commentedon Apr 24, 2025
See mtconnect/standard_doc_generator#3