[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
> 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|