Question about legal characters in Nodeset file|OPC UA Companion Standards|Forum|OPC Foundation

Avatar
Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
Lost password?
sp_Feed sp_PrintTopic sp_TopicIcon
Question about legal characters in Nodeset file
Avatar
Gaute Nilsson
New Member
Members
Forum Posts: 1
Member Since:
06/23/2022
sp_UserOfflineSmall Offline
1
12/11/2022 - 15:31
sp_Permalink sp_Print

I got a tips from I'm assuming Randy Armstrong here: https://github.com/OPCF-Member...../issues/12 that enums with names that includes a dash '-' is not valid, and it needs to be proper SymbolicNames.

I'm assuming this would be invalid:

<UADataType NodeId="ns=1;i=71" BrowseName="1:CtlModelKind">
<DisplayName>CtlModelKind</DisplayName>
<References>
<Reference ReferenceType="HasProperty">ns=1;i=72</Reference>
<Reference ReferenceType="HasSubtype" IsForward="false">i=29</Reference>
</References>
<Definition Name="1:CtlModelKind">
<Field Name="status-only" Value="0" />
<Field Name="direct-with-normal-security" Value="1" />
<Field Name="sbo-with-normal-security" Value="2" />
<Field Name="direct-with-enhanced-security" Value="3" />
<Field Name="sbo-with-enhanced-security" Value="4" />
</Definition>
</UADataType>

I see some related changes done to the NodeSet files here: IEC61850/Opc.Ua.IEC61850-6.NodeSet2.xml

I cannot find this requirement in the NodeSet XML schema file: https://files.opcfoundation.or.....odeSet.xsd

To me it looks like the Name attribute can be a type="xs:string", and the changes done to the Name attribute in the IEC61850 NodeSet file is not needed.

Is there something I'm missing here?

Avatar
Randy Armstrong
Admin
Forum Posts: 1484
Member Since:
05/30/2017
sp_UserOfflineSmall Offline
2
12/11/2022 - 21:33
sp_Permalink sp_Print sp_EditHistory

https://reference.opcfoundatio...../docs/F.13

SymbolicName

A symbolic name for the field that can be used in autogenerated code.

It should only be specified if the Name cannot be used for this purpose.

Only letters, digits or the underscore (‘_’) are permitted.

IOW, the implied requirement is the Name can only have letters, digits or the underscore (‘_’)  unless a SymbolicName is specified.

Such requirements cannot be captured by the XML schema definition.

Forum Timezone: America/Phoenix
Most Users Ever Online: 510
Currently Online:
Guest(s) 22
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Forum Stats:
Groups: 2
Forums: 10
Topics: 1370
Posts: 4651