>Thanks for responding!  Basically what I would like to do is wrap 
>the transform in a java class and collect the data matched during 
>transformation via static methods(extensions).

That's certainly doable.

>The bridge I'm trying to cross in my understanding is how the
>static data can be synchronized to ensure no cross pollination
>during various transactions hitting these static methods
>populating this static object.

If you run thwo transformations at once they could indeed call the same 
extension at the same time. So you, as a programmer,  have to make your 
extension methods and/or the objects which they're accessing thread-safe. 
If the "transaction" may be gathered from multiple places in the 
stylesheet, you need to design a transaction layer into your extensions.

Or you can design the layer which is calling Xalan to ensure only one 
stylesheet/XPath runs at a time, but that has obvious 
latency-versus-throughput issues.

______________________________________
Joe Kesselman  / IBM Research

Reply via email to