OPC UA FX Offline Engineering: Help with Converting AML to NodeSet2.xml using XSLT for C Integration|OPC UA Implementation: Stacks, Tools, and Samples|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
OPC UA FX Offline Engineering: Help with Converting AML to NodeSet2.xml using XSLT for C Integration
Avatar
Karthik Gadepalli
New Member
Members
Forum Posts: 2
Member Since:
02/21/2025
sp_UserOfflineSmall Offline
1
05/19/2025 - 23:44
sp_Permalink sp_Print

Hello everyone,

I'm currently working on converting an AML file (representing an Information Model in an offline descriptor) into a NodeSet2.xml file using the 

xsltproc

tool and the XSLT transformer available at AutomationML/AML-UA-XSLT(https://github.com/AutomationM.....ML-UA-XSLT).

The goal is to eventually use this AML-based information model to generate C-based code for deployment.

It seems like the transformation process is not working as expected. Could someone please help identify what might be going wrong in this procedure? Additionally, if there are alternative or recommended approaches to convert AML models into C-based code for embedded systems, I’d greatly appreciate any guidance or resources.

Here’s the command I used and the error I encountered:

xsltproc -o outnodeset2.xml ../AML2Nodeset.xslt aml2opcua_smallexample_datatypes.aml
compilation error: file ../AML2Nodeset.xslt line 1 element function
xsltStylePreCompute: unknown xsl:function
compilation error: file ../AML2Nodeset.xslt line 1 element param
element param only allowed within a template, variable or param
compilation error: file ../AML2Nodeset.xslt line 1 element sequence
xsltStylePreCompute: unknown xsl:sequence
compilation error: file ../AML2Nodeset.xslt line 1 element function
xsltStylePreCompute: unknown xsl:function
compilation error: file ../AML2Nodeset.xslt line 1 element param
element param only allowed within a template, variable or param
compilation error: file ../AML2Nodeset.xslt line 1 element value-of
element value-of only allowed within a template, variable or param
compilation error: file ../AML2Nodeset.xslt line 1 element value-of
xsl:value-of : select is missing
compilation error: file ../AML2Nodeset.xslt line 1 element value-of
xsl:value-of : select is missing
XPath error : Invalid expression
concat('Constraint (', substring(*[1]/name(), 1, string-length(*[1]/name()) - 4),'ConstraintType)')
^
compilation error: file ../AML2Nodeset.xslt line 1 element value-of
xsl:value-of : could not compile select expression 'concat('Constraint (', substring(*[1]/name(), 1, string-length(*[1]/name()) - 4),'ConstraintType)')'
XPath error : Invalid expression
*[1]/name()
^
compilation error: file ../AML2Nodeset.xslt line 1 element with-param
XSLT-with-param: Failed to compile select expression '*[1]/name()'
compilation error: file ../AML2Nodeset.xslt line 1 element stylesheet
xsl:version: only 1.0 features are supported
compilation error: file ../AML2Nodeset.xslt line 1 element function
xsltParseStylesheetTop: ignoring unknown function element
compilation error: file ../AML2Nodeset.xslt line 1 element function
xsltParseStylesheetTop: ignoring unknown function element
compilation error: file ../LibraryParsing.xslt line 9 element stylesheet
xsl:version: only 1.0 features are supported
compilation error: file ../DatatypeTranslation.xslt line 9 element stylesheet
xsl:version: only 1.0 features are supported
compilation error: file ../LibraryTranslation.xslt line 12 element stylesheet
xsl:version: only 1.0 features are supported

Thanks in advance for your support!

Regards,
Karthik

Avatar
Karthik Gadepalli
New Member
Members
Forum Posts: 2
Member Since:
02/21/2025
sp_UserOfflineSmall Offline
2
05/20/2025 - 04:36
sp_Permalink sp_Print

Hello,

With saxon-he-12.7.jar(c3.0 based xslt) and including all .xslt, I'm able to generate the nodeset2.xml.
xsltproc is v1.0 based.

Command used:

java -cp saxon-he-12.7.jar:xmlresolver-5.2.0.jar net.sf.saxon.Transform -s:aml2opcua_smallexample_datatypes.aml -xsl:AML2Nodeset.xslt -o:output.xml

Thanks,
Karthik

Forum Timezone: America/Phoenix
Most Users Ever Online: 975
Currently Online: Ozrenko Mahmutović
Guest(s) 43
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Forum Stats:
Groups: 2
Forums: 10
Topics: 1516
Posts: 5130