Project

Profile

Help

Support #3767

closed

min on sequences containing xs:datetime values

Added by Guido Walter Schmidt over 6 years ago. Updated over 6 years ago.

Status:
Resolved
Priority:
Low
Assignee:
Category:
-
Sprint/Milestone:
-
Start date:
2018-04-30
Due date:
% Done:

0%

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

Description

The min function should be able to compare xs:datetime values numerically. According to https://www.w3.org/TR/xmlschema-2/#dateTime :

3.2.7 dateTime

[Definition:] dateTime values may be viewed as objects with integer-valued year, month, day, hour and minute properties, a decimal-valued second property, and a boolean timezoned property. Each such object also has one decimal-valued method or computed property, timeOnTimeline, whose value is always a decimal number.

Indeed xslt templates we produce with Altova style vision render as expected but give following error:

XPathException

Failure converting {2018-05-02T06:00:00Z} to a number

Failure converting {2018-05-02T06:00:00Z} to a number

net.sf.saxon.functions.Minimax.minimax [205] Minimax.java

net.sf.saxon.functions.Minimax.call [333] Minimax.java

net.sf.saxon.functions.Minimax$Min.call [365] Minimax.java

net.sf.saxon.expr.FunctionCall.iterate [547] FunctionCall.java

net.sf.saxon.expr.Expression.evaluateItem [840] Expression.java

net.sf.saxon.expr.AtomicSequenceConverter.evaluateItem [317] AtomicSequenceConverter.java

net.sf.saxon.expr.AtomicSequenceConverter.evaluateItem [32] AtomicSequenceConverter.java

net.sf.saxon.expr.Expression.evaluateAsString [899] Expression.java


Files

offerdev2.zip (23.3 KB) offerdev2.zip Guido Walter Schmidt, 2018-04-30 17:17

Please register to edit this issue

Also available in: Atom PDF