Project

Profile

Help

Support #5650

closed

Question about finding value for global variable in debugger binding [Saxon 11.4]

Added by Radu Coravu over 1 year ago. Updated over 1 year ago.

Status:
Closed
Priority:
Low
Assignee:
Category:
Diagnostics
Sprint/Milestone:
-
Start date:
2022-08-18
Due date:
% Done:

0%

Estimated time:
Legacy ID:
Applies to branch:
Fix Committed on Branch:
Fixed in Maintenance Release:
Platforms:

Description

I have this XSLT stylesheet

<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:variable name="gv" select="'gv'"/>
    <xsl:template match="/">
        <xsl:value-of select="$gv"/>
        <xsl:message>first breakpoint</xsl:message>
    </xsl:template>
</xsl:stylesheet>

when I receive in the trace listener the xsl:message, I find the net.sf.saxon.expr.instruct.GlobalVariable object corresponding to $gv and then I look in the corresponding net.sf.saxon.expr.instruct.Bindery for its value but the value is null. Also none of the methods "net.sf.saxon.expr.instruct.GlobalVariable.evaluateVariable(XPathContext)" have been called on the variable. Does this mean the variable has been inlined by some kind of optimization? How can I find out the value of the variable if it's not found in the bindery?

Please register to edit this issue

Also available in: Atom PDF