title: XSLT Parsing error when using Umbraco GetMedia
body: <p>I am trying to retrieve the url to an image using the GetMedia mediapicker.</p>
  
  <p>The code below works fine:</p>
  
  <pre><code>&lt;xsl:for-each select="umbraco.library:GetXmlNodeById(1123)/* [@isDoc]"&gt;
    &lt;article&gt;
       &lt;img width="1822" height="600"&gt;
         &lt;xsl:attribute name="src"&gt;
           &lt;xsl:value-of select="umbraco.library:GetMedia(1139, 0)/umbracoFile" /&gt;
         &lt;/xsl:attribute&gt;
       &lt;/img&gt;
       &lt;div class="contents"&gt;
          &lt;h1&gt;
            &lt;xsl:value-of select="bannerHeading1"/&gt;
          &lt;/h1&gt;
        &lt;/div&gt;
    &lt;/article&gt;
  &lt;/xsl:for-each&gt;
  </code></pre>
  
  <p>However, if I replace the key line with this:</p>
  
  <pre><code>&lt;xsl:value-of select="umbraco.library:GetMedia(bannerImage, 0)/umbracoFile" /&gt;
  </code></pre>
  
  <p>I get a parsing error with the exception being an <strong>OverflowException</strong> (Value was either too large or too small for an Int32), which suggests that it's not the 1139 that is being passed in.</p>
  
  <p>Is there a way I can pass in the property I want?  The value of "bannerImage" is 1139 as I want it to be?</p>
  
  <p>Thanks for any help.</p>
  
  <p><strong>Further:</strong> This is the XML structure being returned by GetXMLNodeById:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8" ?&gt;
  &lt;HomepageBanner id="1141" parentID="1123" level="3" writerID="0" creatorID="0" nodeType="1124" template="1125" sortOrder="0" createDate="2013-08-12T15:53:48" updateDate="2013-08-12T15:54:18" nodeName="Members" urlName="members" writerName="admin" creatorName="admin" path="-1,1065,1123,1141" isDoc=""&gt;
    &lt;bannerImage&gt;1139&lt;/bannerImage&gt;
    &lt;bannerHeading1&gt;Members Area&lt;/bannerHeading1&gt;
    &lt;bannerHeading2&gt;..the place for all your needs&lt;/bannerHeading2&gt;
  &lt;/HomepageBanner&gt;
  </code></pre>