Project

Profile

Help

Tracing xquery params and returns

Added by Anonymous over 19 years ago

Legacy ID: #2832362 Legacy Poster: Phillip Schanely (pschanely)

Is there a way to get XQuery parameter and return value data while the query is running? I've already built a custom TraceListener, but I'm not sure if I can use that to get the parameter and return values. Just looking for a pointer to get me headed in the right direction... Thanks! Phil


Replies (1)

RE: Tracing xquery params and returns - Added by Anonymous over 19 years ago

Legacy ID: #2832529 Legacy Poster: Michael Kay (mhkay)

You might like to try the debugger in Stylus Studio, which exchanges information with Saxon using some fairly intimate internal interfaces. In principle you could replicate this in your own TraceListener, but it's quite hard work (Stylus also interacts with Saxon at compile time to get a map of where the variables are). Alternatively, just use the trace() function. If full execution tracing is switched on (-T option), the output of trace() is now sent to the trace file, so you can identify more easily where it came from.

    (1-1/1)

    Please register to reply