Project

Profile

Help

Bug #2882

closed

QuickCompare for numerics fails if whitespace is present

Added by Michael Kay over 7 years ago. Updated almost 7 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
XPath conformance
Sprint/Milestone:
-
Start date:
2016-08-17
Due date:
% Done:

100%

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

Description

Reported by Wolfgang May on the saxon-help list at SourceForge:

I have an XML case where numeric values are not always perfectly formatted.

As far as I understand, numeric comparisons in XPath filters should nevertheless

work - but they don't (saxon 9.7.0.7).

Small Example:

let $ex :=
 <bla><n>10</n>
      <n>123</n>
      <n> 1234 </n>
      <n>
         1234
      </n>
      <n>12345</n>
 </bla>
return
$ex[n>1000]

Please register to edit this issue

Also available in: Atom PDF