What Joseph said, above, except:

-- Create and cache a Templates object, not a Transformer.  Templates are
thread-safe in-memory representations of stylesheets.  You then call
templates.newTransformer() every time you need a Transformer (which should
be pretty cheap); you can then keep each Transformer (on a single thread!)
and reuse it as many times as you like, or you can throw it away and ask
for a new one each time.

-- Oh, you'll need a build of Xalan-J 2.x to do this.  1.x is deprecated
and doesn't support these nifty new features.

- Shane

Reply via email to