Xalan will work with JRun but you need to use the version which extracts as
xalan-j_1_2_2 - I then have xalan.jar (427kb)and xerces.jar (786kb) in the
jdk1.3/jre/lib/ext directory

You can then extract the classes in xalansamples.jar into a new web
application and then you have the source code for DefaultApplyXSL which is a
great servlet to pass and xml document name and xsl stylesheet to to process
the transformation. You'll need to compile them and make sure the new jars
are in your classpath (xalan/xerces). I can't get to xml.apache.org right
now but the documentation from extracting xalan-j_1_2_2 has information on
this servlet at xalan-j_1_2_2/docs/samples.html#servlet
eg. I run this:

http://apollo/xml/servlet/DefaultApplyXSL?URL=/xml/researchdocument.xml&xslU
RL=/xml/researchdocument_in_html4.xsl

or

http://apollo/xml/servlet/DefaultApplyXSL?URL=/xml/researchdocument.xml&xslU
RL=/xml/researchdocument_in_wml.xsl

in my local testing

Also note that in terms of conflicts with jaxp.jar and parser.jar you MUST
enter the path to xerces.jar at the start of your CLASSPATH or else at least
before any reference to the others jars

I will be interested to see how the new JRun beta integrates the Servlet 2.3
spec's Filter mechanism to allow auto mapping of XSLTs - any news on
JRun3.1's beta availability anyone? Have tried beta.allaire.com but can't
see much there.


in reply to:
----------------------------------------------------------------------

Date: Tue, 06 Mar 2001 13:50:10 -0500
From: "Moore, Jim" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: xalan and jrun
Message-ID: <0FA309ACCF4DD411820500D0B784AB7C167CAB@EXCHANGE>

Has anyone had any luck getting xalan to work as an xsl processor in jrun?
anything i try throws the huge errors below. i want to use xalan because we
are not sure that jrun will be used in the live environment, currently we
are using it only as a dev server, so i don't want to rely on any built-in
jrun specific functionality.

--jim



___________________
Chris Newman
[EMAIL PROTECTED]
___________________
Secure Email PGP key
www.floor51.com/chrisnewman.asc


Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to