You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by bu...@apache.org on 2001/10/10 15:58:43 UTC

DO NOT REPLY [Bug 4070] New: - Trax XSLTC fails when use as a TransformerHandler

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4070>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4070

Trax XSLTC fails when use as a TransformerHandler

           Summary: Trax XSLTC fails when use as a TransformerHandler
           Product: XalanJ2
           Version: 2.2.x
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: Critical
          Priority: Other
         Component: org.apache.xalan.xsltc
        AssignedTo: xalan-dev@xml.apache.org
        ReportedBy: broeglin@essi.fr


TransformerFactory tFactory = TransformerFactory.newInstance();
      Templates translet = tFactory.newTemplates(new StreamSource(xslInURI));
      SAXTransformerFactory saxTFactory 
          = (SAXTransformerFactory)tFactory;
      TransformerHandler transformerHandler 
          = saxTFactory.newTransformerHandler(new StreamSource(xslInURI));

      transformerHandler.setResult(new StreamResult("toto.xml"));

      transformerHandler.startDocument();
      transformerHandler.startElement("", "test", "test", null);
      transformerHandler.endElement("", "test", "test");
      transformerHandler.endDocument();

This program fails on startDocument. 

Additionnaly :
transformerHandler.getTransformer() returns a null pointer.