title: How to call XSL template from java code?
body: <p>How to call XSL template from java code ?</p>
  
  <p>Please note that, I don't need to know how to transform xml docuemnt by XSL in Java.</p>
  
  <p>What I need exactly is that, I have some XSLT document that contains a template that do something, ex:</p>
  
  <pre><code>&lt;xsl:template match="/"&gt;
    &lt;html&gt;
    &lt;body&gt;
      &lt;h2&gt;My CD Collection&lt;/h2&gt;
      &lt;table border="1"&gt;
        &lt;tr bgcolor="#9acd32"&gt;
          &lt;th&gt;Title&lt;/th&gt;
          &lt;th&gt;Artist&lt;/th&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
          &lt;td&gt;.&lt;/td&gt;
          &lt;td&gt;.&lt;/td&gt;
        &lt;/tr&gt;
      &lt;/table&gt;
    &lt;/body&gt;
    &lt;/html&gt;
  &lt;/xsl:template&gt;
  </code></pre>
  
  <p>Then I need that template to be called from java code. How to ??</p>
  
  <p>Thanks All guyz, I did it, Please see :
  <a href="http://m-hewedy.blogspot.com/2009/12/how-to-call-xslt-template-from-your.html" rel="nofollow noreferrer">http://m-hewedy.blogspot.com/2009/12/how-to-call-xslt-template-from-your.html</a></p>