How can I evaluate a XSLT param/variable during a Xalan C++ transformation ?

P

philips

Hi everybody,


I am using the Xalan 1.8 C++ API in a real-time financial application which
need to apply XSLT transformations on XML input messages received on-the-
fly.
On the process output, I get the transformed output XML.

In the XSLT stylesheet, I defined several templates which take input
parameters (like function calls) and I also defined global XSL variables.

For security reasons, I need to log everything. I use the "XalanTransform"
object to make the transformation and I implemented the "TraceListener"
object to log most of the parser/transformer events.


=> I am pretty happy with this but I have still have this problem :

I did not find any way to display the params or global variables values
during the transforming.

I know that a "StylesheetExecutionContext" object implements the
"getVariable()" and "getParamVariable()" methods which should allow to do
this.

The problem is the "StylesheetExecutionContext" provided in the
"TracerEvent" and "SelectionEvent" only provide a "const" instance of the
"StylesheetExecutionContext" object which help from calling the
"getVariable()" and "getParamVariable()" methods which are not "const".


Does anybody know a way to log the params/global variable values during the
parsing/transforming ?

Can anybody tell me what I missed in the Xalan API philisophy ?


Thanks in advance for your help.



Phil
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,994
Messages
2,570,222
Members
46,809
Latest member
moe77

Latest Threads

Top