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.

User defined functions in XSLT 1.0 Options · View
arnabban5
Posted: Friday, July 24, 2015 7:39:58 PM
Rank: Newbie

Joined: 7/24/2015
Posts: 2
Hi,

I was trying to use an user defined function in Altova XML Spy, using XSLT 1.0. But it is not able to recognize the functions,

I am getting the following error :

XPST0017: The function call 'myfunc:mq-mqmd-change-field' does not match the name of a function in the static context

Usage
Code:

<xsl:value-of select="myfunc:mq-mqmd-change-field($MQMD, 'Expiry', $backside-expiry)"/>

Declaration
Code:

<func:function name="myfunc:mq-mqmd-change-field">
        <xsl:param name="mqmd" />
        <xsl:param name="name"/>
        <xsl:param name="value"/>
........................................
</func:function>

vlad
Posted: Saturday, July 25, 2015 9:22:01 AM
Rank: Advanced Member

Joined: 12/13/2005
Posts: 2,856
Location: Mauritius
Google search helps a lot:

http://stackoverflow.com/questions/1371665/where-do-i-put-an-xsl-function-in-an-xsl-document
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.