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