473,387 Members | 1,779 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

How can I evaluate a XSLT param/variable during a 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 "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


Jul 20 '05 #1
2 1978


philips wrote:

I am using the Xalan 1.8 C++ API in a real-time financial application which


If you don't get an answer here of someone with knowledge of the Xalan
C++ API then maybe one of the mailing lists
http://xml.apache.org/mail.html#xalan-c-users
can help.

--

Martin Honnen
http://JavaScript.FAQTs.com/

Jul 20 '05 #2
Thanks for your advice, Martin.
I am going to try the mailing-list.

If you don't get an answer here of someone with knowledge of the Xalan
C++ API then maybe one of the mailing lists
http://xml.apache.org/mail.html#xalan-c-users
can help.

Jul 20 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Ramon M. Felciano | last post by:
Helo all -- I'm trying to gain a deeper understand for what type of semi-declarative programming can be done through XML and XPath/XSLT. I'm looking at graph processing problems as a testbed for...
3
by: Mike Whittemore | last post by:
I am trying to convert an HTML table into a list of name-value pairs, one pair per field in the table. I believe my XSLT is correct, but I've tried both Xalan and Saxon, which both fail with...
4
by: Son KwonNam | last post by:
In XSLT, is this possible to get value from xml using XPath which is in XSLT variable? I mean XPath strings can be dynamic while XSL Transforming. If possible, How?? Because I'm not a...
1
by: Jens Mueller | last post by:
Hi there, this is a Java-XML Question, so I am not sure whether this is the right place, haven't found anything better .... I try to convert a Java object to XML via SAX and let the FOP...
7
by: RC | last post by:
First, let me say I couldn't find a group discuss XML/XSLT. So I only choose the closest groups to post this message. Here is part of my *.xsl file <xsl:stylesheet...
12
by: Keith Chadwick | last post by:
I have a fairly hefty XSLT file that for the sake of debugging and clarity I wish to split into some separate sub-templates contained within the same file. The master template calls an...
3
by: super.raddish | last post by:
Greetings, I am relatively new to, what I would call, advanced XSLT/XPath and I am after some advice from those in the know. I am attempting to figure out a mechanism within XSLT to compare the...
4
by: harryajh | last post by:
Using xalan 2.7.1 I'm using XSLT extension functions to retrieve special bits of code from a java class static methoth during transformation. What I'd like to know is if there is anyway to...
2
by: killy971 | last post by:
I have been testing different libraries to process XSL transformations on large XML files. The fact is that I read a document from Intel, stating their library (XSLT accelerator) was more twice...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.