Santiago,
I will try to reproduce the problem org.apache.xalan.xslt.Process
and the -XSLTC option.
Below is the entire code that I used.
String key = "javax.xml.transform.TransformerFactory";
String value = "org.apache.xalan.xsltc.trax.TransformerFactoryImpl";
Properties props = System.getProperties();
props.put(key, value);
System.setProperties(props);
System.setProperty("javax.xml.parsers.DocumentBuilderFactory",
"org.apache.xerces.jaxp.DocumentBuilderFactoryImpl");
try {
TransformerFactory tFactory = TransformerFactory.newInstance();
tFactory.setAttribute("generate-translet", Boolean.TRUE);
Templates translet = tFactory.newTemplates(new
StreamSource("Big.txt"));
Transformer transformer = translet.newTransformer();
transformer.transform(new StreamSource("todo.xml"),
new StreamResult(new
FileOutputStream("todo.html")));
transformer.transform(new StreamSource("todotoo.xml"),
new StreamResult(new
FileOutputStream("todotoo.html")));
}
catch (Exception e) {
e.printStackTrace();
}
With Regards
Palanisamy
========================================================================
-----Original Message-----
From: Santiago Pericas-Geertsen
[mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 03, 2003 5:25 PM
To: [EMAIL PROTECTED]
Subject: Re: Is this a bug? Could not load the translet class - ERROR
Palanisamy,
I see. Not sure what your app is doing, but if you could reproduce the
error using org.apache.xalan.xslt.Process and the -XSLTC option, you should
file a bug at http://nagoya.apache.org/bugzilla
Thanks.
-- Santiago
----- Original Message -----
From: "Gounder, Palanisamy" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, June 03, 2003 6:06 PM
Subject: RE: Is this a bug? Could not load the translet class - ERROR
> Santiago,
> Yes, I am using Xalan-J 2.5.0 and today I even tried with Xalan-J
> 2.5.1.
>
> I used one of the example program and it can be found in
> http://www.geocities.com/ial7158/JAXPTransletMultipleTransformations.java
> and here is how I ran it.
>
> java -Xss100m -Xms128m -Xmx256m
> -Xbootclasspath/p:.;xalan.jar;xercesImpl.jar;xml-apis.jar;
> JAXPTransletMultipleTransformations
>
> Other files that I used can be found here.
http://www.geocities.com/ial7158/
>
>
> With Regards
> Palanisamy
>
> -----Original Message-----
> From: Santiago Pericas-Geertsen
> [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, June 03, 2003 4:07 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Is this a bug? Could not load the translet class - ERROR
>
>
> Palanisamy,
>
> It does look like a bug. What version of Xalan/XSLTC are you using? Have
> you tried 2.5.x?
>
> -- Santiago
>
> ----- Original Message -----
> From: "Gounder, Palanisamy" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, June 03, 2003 12:47 PM
> Subject: Is this a bug? Could not load the translet class - ERROR
>
>
> > Is this a bug?
> >
> > -----Original Message-----
> > From: Gounder, Palanisamy
> > Sent: Monday, June 02, 2003 9:46 AM
> > To: '[EMAIL PROTECTED]'
> > Subject: javax.xml.transform.TransformerConfigurationException: Could
> > not load the translet class - ERROR
> >
> >
> > Hello,
> > I am using XSLTC with TraX API. When my XSL size grows bigger,
I
> > get an error as below while getting new Transformer from the Templates.
> >
> >
> > javax.xml.transform.TransformerConfigurationException: Could not load
the
> > translet class 'RuleXsl'.
> > at
> >
>
org.apache.xalan.xsltc.trax.TemplatesImpl.defineTransletClasses(TemplatesImp
> > l.java:311)
> > at
> >
>
org.apache.xalan.xsltc.trax.TemplatesImpl.getTransletInstance(TemplatesImpl.
> > java:329)
> > at
> >
>
org.apache.xalan.xsltc.trax.TemplatesImpl.newTransformer(TemplatesImpl.java:
> > 366)
> > at
> >
>
prj_translet.JAXPTransletMultipleTransformations.doTransform(JAXPTransletMul
> > tipleTransformations.java:28)
> > at
> >
>
prj_translet.JAXPTransletMultipleTransformations.main(JAXPTransletMultipleTr
> > ansformations.java:79)
> >
> >
> > The XSL that I am using can be found here
> > http://www.geocities.com/ial7158/Big.txt
> >
> > Any idea why this happens?
> >
> > Thank you in advance
> > Palanisamy