[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Saxon 6.21 TRAX interface vs. Xerces

Subject: RE: Saxon 6.21 TRAX interface vs. Xerces
From: "Michael Kay" <mhkay@xxxxxxxxxxxx>
Date: Fri, 9 Mar 2001 17:15:46 -0000
saxon vs xerces
I'm guessing, but I think it could be caused because there's been an
incompatible change to some of the JAXP 1.1 classes since Saxon 6.2.1 was
built. I'm planning to rebuild with the latest version in the next few days.
Meanwhile, if Xerces is using a version that's incompatible with Saxon's
version, you've got a problem.

Mike Kay
Software AG

> -----Original Message-----
> From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of Julian F.
> Reschke
> Sent: 09 March 2001 15:35
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject:  Saxon 6.21 TRAX interface vs. Xerces
>
>
> Hi,
>
> I am trying to use Saxon's TRAX interface to do a
> transformation of XSLT/XML
> residing in Xerces DOMs. My code looks like:
>
>   public String transform (Document doc)
>   {
>     try {
>       String result = new String();
>       TransformerFactory tfactory = TransformerFactory.newInstance();
>
>       // Make sure the TransformerFactory supports the DOM feature.
>       if (tfactory.getFeature(DOMSource.FEATURE) &&
> tfactory.getFeature(DOMResult.FEATURE))
>       {
> System.err.println (tfactory.getClass().getName());
>         // Create the Templates from a DOM.
>         DOMSource dsource = new DOMSource(m_transform,
> "normalize.xslt");
> System.err.println ("0");
>         Templates templates = tfactory.newTemplates(dsource);
> System.err.println ("1");
>         Transformer transformer = templates.newTransformer();
> System.err.println ("2");
>         transformer.transform(new DOMSource(doc), new
> StreamResult(result));
> System.err.println ("3");
>       }
>
>       System.err.println (result);
>       return result;
>     }
>     catch (Exception e) {
> System.err.println (e);
> return null;
>     }
>
> I'm getting down to
>
> System.err.println ("0");
>
> then, I get the following exception:
>
> java.lang.LinkageError: Class org/w3c/dom/Node violates
> loader constraints
> at java.lang.ClassLoader.defineClass0(Native Method) 	at
> java.lang.ClassLoader.defineClass(ClassLoader.java:486) 	at
> java.security.SecureClassLoader.defineClass(SecureClassLoader.
> java:111) 	at
> java.net.URLClassLoader.defineClass(URLClassLoader.java:248) 	at
> java.net.URLClassLoader.access$100(URLClassLoader.java:56) 	at
> java.net.URLClassLoader$1.run(URLClassLoader.java:195) 	at
> java.security.AccessController.doPrivileged(Native Method) 	at
> java.net.URLClassLoader.findClass(URLClassLoader.java:188) 	at
> java.lang.ClassLoader.loadClass(ClassLoader.java:297) 	at
> sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286)
> 	at
> java.lang.ClassLoader.loadClass(ClassLoader.java:253) 	at
> java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
> 	at
> java.lang.ClassLoader.defineClass0(Native Method) 	at
> java.lang.ClassLoader.defineClass(ClassLoader.java:486) 	at
> java.security.SecureClassLoader.defineClass(SecureClassLoader.
> java:111) 	at
> java.net.URLClassLoader.defineClass(URLClassLoader.java:248) 	at
> java.net.URLClassLoader.access$100(URLClassLoader.java:56) 	at
> java.net.URLClassLoader$1.run(URLClassLoader.java:195) 	at
> java.security.AccessController.doPrivileged(Native Method) 	at
> java.net.URLClassLoader.findClass(URLClassLoader.java:188) 	at
> java.lang.ClassLoader.loadClass(ClassLoader.java:297) 	at
> sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286)
> 	at
> java.lang.ClassLoader.loadClass(ClassLoader.java:253) 	at
> java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
> 	at
> com.icl.saxon.TransformerFactoryImpl.newTemplates(TransformerF
> actoryImpl.jav
> a:117)
>
> Any help appreciated :-)
>
> Julian
>
>
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
>


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.