[ http://issues.apache.org/jira/browse/XALANJ-1193?page=all ] Morris Kwan closed XALANJ-1193: -------------------------------
> XSLTC: Incomplete implementation in SAX2DOM > ------------------------------------------- > > Key: XALANJ-1193 > URL: http://issues.apache.org/jira/browse/XALANJ-1193 > Project: XalanJ2 > Type: Bug > Components: XSLTC > Versions: Latest Development Code > Environment: Operating System: All > Platform: All > Reporter: Morris Kwan > Assignee: Morris Kwan > > The new -xsltc option for the Process command line does not work with the d2d > flavor for XSLTC. > Command line: > % java org.apache.xalan.xslt.Process -xsltc -flavor d2d -in my.xml -xsl my.xsl > Error message: > java.lang.ClassCastException: org.apache.xerces.dom.DocumentFragmentImpl > at org.apache.xalan.xsltc.trax.SAX2DOM.<init>(SAX2DOM.java:101) > at > org.apache.xalan.xsltc.runtime.output.TransletOutputHandlerFactory.ge > tTransletOutputHandler(TransletOutputHandlerFactory.java:176) > at > org.apache.xalan.xsltc.trax.TransformerImpl.getOutputHandler(Transfor > merImpl.java:305) > at > org.apache.xalan.xsltc.trax.TransformerImpl.transform(TransformerImpl > .java:241) > at org.apache.xalan.xslt.Process.main(Process.java:745) > This uncovers a problem in the XSLTC SAX2DOM implementation. The SAX2DOM > constructor accepts a Node, but it always expects the Node to be a Document. > We > need to add support for other non-Document Nodes (e.g. Element and > DocumentFragment). -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]