[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 17:38:34 -0000
RE:  Is there any XSLT debugger stepping in subexpressi
> 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', '')) )
> 
> 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?

I'm slightly surprised that oXygen is able to distinguish whether the source
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>
  <xsl:when test="$x//y">
    <xsl:value-of select="$x//z"/>
  </xsl:when>
  <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
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.