Skip to content

Commit

Permalink
fix(opcua): use constants for OpcuaNodeIdServices as enum explodes in…
Browse files Browse the repository at this point in the history
… java for now
  • Loading branch information
sruehl committed Aug 28, 2023
1 parent 1b9239b commit 673de2c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions protocols/opcua/src/main/xslt/opc-services.xsl
Expand Up @@ -50,12 +50,12 @@

<xsl:template name="servicesEnumParsing" >
<xsl:variable name="tokenizedLine" select="tokenize($servicesEnumFile, '\r\n|\r|\n')" />
[enum int 32 OpcuaNodeIdServices<xsl:text>
[type OpcuaNodeIdServices<xsl:text>
</xsl:text>
<xsl:for-each select="$tokenizedLine">
<xsl:variable select="tokenize(., ',')" name="values" />
<xsl:choose>
<xsl:when test="$values[2]">['<xsl:value-of select="$values[2]"/>' <xsl:value-of select="$values[1]"/>]<xsl:text>
<xsl:when test="$values[2]">[const uint 32 <xsl:value-of select="$values[1]"/> '<xsl:value-of select="$values[2]"/>']<xsl:text>
</xsl:text>
</xsl:when>
</xsl:choose>
Expand Down

0 comments on commit 673de2c

Please sign in to comment.