-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tracing #2
Comments
Have you looked at the existing trace features in Saxon-CE? Note that when using trace (logLevel=FINEST) its quite easy to overwhelm the logging capabilities of the browser for non-trivial XSLT: Trace features are documented at the following link; |
Hi Phil, From what I can tell the existing trace features in CE either don't work or One issue is the ComplexContentOutputter alters the order in which output Is tracing appropriate for my use case? On Thu, Feb 27, 2014 at 4:46 AM, Phil Fearon [email protected]:
Casey Jordan This message is intended only for the use of the Addressee(s) and may |
Tracing provenance in this way (that is, linking nodes in the output to nodes in the input, and to instructions in the styelsheet) is quite a challenge. The XML IDEs such as oXygen and Stylus Studio do it, I believe, but there's no underlying support in Saxon. And the pressure is in the direction of reducing code size not increasing it. (OK, it could be in the tracing/debug version of the product only, but that still doesn't make it zero-overhead). As you point out, it's difficult to associate nodes in the result tree with events notified to the TraceListener because of the latency introduced by the ComplexContentOutputter (which is there primarily to enable namespace fixup to work correctly). I'm not sure how the debugger IDEs get around this problem, though I do remember discussing the problem with them at the time. It's also true that we don't have an obvious place to insert extra code in the output pipeline for CE where we are doing insitu update of the HTML DOM.
Regards, Michael Kay |
What would need to be done to get tracing working with SaxonCE?
I have a need to be able to know exactly what source node produced what output node and ideally what Instruction caused it.
I'd be happy to do the work to make this function if I had some guidance.
Cheers
The text was updated successfully, but these errors were encountered: