[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Is there any XSLT debugger stepping in subexpressi

Subject: RE: Is there any XSLT debugger stepping in subexpressions of a complex XPath expression? (Was: Re: XPath (and other W3C drafts))
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Wed, 16 Dec 2009 21:28:11 -0000
RE:  Is there any XSLT debugger stepping in subexpressi
> Does Saxon really provide enough data via its debugging API 
> to support such debugging?

Yes. If you compile the stylesheet with tracing enabled, Saxon wraps a trace
expression around every node in the expression tree, and each one results in
a pair of enter() and leave() calls to the TraceListener.

The problem of course is that if you exposed this granularity in a debugger,
the steps would be so small as to make single-stepping extremely tedious. So
the debugger has to choose which calls to ignore. I don't know how oXygen
does this. I suspect it's doing the same as the Saxon XSLTTraceListener does
when you use the -T option, which is more-or-less to ignore all events other
than those associated with expressions that are classified as XSLT
instructions.

At present I can't quite see how it distinguishes between an xsl:if, and
xsl:choose, and an XPath if (perhaps it doesn't). They all produce very
similar code but there may be some provenance information retained to make
error reports more readable.

Regards,

Michael Kay
http://www.saxonica.com/
http://twitter.com/michaelhkay 

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.