Actions
Bug #3028
closedWrong line number for xsl:variable in XSLT Trace
Start date:
2016-11-13
Due date:
% Done:
100%
Estimated time:
Legacy ID:
Applies to branch:
9.7
Fix Committed on Branch:
9.7, trunk
Fixed in Maintenance Release:
Platforms:
Description
See the context and data in bug #3207.
The line number put in the trace for the xsl:variable instructions is wrong: it seems to take the line number of the parent element.
Example in the test case provided:
<xsl:template match="u" line="9" column="25" module="cover-test.xsl">
<xsl:param name="what" line="10" column="43" module="cover-test.xsl">
</xsl:param>
<xsl:param name="when" line="11" column="42" module="cover-test.xsl">
</xsl:param>
The following 3 variables are actually in lines 12, 13, 15 in the XSL stylesheet, not in line 9 :
<xsl:variable name="url" line="9" column="25" module="cover-test.xsl">
<xsl:variable name="role" line="9" column="25" module="cover-test.xsl">
<xsl:variable name="position" line="9" column="25" module="cover-test.xsl">
<xsl:choose line="17" column="15" module="cover-test.xsl">
The following 2 variables are actually in lines 19, 20, not in line 18
<xsl:variable name="shorturl" line="18" column="46" module="cover-test.xsl">
<xsl:variable name="protocol" line="18" column="46" module="cover-test.xsl">
In version 6.5.5 I haven't seen this bug.
Please register to edit this issue
Actions