title: How to transform JSON with XSLT?
body: <p>I have the following XSLT file that is already working with the XML file we have on ActiveMQ. The thing is that we are upgrading the system and we don't have the XML view anymore. Instead we have an URL that return in JSON the queue informations.</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="ISO-8859-1"?&gt;
  &lt;xsl:stylesheet version="1.0"
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"&gt;
  
      &lt;xsl:template match="/"&gt;
          &lt;html&gt;
              &lt;body&gt;
              &lt;h2&gt;PROJECT Notification&lt;/h2&gt;
              &lt;div style="width:600px;background-color:#e5eecc;border:1px solid #98bf21;margin:10px;"&gt;
                  &lt;table border="1" style="border-style:dashed"&gt;
                      &lt;tr bgcolor="#9acd32"&gt;
                          &lt;th width="300px;"&gt;Queue Name&lt;/th&gt;
                          &lt;th&gt;Queue Size&lt;/th&gt;
                      &lt;/tr&gt;
                      &lt;xsl:apply-templates select="queues" /&gt;
                  &lt;/table&gt;
              &lt;/div&gt;
            &lt;/body&gt;
         &lt;/html&gt;
      &lt;/xsl:template&gt;
  
      &lt;xsl:template match="queue"&gt;
          &lt;tr&gt;
              &lt;td&gt;&lt;xsl:value-of select="@name"/&gt;&lt;/td&gt;&lt;td&gt;&lt;xsl:value-of select="./stats/@size" /&gt;&lt;/td&gt;
          &lt;/tr&gt;
      &lt;/xsl:template&gt;
  &lt;/xsl:stylesheet&gt; 
  </code></pre>
  
  <p>I want to know if that's possible to keep using this same XSLT file, just modifying the tags to start reading from the JSON URL instead.</p>
  
  <p>I'm using camel to route to this XSLT, but I didn't want to create a Processor to convert the JSON to XML. Instead I want to use the JSON right away.</p>