Quantcast
Channel: YouTrackReSharper (RSRP) - Bug and Issue Tracker
Viewing all articles
Browse latest Browse all 106942

IDEA-78638: XSLT debug: Xalan: Variables view shows only default value of template parameter

$
0
0
Reporter Alexander Chernikov (sashache) Alexander Chernikov (sashache)
Created Dec 9, 2011 7:34:29 PM
Updated Dec 14, 2011 9:33:47 PM
Resolved Dec 14, 2011 9:33:47 PM
Priority Normal
Type Bug
Fix versions No Fix versions
State Fixed
Assignee Sascha Weinreuter (sweinreuter)
Subsystem XSLT Support
Affected versions No Affected versions
Fixed in build No Fixed in build
XSLT debug. Provide any .xml source and .xsl with a breakpoint like shown below:
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
	<xsl:output method="xml" indent="yes"/>

	<xsl:template match="/">
		<xsl:call-template name="called">
			<xsl:with-param name="p1">Non-default value.</xsl:with-param>
		</xsl:call-template>
	</xsl:template>

	<xsl:template name="called">
		<xsl:param name="p1">Default value.</xsl:param>
		<called><xsl:value-of select="$p1"/></called> <!-- breakpoint -->
	</xsl:template>
</xsl:stylesheet> 

Debug with Xalan, stop on the breakpoint.
Variables view shows template parameter "p1" with value "Default value."
While actually it's "Non-default value." and Watches show correct value.

Saxon and Saxon9 have no such problem.
(BTW, is it Ok that Xalan shows parameter type as "RTREEFRAG"?)
112.121.

Viewing all articles
Browse latest Browse all 106942

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>