Evaluation of a XSL parameter in Xalan C++ transformation ?
Having trouble installing Oxygen? Got a bug to report? Post it all here.
-
- Posts: 1
- Joined: Sat Jul 17, 2004 12:05 am
Evaluation of a XSL parameter in Xalan C++ transformation ?
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 "XalanTransformer" 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 philosophy ?
Thanks in advance for your help.
Phil
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 "XalanTransformer" 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 philosophy ?
Thanks in advance for your help.
Phil
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ Artificial Intelligence (AI Positron Assistant add-on)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service