You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by IndianAtTech <in...@gmail.com> on 2004/11/15 06:16:48 UTC
XALAN Vs XSLTC
Hello All,
I would like to knoew the difference between the xalan and xsltc
and also i would like to know some sample examples on xsltc
thanks
sudhakar
---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org
Re: Is it XSLTC Bug or something I missed here??
Posted by Henry Zongaro <zo...@ca.ibm.com>.
Hi, Sudhaker.
IndianAtTech <in...@gmail.com> wrote on 11/15/2004 04:41:42 AM:
> While working with following example I get this error. How to resolve
> this issue??
>
[Example snipped. HZ]
>
> java.lang.IllegalAccessError: class
> org.apache.xml.dtm.ref.sax2dtm.SAX2DTM2$AncestorIterator cannot access
> its superclass org.apache.xml.dtm.ref.
[Stack trace snipped. HZ]
The most common reason for the stack trace you describe is that you
are JDK 1.4 or later, and some classes XSLTC relies upon are being loaded
from a xalan.jar that is on your class path, and others are being loaded
as part of the Java run-time. Read the following FAQ entries for more
information: [1,2].
Thanks,
Henry
[1] http://xml.apache.org/xalan-j/faq.html#faq-N1032B
[2] http://xml.apache.org/xalan-j/faq.html#jdk14
------------------------------------------------------------------
Henry Zongaro Xalan development
IBM SWS Toronto Lab T/L 969-6044; Phone +1 905 413-6044
mailto:zongaro@ca.ibm.com
---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org
Is it XSLTC Bug or something I missed here??
Posted by IndianAtTech <in...@gmail.com>.
Hello All,
While working with following example I get this error. How to resolve
this issue??
import java.io.FileOutputStream;
import java.util.Properties;
import javax.xml.transform.Transformer;
import javax.xml.transform.TransformerFactory;
import javax.xml.transform.stream.StreamResult;
import javax.xml.transform.stream.StreamSource;
import java.io.*;
public class XSLTCTest
{
public static void main(String args[])
{
try
{
String s = "javax.xml.transform.TransformerFactory";
String s1 = "org.apache.xalan.xsltc.trax.TransformerFactoryImpl";
Properties properties = System.getProperties();
properties.put(s, s1);
System.setProperties(properties);
String s2 = args[0];
String s3 = args[1];
String s4 = args[2];
TransformerFactory transformerfactory =
TransformerFactory.newInstance();
Transformer transformer =
transformerfactory.newTransformer(new StreamSource(s2));
transformer.transform(new StreamSource(s3), new
StreamResult(new FileOutputStream(s4)));
}
catch(Throwable ex)
{
StringWriter st=new StringWriter();
PrintWriter pw=new PrintWriter(st);
ex.printStackTrace(pw);
System.out.println(st);
}
}
}
java.lang.IllegalAccessError: class
org.apache.xml.dtm.ref.sax2dtm.SAX2DTM2$AncestorIterator cannot access
its superclass org.apache.xml.dtm.ref.DTMDefaultBaseIterators$InternalAxisIteratorBase
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:502)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:250)
at java.net.URLClassLoader.access$100(URLClassLoader.java:54)
at java.net.URLClassLoader$1.run(URLClassLoader.java:193)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:186)
at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:265)
at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)
at org.apache.xalan.xsltc.dom.XSLTCDTMManager.getDTM(XSLTCDTMManager.java:351)
at org.apache.xalan.xsltc.dom.XSLTCDTMManager.getDTM(XSLTCDTMManager.java:228)
at org.apache.xalan.xsltc.trax.TransformerImpl.getDOM(TransformerImpl.java:437)
at org.apache.xalan.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:597)
at org.apache.xalan.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:277)
at XSLTCTest.main(XSLTCTest.java:29)
Thanks
Sudhakar
---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org
Re: XALAN Vs XSLTC
Posted by Brian Minchau <mi...@ca.ibm.com>.
Sudhakar,
Xalan-J interpretive creates Java objects that represent the stylesheet
elements, and during the running of a transformation methods are invoked on
those objects.
Xalan-J XSLTC generates Java byte code that represents the stylesheet, and
during the running of a transformation that bytecode is run.
Most of the time XSLTC runs faster than Xalan-J interpretive.
Go to http://xml.apache.org/xalan-j/ and click on the "Using XSLTC" on the
menu on the left hand side of that page for more information on XSLTC.
Also from that same mene see "XSLTC Design".
----------
Brian Minchau
XSLT Development, IBM Toronto
e-mail: minchau@ca.ibm.com
IndianAtTech
<indianattech@gma
il.com> To
xalan-dev@xml.apache.org
11/15/2004 12:16 cc
AM
Subject
XALAN Vs XSLTC
Please respond to
xalan-dev
Hello All,
I would like to knoew the difference between the xalan and xsltc
and also i would like to know some sample examples on xsltc
thanks
sudhakar
---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org