title: XSL FO failing XSLT translation in JBOSS AS 7
body: <p>I have the following code </p>
  
  <pre><code>SAXTransformerFactory stfactory;
  stfactory = (SAXTransformerFactory) TransformerFactory.newInstance();
  
  /// ClassLoaderUriResolver is another class.
   stfactory.setURIResolver(new ClassLoaderUriResolver()); 
  
   InputStream is = this.getClass().getClassLoader().getResourceAsStream("xsl/Hello.xsl");
   StreamSource streamSource = new StreamSource(is);
  
    mergeHandler = stfactory.newTransformerHandler(streamSource);
  
   XMLReader xmlReader = XMLReaderFactory.createXMLReader();
  </code></pre>
  
  <p>and some more code.....</p>
  
  <p>The problem is in the the line 
        <strong><em>mergeHandler = stfactory.newTransformerHandler(streamSource);</em></strong></p>
  
  <p>When I run this program as a standalone JAVA program in JBOSS IDE with same set of jars</p>
  
  <ul>
  <li>xalan-2.7.0.jar</li>
  <li>xercesImpl-2.7.1.jar</li>
  <li>xml-apis-1.3.04.jar</li>
  <li>xml-apis-ext-1.3.04.jar</li>
  </ul>
  
  <p>I see that the call stfactory.newTransformerHandler(streamSource);</p>
  
  <p>returns<br>
  <strong>org.apache.xalan.transformer.TransformerHandlerImpl</strong></p>
  
  <p><strong>and MY XLST translation works fine as a simple java program</strong>      </p>
  
  <p>Where as the same code when it is running on Jboss AS 7 container 
  I see that the call stfactory.newTransformerHandler(streamSource);</p>
  
  <p>returns<br>
  <strong>org.apache.xalan.transformer.TransformerIdentityImpl</strong> (Not TransformerHandlerImpl)</p>
  
  <p>As a result when I run on Jboss AS 7 Container as part of Web applicataion the XSLT translation is not happening and I dont see any errors. My XLS FO document is not translated.</p>
  
  <p>How do I force the code to use <strong>org.apache.xalan.transformer.TransformerHandlerImpl</strong> ?</p>