EE 22.214.171.124 strange function parameter overriding
Hello, during an internal Saxon upgrade 126.96.36.199J to 188.8.131.52J regression testing we have found out a strange issue. Our custom functions suddenly started to behave odd.
Using following snippet, the output should mimic the standard
format-number(). Thus it should format
value2 using the mask given as second parameter of the function call. However, this doesn't seem to be the case using EE 184.108.40.206.
The whole transformation file is attached as
<xsl:template match="root"> <root> <format1> <xsl:value-of select="f:format-number(value1, '000')"/> </format1> <format2> <xsl:value-of select="f:format-number(value2, '0000000000')"/> </format2> </root> </xsl:template> ...
The output contains both
value2 formatted as both were using the second mask of the parameter call.
For example, using PE 220.127.116.11 seems to handle the parameter passing correctly:
Since there are numerous differences in both Saxon configurations, both attached outputs (
correct.xml) contain a full environment printout. These particular test outputs were obtained using a copy of Oxygen IDE.
Is this a known issue? Thanks
#5 Updated by Michael Kay 12 months ago
- Category set to XPath conformance
- Status changed from In Progress to Resolved
- Applies to branch 10, 9.9, trunk added
- Applies to branch deleted (
- Fix Committed on Branch 10, 9.9, trunk added
Fix committed to 9.9, 10.x, and trunk.
Test case format-number-070 added to XSLT3 test suite.
#9 Updated by Michael Kay 11 months ago
We've been continuing to apply patches to the 9.9 branch for significant bugs, but we don't have any scheduled date for another maintenance release on that branch; it's usually triggered either by the number of outstanding bugs to be fixed, or by a customer situation where someone has a good reason for not moving forward, and no simple workaround is available.
Please register to edit this issue