I'm curious what others are doing for this problem.

I have an extension element (and to be fair, this works, it works well, but
I barely understand how this all works, so bear with me). It's a version of
the Redirect element that creates JMS messages out of XML bits.

I need to pass some extra information to the element class that is not
available within the XML or the stylesheet itself (in this case a externally
generated transaction id).

What is the best way to pass this information that is available in the
driver program (simple modification of the Stylizer.java from the Sun
tutorial) in to a place that would be accessible by the Elements code?

org.apache.xalan.extensions.XSLProcessorContext doesn't seem to have any
place that I might add a simple property that the Element could use.

It seems I needs some kind of global Factory or Singleton-esque Thing to get
this information, but that seems somewhat yucky as well.

Can I use a stylesheet parameter? Is there a way the driver program can set
this and the Element can access this?

That's new territory for me.

Any thoughts appreciated.

Thanx!

Regards,

Will Hartung
([EMAIL PROTECTED])



Reply via email to