Project

Profile

Help

Bug #4537

closed

Overzealous static analysis?

Added by Norman Tovey-Walsh over 4 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Low
Assignee:
-
Category:
-
Sprint/Milestone:
-
Start date:
2020-05-01
Due date:
% Done:

100%

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

Description

If you process the attached stylesheet against any input, it will report:

Warning at char 32 in xsl:sequence/@select on line 43 column 70 of units.xsl:
  SXWN9000  Evaluation will always throw a dynamic error: Cannot convert string "1.0in" to double

It then goes on to succeed because the evaluation isn't actually trying to convert "1.0in" to a double, it's trying to convert "1.0" to a double.


Files

driver.xsl (675 Bytes) driver.xsl Norman Tovey-Walsh, 2020-05-01 22:45
units.xsl (2.91 KB) units.xsl Norman Tovey-Walsh, 2020-05-01 22:45

Please register to edit this issue

Also available in: Atom PDF