title: cannot find a script or extension object associated with namespace in xslt
body: <p>I have generated XSLT using altova mapforce and in altova the xslt and output xml is getting generated without any issues.</p>
  
  <p>when i copied the same xslt in visual studio 2013 and trying to run but ended up with below error
  <strong>Cannot find a script or an extension object associated with namespace '<a href="http://www.w3.org/2001/XMLSchema" rel="nofollow">http://www.w3.org/2001/XMLSchema</a>'.</strong></p>
  
  <pre><code>&lt;xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
       xmlns:xs="http://www.w3.org/2001/XMLSchema"
    xmlns:core="http://www.altova.com/MapForce/UDF/core" 
    xmlns:vmf="http://www.altova.com/MapForce/UDF/vmf" 
    xmlns:ns0="http://www.altova.com/xslt-extensions"   
    xmlns:fn="http://www.w3.org/2005/xpath-functions" exclude-result-prefixes="core vmf ns0 xs fn"&gt;
      &lt;xsl:template name="core:firstCharacter"&gt;
          &lt;xsl:param name="value" select="()"/&gt;
          &lt;xsl:param name="default" select="()"/&gt;
          &lt;xsl:choose&gt;
              &lt;xsl:when test="(fn:string-length($value) = xs:integer('0'))"&gt;
                  &lt;xsl:sequence select="$default"/&gt;
              &lt;/xsl:when&gt;
              &lt;xsl:otherwise&gt;
                  &lt;xsl:variable name="var1_resultof_cast" as="xs:double" select="xs:double(xs:integer('1'))"/&gt;
                  &lt;xsl:sequence select="fn:substring($value, $var1_resultof_cast, $var1_resultof_cast)"/&gt;
              &lt;/xsl:otherwise&gt;
          &lt;/xsl:choose&gt;
      &lt;/xsl:template&gt;
  
  &lt;xsl:template match="/"&gt;
          &lt;xsl:variable name="var1_resultof_cast" as="xs:string" select="xs:string(xs:decimal('0'))"/&gt;
          &lt;xsl:variable name="var2_entry" as="node()?" select="entry"/&gt;
          &lt;xsl:variable name="var3_resultof_map" as="xs:string*"&gt;
  </code></pre>
  
  <p>Error at below line:</p>
  
  <pre><code>&lt;xsl:variable name="var1_resultof_cast" as="xs:string" select="xs:string(xs:decimal('0'))"/&gt;
  </code></pre>