cannot find a script or extension object associated with namespace in xslt



I have generated XSLT using altova mapforce and in altova the xslt and output xml is getting generated without any issues.


when i copied the same xslt in visual studio 2013 and trying to run but ended up with below error Cannot find a script or an extension object associated with namespace 'http://ift.tt/tphNwY'.



<xsl:stylesheet version="2.0" xmlns:xsl="http://ift.tt/tCZ8VR"
xmlns:xs="http://ift.tt/tphNwY"
xmlns:core="http://ift.tt/1AivvcP"
xmlns:vmf="http://ift.tt/165VpTT"
xmlns:ns0="http://ift.tt/1vbo6aU"
xmlns:fn="http://ift.tt/pEXiIz" exclude-result-prefixes="core vmf ns0 xs fn">
<xsl:template name="core:firstCharacter">
<xsl:param name="value" select="()"/>
<xsl:param name="default" select="()"/>
<xsl:choose>
<xsl:when test="(fn:string-length($value) = xs:integer('0'))">
<xsl:sequence select="$default"/>
</xsl:when>
<xsl:otherwise>
<xsl:variable name="var1_resultof_cast" as="xs:double" select="xs:double(xs:integer('1'))"/>
<xsl:sequence select="fn:substring($value, $var1_resultof_cast, $var1_resultof_cast)"/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>

<xsl:template match="/">
<xsl:variable name="var1_resultof_cast" as="xs:string" select="xs:string(xs:decimal('0'))"/>
<xsl:variable name="var2_entry" as="node()?" select="entry"/>
<xsl:variable name="var3_resultof_map" as="xs:string*">


Error at below line:



<xsl:variable name="var1_resultof_cast" as="xs:string" select="xs:string(xs:decimal('0'))"/>

No comments:

Post a Comment