Hello,

I try to trace the variables and the parameters when running and the bound values.

Here my XSLT sample, the variable name should be traced

<xsl:stylesheet version="2.0" 
xmlns:xsl="http://www.w3.org/1999/XSL/Transform
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:fn="http://www.w3.org/2005/xpath-functions"
xmlns:xdt="http://www.w3.org/2005/xpath-datatypes"
xmlns:err="http://www.w3.org/2005/xqt-errors"
exclude-result-prefixes="xs xdt err fn">

<xsl:output method="xml" indent="yes"/>
<xsl:template match="/">
<xsl:apply-templates/>
</xsl:template>

<xsl:template match="person">
<xsl:variable name="name" select="name/family"/>
<h1><xsl:value-of select="concat($name,'test')"/></h1>
</xsl:template>

</xsl:stylesheet>

In my code, I used the TraceListener

public void enter(InstructionInfo arg0, XPathContext xc ) {

  StackFrame stackFrame = xc.getStackFrame(); List variables = stackFrame.getStackFrameMap().getVariableMap();   
System.out.println( variables );

}

The problem is that the variables list is always empty ? How can I get the list of variables and parameters ?

Thank you for your help, 

Best regards,

A.Rickard