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

Is there any XSLT debugger stepping in subexpressions

Subject: Is there any XSLT debugger stepping in subexpressions of a complex XPath expression? (Was: Re: XPath (and other W3C drafts))
From: Dimitre Novatchev <dnovatchev@xxxxxxxxx>
Date: Wed, 16 Dec 2009 09:11:32 -0800
 Is there any XSLT debugger stepping in subexpressions
On Wed, Dec 16, 2009 at 8:07 AM, Michael Kay <mike@xxxxxxxxxxxx> wrote:
>
> >
> > I'm assuming that Saxon will or has already implemented these
> > new features...?
> >
>
> Naturally ;-)
>
> Higher-order functions are available in XQuery in Saxon 9.2, but not yet
> released for XPath.
>
> let expressions are implemented for XPath, but not yet released.

To shift to a what I consider a very important, related topic:

It has been many years since I have adopted writing complete programs
as one XPath expressions, something like this:

    <xsl:value-of select=
           "if($pNum gt 9 and not(translate($vLastDigit, '024568', '')) )
               then false()
               else
                 if($pNum le 50000000)
                   then
                     f:binSearch($vthePrimes,
                                    $pNum,
                                    1,
                                    $vcountPrimesLT50M
                                    )
	                   else
	                    if(f:pow2mod($pNum -1, $pNum) ne 1)
	                       then false()
	                       else
					                empty(
					                   (2, 3, 7, 5, 11, 13, 17, 19, 23, 29, 31, 37, 41,
					                     (43 to xs:integer(round(f:sqrt($pNum, 0.1E0)))) )
			                               [$pNum mod . = 0]
					                       )
            "/>


Now this has been facilitated even further by providing "let
expressions" in XPath 2.1. I will never have to need to define a
separate xsl:variable whose value is a sequence -- this was not
possible without having let expressions in XPath.

However, I cannot find adequate debugger support for this style of
programming. The whole program above is treated as one single
statement and the debugger (I am using Oxygen 11 now, big thanks to
George Bina for making this happen!) and profiler treat this just as
... an expression.

My question to you is:

Does anyone know of an XSLT debugger (or should we know speak of XPath
Debugger) supporting stepping through the subexpressions of a complex
XPath expression?
Are any developers planning such support?



--
Cheers,
Dimitre Novatchev
---------------------------------------
Truly great madness cannot be achieved without significant intelligence.
---------------------------------------
To invent, you need a good imagination and a pile of junk
-------------------------------------
Never fight an inanimate object
-------------------------------------
You've achieved success in your field when you don't know whether what
you're doing is work or play

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.