I've gone back to using the "CLASSPATH setup before ant called" hack
which seems to work. I place the following jars on the command line:-
C:\Program Files\xalan-j_2_3_1\bin\xalan.jar
C:\Program Files\xalan-j_2_3_1\bin\xml-apis.jar
C:\Program Files\xalan-j_2_3_1\bin\xercesImpl.jar
Which as you guessed come from xalan-j 2.3.1.
And call the style command as follows (paths removed for brevity):-
<style
in="testresults.xml"
extension="html"
style="testresults.xsl"
out="testresults.html"
/>
I don't specifiy the processor parameter as this seems to look for an
xalan factory class that simply doesn't exist. I wonder if the style
command is out of date w.r.t. xalan?
-----Original Message-----
From: Diane Holt [mailto:[EMAIL PROTECTED]]
Sent: 03 May 2002 22:40
To: Ant Users List
Subject: RE: Overriding the default XSLT processor w/o using CLASSPATH
--- Russ Freeman <[EMAIL PROTECTED]> wrote:
> Interesting, thanks. Just tried it and although its looking for a
> different Class, still fails to find it. Odd.
I decided to get around to trying this XSLT stuff myself, but I'm having
a cruddy time of it as well. This is the error I get:
java.lang.NoClassDefFoundError: org/w3c/dom/traversal/NodeIterator
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:120)
at org.apache.xml.utils.ObjectPool.<init>(ObjectPool.java:100)
at
org.apache.xalan.transformer.TransformerImpl.<init>(TransformerImpl.java
:236)
at
org.apache.xalan.templates.StylesheetRoot.newTransformer(StylesheetRoot.
java:175)
at
org.apache.tools.ant.taskdefs.optional.TraXLiaison.setStylesheet(TraXLia
ison.java:112)
at
org.apache.tools.ant.taskdefs.XSLTProcess.configureLiaison(XSLTProcess.j
ava:459)
at
org.apache.tools.ant.taskdefs.XSLTProcess.process(XSLTProcess.java:368)
at
org.apache.tools.ant.taskdefs.XSLTProcess.execute(XSLTProcess.java:159)
at org.apache.tools.ant.Task.perform(Task.java:217)
at org.apache.tools.ant.Target.execute(Target.java:184)
at org.apache.tools.ant.Target.performTasks(Target.java:202)
at org.apache.tools.ant.Project.executeTarget(Project.java:601)
at org.apache.tools.ant.Project.executeTargets(Project.java:560)
at org.apache.tools.ant.Main.runBuild(Main.java:454)
at org.apache.tools.ant.Main.start(Main.java:153)
at org.apache.tools.ant.Main.main(Main.java:176)
So I must be doing something completely wrong -- I just have no idea
what.
Diane
=====
([EMAIL PROTECTED])
__________________________________________________
Do You Yahoo!?
Yahoo! Health - your guide to health and wellness
http://health.yahoo.com
--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.351 / Virus Database: 197 - Release Date: 19/04/2002
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.351 / Virus Database: 197 - Release Date: 19/04/2002
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>