IMPORTANT:
this is not a Support Forum! Experienced users might answer from time to time questions posted here. If you need a professional and reliable answer, or if you want to report a bug, please contact Altova Support instead.

Create a user-defined function with a node as input? Options · View
jduteau
Posted: Friday, January 15, 2021 6:40:22 AM
Rank: Newbie

Joined: 1/13/2021
Posts: 5
I am trying to simplify my mappings and one way I thought I could simplify is by creating a user-defined function to take a node as an input so that I can output a string based on the node's name and position. But I can't see a way to set the input of my user-defined function to be a node. node isn't one of the listed types in the dropdown for Simple inputs.
that
Posted: Friday, January 15, 2021 10:09:36 AM
Rank: Advanced Member

Joined: 6/16/2006
Posts: 486
Location: AT
jduteau wrote:
node isn't one of the listed types in the dropdown for Simple inputs.


That's because node is not a simple type.

But there is a "dirty" workaround: Use any simple type and make sure that your function is set to "inline". Inline functions ignore the parameter types completely because the parameter components are eliminated by the inlining process.
Users browsing this topic
guest

Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Use of the Altova User Forum(s) is governed by the Altova Terms of Use.