[jdom-interest] Xalan Clarification
Ian Lea
ian at digimem.net
Thu Apr 3 05:36:06 PST 2003
It probably doesn't much matter which version of Xalan you use, but it can
get very confusing, especially since JDK 1.4 ships with an old version,
although perhaps later than the version that comes with JDOM B8.
Since you know about the environment check perhaps you have also seen the stuff
in the Xalan FAQ at http://xml.apache.org/xalan-j/faq.html#faq-N100CB
Unless Tomcat 4 and/or JWSDP do something clever I think you should put the
version of Xalan that you want to use, and perhaps a matching copy of Xerces
or your favourite parser, in the endorsed directory. On my system, linux and
java 1.4.1_02-b06, that is jre/lib/endorsed rather than lib/endorsed as it
says in the Xalan FAQ.
--
Ian.
> smartt at dcs.kcl.ac.uk (JS) wrote
>
> Hi there,
> I am trying to do an XSLT transformation in a Servlet, given a result set
> from a datbase.
> I am using jdom-b8, (which has xalan.jar in its library directory which I
> have also added to my classpath.), Win98, jdk 1.4, and something which I
> think is adding futher confusion to the brew.. the Java Web Services
> Development Pack(JWSDP) - with integrated Tomcat 4.0.
> Which version of xalan should I be using with JDOM to do this
> transformation, and where should it be on my system??
> Many thanks
> JS
>
> ps - I've also included the output from an "environment check" I did on my
> system using "java org.apache.xalan.xslt.EnvironmentCheck [-out outFile]"
> (which I got from the apache.org website).
>
>
> #---- BEGIN writeEnvironmentReport($Revision: 1.7 $): Useful properties
> found: ----java.version=1.4.1_01
> #---- BEGIN Listing XML-related jars in: foundclasses.java.class.path ----
> xerces.jar-path=c:\project\jdom\lib\xerces.jar
> xerces.jar-apparent.version=xerces.jar WARNING.present-unknown-version
> dom.jar-path=c:\project\jdom\build\jdom.jar
> dom.jar-apparent.version=dom.jar present-unknown-version
> xalan.jar-apparent.version=xalan.jar from jaxp-1.1
> xalan.jar-path=c:\project\jdom\lib\xalan.jar
> #----- END Listing XML-related jars in: foundclasses.java.class.path -----
> version.JAXP=1.1
> java.ext.dirs=C:\PROGRAM FILES\JAVA\J2RE1.4.1_01\lib\ext
> version.crimson=not-present
> version.SAX=2.0
> java.class.path=c:\j2sdk1.4.1_01\lib\tools.jar;C:\project\jdom\lib\xerces.jar;C:\project\jdom\lib\ant.jar;C:\windows\wsdp-1_0_01\common\lib\servlet.jar;C:\project\jdom\build\jdom.jar;C:\project\jdom-contrib\build\jdom-contrib.jar;C:\Program
> Files\JCreatorLE\MyProjects\ConnectonPool;c:\project\research\coreservlets;C:\project\jdom\lib\xalan.jar;version.xerces=not-present
> sun.boot.class.path=C:\PROGRAM
> FILES\JAVA\J2RE1.4.1_01\lib\rt.jar;C:\PROGRAM
> FILES\JAVA\J2RE1.4.1_01\lib\i18n.jar;C:\PROGRAM
> FILES\JAVA\J2RE1.4.1_01\lib\sunrsasign.jar;C:\PROGRAM
> FILES\JAVA\J2RE1.4.1_01\lib\jsse.jar;C:\PROGRAM
> FILES\JAVA\J2RE1.4.1_01\lib\jce.jar;C:\PROGRAM
> FILES\JAVA\J2RE1.4.1_01\lib\charsets.jar;C:\PROGRAM
> FILES\JAVA\J2RE1.4.1_01\classesversion.DOM.draftlevel=2.0fd
> version.xalan2=Xalan;Java;Xalan Java 2.2.D11;
> version.DOM=2.0
> version.xalan1=not-present
> #----- END writeEnvironmentReport: Useful properties found: -----
> # YAHOO! Your environment seems to be OK.
>
>
>
> _______________________________________________
> To control your jdom-interest membership:
> http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@yourhost.com
>
----------------------------------------------------------------------
Searchable personal storage and archiving from http://www.digimem.net/
More information about the jdom-interest
mailing list