[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: Dimitre Novatchev <dnovatchev@xxxxxxxxx>
Date: Wed, 16 Dec 2009 12:43:23 -0800
Re:  Is there any XSLT debugger stepping in subexpressi
> I'm slightly surprised that oXygen is able to distinguish whether the
> code used XSLT or XPath constructs, since Saxon compiles them into the same
> thing underneath. The compiled code for
> <xsl:variable name="x" select="doc('abc.xml')"/>
> <xsl:choose>
> B <xsl:when test="$x//y">
> B  B <xsl:value-of select="$x//z"/>
> B </xsl:when>
> B <xsl:otherwise>42</xsl:otherwise>
> </xsl:choose>
> is effectively identical to the compiled code for
> <xsl:value-of select="let $x:= doc('abc.xml') return if ($x//y) then $x//z
> else '42'"/>
> Regards,
> Michael Kay

I tried to debug with the Oxygen XSLT debugger this:

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
exclude-result-prefixes="xs" version="2.0">

    <xsl:template match="/">
        <xsl:value-of select=
            "for $x in .
                  if ($x//y)
                     then $x//z
                     else '42'"

And it was not possible to set a breakpoint on any of the lines of the
XPath expression, nor to step through the subexpressions.

Does Saxon really provide enough data via its debugging API to support
such debugging?

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


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.
First Name
Last Name
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.