title: JSON output after XSLT on IBM Datapower
body: <p>There is two XSL transformations in IBM Datapower one after another. First of them contains url-open call and returns some <strong><em>BINARY NODE</em></strong>. That node contains .gz archive with JSON doc inside. Second transformation is below:</p>
  
  <pre><code>&lt;xsl:output method="text" encoding="utf-8" indent="yes" media-type="application/json"/&gt;
  &lt;dp:input-mapping type="ffd" href="local:///binaryNode.ffd"/&gt;
  
  &lt;xsl:variable name="input64" select="dp:binary-encode(/object/message/node())"/&gt;
  
  &lt;xsl:template match="/"&gt;
     &lt;xsl:message terminate="no" dp:priority="alert" dp:type="all"&gt;input64&lt;xsl:copy-of select="$input64"/&gt;&lt;/xsl:message&gt;
     &lt;xsl:variable name="outputJson" select="dp:inflate($input64, 'gzip')"/&gt;
     &lt;xsl:copy-of select="$outputJson"/&gt;
  &lt;/xsl:template&gt;
  </code></pre>
  
  <p>Binary node first transforms to Base64 string ($input64) and then unpacks by dp:inflate function. $outputJson variable definitely contains a JSON string. But XSLT output is empty string despite of  instruction <code>&lt;xsl:copy-of select="$outputJson"/&gt;</code>. How can I get a JSON on output?</p>