collision between xalan and xerces

E

Elhanan

hi..


i've been trying to use xalan for transformations and and xercest for
parsing xml.

i got my transformation to work.


when i first tried xerces 2.5.0 i got
java.lang.NoSuchMethodError:
javax.xml.parsers.DocumentBuilderFactory.getSchema()Ljavax/xml/validation/Schema;

i've read that it uses jaxp-api and not java's own xml interface, and i
saw that you needed to set -Djava.endorsed.dirs to a lib that had
jaxp-api in it, so i did that, and added dom, and xalan jars
(otherwise i would get problems with xpath, and dom).


but now my transformations fell apart with an error of:
ERROR: 'An attribute whose value must be a QName had the value '''

(but it worked before!!!!)

(so that's going on?)
 
E

Elhanan

i think i got it now..

to all you gurus who are smiling to one another, go away :(

it would appear that in code the default xslt processor is changed to
xsltc, which is rather unreliable. in order to go back to using the
default xalan implentation

http://java.sun.com/webservices/docs/1.4/jaxp/ReleaseNotes.html

do this:
javax.xml.transform.TransformerFactory=

com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl

if you ever consdider using xsltc, be warn, it's crap!!, no matter
faster you get, it's unstable, i'm writing this with the blood of the
dead in 1:30 am, weekend, you have been told, stay away from xsltc!!!!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,733
Messages
2,569,440
Members
44,830
Latest member
ZADIva7383

Latest Threads

Top