Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > collision between xalan and xerces

Reply
Thread Tools

collision between xalan and xerces

 
 
Elhanan
Guest
Posts: n/a
 
      05-11-2006
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?)

 
Reply With Quote
 
 
 
 
Elhanan
Guest
Posts: n/a
 
      05-11-2006
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...easeNotes.html

do this:
javax.xml.transform.TransformerFactory=

com.sun.org.apache.xalan.internal.xsltc.trax.Trans formerFactoryImpl

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!!!!

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Upgrade of Xalan 1.2.2 and Xerces 1.4.4 to Xalan 2.6 and Xerces 2.6.2 cvissy XML 0 11-16-2004 07:06 AM
I need help with xerces-c and xalan-c, please help ------------------------------- Janice XML 0 10-12-2004 04:08 AM
xerces and xalan sp Java 2 09-18-2004 10:34 PM
Run-Time Check Failure #2 using XPath with Xalan and Xerces Francesc Guim Bernat XML 0 04-30-2004 01:13 AM
xalan and Xerces? Alex XML 1 10-25-2003 06:48 AM



Advertisments