title: XSLT error "Cannot find a script or an extension object associated with namespace 'http://schemas.microsoft.com/WebParts/v2/DataView/runtime'"
body: <p>I'm getting an error in my SP2013 app that it's not finding a schema that is explicitly defined. Am I defining this incorrectly? Can someone shed some light on how it should be defined? I'm adapting Sharepoint's OOTB XSLT for an RSS view webpart. Here is the XSLT:</p>
  
  <pre><code>&lt;xsl:stylesheet xmlns:x="http://www.w3.org/2001/XMLSchema"
             version="1.0" exclude-result-prefixes="xsl ddwrt msxsl rssaggwrt"
             xmlns:ddwrt="http://schemas.microsoft.com/WebParts/v2/DataView/runtime"
             xmlns:rssaggwrt="http://schemas.microsoft.com/WebParts/v3/rssagg/runtime"
             xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt"
             xmlns:rssFeed="urn:schemas-microsoft-com:sharepoint:RSSAggregatorWebPart"
             xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" 
             xmlns:dc="http://purl.org/dc/elements/1.1/"
             xmlns:rss1="http://purl.org/rss/1.0/" xmlns:atom="http://www.w3.org/2005/Atom"
             xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd"
             xmlns:atom2="http://purl.org/atom/ns#"&gt;
  
    &lt;xsl:param name="rss_FeedLimit"&gt;5&lt;/xsl:param&gt;
    &lt;xsl:param name="rss_ExpandFeed"&gt;false&lt;/xsl:param&gt;
    &lt;xsl:param name="rss_LCID"&gt;1033&lt;/xsl:param&gt;
    &lt;xsl:param name="rss_WebPartID"&gt;RSS_Viewer_WebPart&lt;/xsl:param&gt;
    &lt;xsl:param name="rss_alignValue"&gt;left&lt;/xsl:param&gt;
    &lt;xsl:param name="rss_IsDesignMode"&gt;True&lt;/xsl:param&gt;
  
    &lt;xsl:template match="rss"&gt;
      &lt;xsl:call-template name="RSSMainTemplate"/&gt;
    &lt;/xsl:template&gt;
  
    &lt;xsl:template name="RSSMainTemplate" xmlns:ddwrt="http://schemas.microsoft.com/WebParts/v2/DataView/runtime" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt"&gt;
      &lt;xsl:variable name="Rows" select="channel/item"/&gt;
      &lt;xsl:variable name="RowCount" select="count($Rows)"/&gt;
      &lt;div class="slm-layout-main" &gt;
        &lt;xsl:call-template name="RSSMainTemplate.body"&gt;
          &lt;xsl:with-param name="Rows" select="$Rows"/&gt;
          &lt;xsl:with-param name="RowCount" select="count($Rows)"/&gt;
        &lt;/xsl:call-template&gt;
      &lt;/div&gt;
    &lt;/xsl:template&gt;
  
    &lt;xsl:template name="RSSMainTemplate.body" xmlns:ddwrt="http://schemas.microsoft.com/WebParts/v2/DataView/runtime" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt"&gt;
      &lt;xsl:param name="Rows"/&gt;
      &lt;xsl:param name="RowCount"/&gt;
      &lt;xsl:for-each select="$Rows"&gt;
        &lt;xsl:variable name="CurPosition" select="position()" /&gt;
        &lt;xsl:variable name="RssFeedLink" select="$rss_WebPartID" /&gt;
        &lt;xsl:variable name="CurrentElement" select="concat($RssFeedLink,$CurPosition)" /&gt;
        &lt;xsl:if test="($CurPosition &amp;lt;= $rss_FeedLimit)"&gt;
          &lt;div class="item link-item" &gt;
            &lt;a class="title rss-title" href="{(string(link))}" &gt;
              &lt;xsl:value-of select="title"/&gt;
            &lt;/a&gt;
  
            &lt;xsl:if test="$rss_ExpandFeed = true()"&gt;
              &lt;xsl:call-template name="RSSMainTemplate.description"&gt;
                &lt;xsl:with-param name="DescriptionStyle" select="string('display:block;')"/&gt;
                &lt;xsl:with-param name="CurrentElement" select="$CurrentElement"/&gt;
              &lt;/xsl:call-template&gt;
            &lt;/xsl:if&gt;
            &lt;xsl:if test="$rss_ExpandFeed = false()"&gt;
              &lt;xsl:call-template name="RSSMainTemplate.description"&gt;
                &lt;xsl:with-param name="DescriptionStyle" select="string('display:none;')"/&gt;
                &lt;xsl:with-param name="CurrentElement" select="$CurrentElement"/&gt;
              &lt;/xsl:call-template&gt;
            &lt;/xsl:if&gt;
          &lt;/div&gt;
        &lt;/xsl:if&gt;
      &lt;/xsl:for-each&gt;
    &lt;/xsl:template&gt;
  
    &lt;xsl:template name="RSSMainTemplate.description" xmlns:ddwrt="http://schemas.microsoft.com/WebParts/v2/DataView/runtime" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt"&gt;
      &lt;xsl:param name="DescriptionStyle"/&gt;
      &lt;xsl:param name="CurrentElement"/&gt;
      &lt;div id="{$CurrentElement}" class="description" align="{$rss_alignValue}" style="{$DescriptionStyle} text-align:{$rss_alignValue};"&gt;
        &lt;div class="rss-date date"&gt;
          &lt;xsl:choose&gt;
            &lt;xsl:when test="string-length(pubDate) &gt; 0"&gt;
              &lt;xsl:variable name="pubDateLength" select="string-length(pubDate) - 3" /&gt;
              &lt;xsl:value-of select="ddwrt:FormatDate(pubDate,number($rss_LCID),3)"/&gt;
            &lt;/xsl:when&gt;
            &lt;xsl:otherwise&gt;
              &lt;xsl:value-of select="ddwrt:FormatDate(pubDate,number($rss_LCID),3)"/&gt;
            &lt;/xsl:otherwise&gt;
          &lt;/xsl:choose&gt;
        &lt;/div&gt;
        &lt;xsl:if test="string-length(description) &gt; 0"&gt;
          &lt;xsl:variable name="SafeHtml"&gt;
            &lt;xsl:call-template name="GetSafeHtml"&gt;
              &lt;xsl:with-param name="Html" select="description"/&gt;
            &lt;/xsl:call-template&gt;
          &lt;/xsl:variable&gt;
          - &lt;xsl:value-of select="$SafeHtml" disable-output-escaping="yes"/&gt;
        &lt;/xsl:if&gt;
        &lt;div class="description"&gt;
          &lt;a href="{ddwrt:EnsureAllowedProtocol(string(link))}"&gt;More...&lt;/a&gt;
        &lt;/div&gt;
      &lt;/div&gt;
    &lt;/xsl:template&gt;
  
    &lt;xsl:template name="GetSafeHtml"&gt;
      &lt;xsl:param name="Html"/&gt;
      &lt;xsl:choose&gt;
        &lt;xsl:when test="$rss_IsDesignMode = 'True'"&gt;
          &lt;xsl:value-of select="$Html"/&gt;
        &lt;/xsl:when&gt;
        &lt;xsl:otherwise&gt;
          &lt;xsl:value-of select="rssaggwrt:MakeSafe($Html)"/&gt;
        &lt;/xsl:otherwise&gt;
      &lt;/xsl:choose&gt;
    &lt;/xsl:template&gt;
  
  &lt;/xsl:stylesheet&gt;
  </code></pre>
  
  <p>Against this input: </p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;rss version="2.0"&gt;
    &lt;channel&gt;
      &lt;title&gt;Associates Update&lt;/title&gt;
      &lt;link&gt;
      https://square.com/
      &lt;/link&gt;
      &lt;description&gt; &lt;/description&gt;
      &lt;language&gt;en-us&lt;/language&gt;
      &lt;pubDate&gt;Mon, 22 December 2014 15:00:00 +0900&lt;/pubDate&gt;
      &lt;lastBuildDate&gt;Mon, 22 December 2014 15:00:00 +0900&lt;/lastBuildDate&gt;
      &lt;docs&gt;http://blogs.abc.edu/tech/rss/&lt;/docs&gt;
  &lt;item&gt;
        &lt;title&gt;Challenge to F1: New episodes of Understanding F1 has been released.&lt;/title&gt;
        &lt;link&gt;
        https://square.com/content/index/f1/understanding.html
        &lt;/link&gt;
        &lt;description&gt;&lt;/description&gt;
        &lt;category&gt;Challenge to F1&lt;/category&gt;
        &lt;pubDate&gt;Mon, 22 December 2014 15:00:00 +0900&lt;/pubDate&gt;
  &lt;/item&gt;
  &lt;/channel&gt;
  &lt;/rss&gt;
  </code></pre>
  
  <p>When I debug in Visual Studio I get XMLTransformException was unhandled by user code.</p>