[
http://issues.apache.org/jira/browse/XALANJ-2063?page=comments#action_59496 ]
PJ Fanning commented on XALANJ-2063:
------------------------------------
import javax.xml.transform.*;
import javax.xml.transform.sax.*;
import javax.xml.transform.stream.*;
TransformerFactory tf1 = new
org.apache.xalan.processor.TransformerFactoryImpl();
Templates tmp = tf1.newTemplates(new
StreamSource("C:\\cdcatalog.xsl"));
SAXTransformerFactory stf = new
org.apache.xalan.xsltc.trax.TransformerFactoryImpl();
TransformerHandler th = stf.newTransformerHandler(tmp);
> ClassCastException in org.apache.xalan.xsltc.trax.TransformerFactoryImpl
> ------------------------------------------------------------------------
>
> Key: XALANJ-2063
> URL: http://issues.apache.org/jira/browse/XALANJ-2063
> Project: XalanJ2
> Type: Bug
> Components: transformation
> Versions: 2.6
> Environment: Windows XP, JDK1.5.0_01
> Reporter: PJ Fanning
> Attachments: cdcatalog.xsl
>
> Occurs in method newTransformerHandler(Templates templates). There is a cast
> to TransformerImpl. There is more than one class shipped in the xalan jar
> that subclasses javax.xml.transform.Transformer.
> The background to this is that I created the Templates object using a
> different TransformerFactory (also a Xalan factory).
> The factory used to create the templates object was created using:
> javax.xml.transform.TransformerFactory#newInstance()
> The factory used to create the transformer handler object was created using:
> javax.xml.transform.SAXTransformerFactory#newInstance()
--
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
-
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]