[jdom-interest] apache Xalan processor

skeens skeens at mobile.rogers.com
Fri May 11 17:54:16 PDT 2001

Xalan 2 & JAXP:
Have a look at the XSLTResult and XSLTSource stuff in jdom-contrib. You'll have to download it with CVS.  Note that it requires JAXP and xalan 2.

Xalan 1.2:
If you want to use xalan 1+ you'll have covert your JDOM document to a DOM tree.  You can also try using StringWriter and StringReader as your XSLTInputSource and result.

I've tried both and found that using the StringReader, StringWriter method is faster than using the stuff in jdom-contrib.  Be aware though that this was with very small XML documents.  I don't know what the differences would be with large xml files.
There was about a 60% timr difference.

I'm writing this from my Blackberry so I can not give you any examples - sorry!

Steven D. Keens.     mailto:skeens at planetfred.com
Planetfred Inc.        http://www.planetfred.com/ 

-----Original Message-----
From: Antony Corfield <Antony.Corfield at las.ox.ac.uk>
Date: Fri, 11 May 2001 15:22:19 +0100
To: "'jdom-interest at jdom.org'" <jdom-interest at jdom.org>
Subject: [jdom-interest] apache Xalan processor

any idea if  the Xalan XSL processor supports processing of JDOM Elements
rather than org.w3c.Dom Nodes?

Antony Corfield                           Java Developer JAFER Project

email: Antony.Corfield at las.ox.ac.uk       Libraries Automation Service
  tel: +44 (01865) 284454                 99 Banbury Rd
  fax: +44 (01865) 278275                 Oxford OX2 6JX

To control your jdom-interest membership:

More information about the jdom-interest mailing list