Project

Profile

Help

Support #1816

closed

Some problems regarding the java date processing

Added by Radu Pisoi almost 11 years ago. Updated over 10 years ago.

Status:
Closed
Priority:
Low
Assignee:
Category:
-
Sprint/Milestone:
-
Start date:
2013-06-20
Due date:
% Done:

0%

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

Description

I would like to report a problem regarding the date/duration data types processing that can be obtained if you try to make some arithmetical operations between java dates (java.util.Date).

For example if you execute from the command line the following transformation:

d:\workspace\eXml\lib>java -jar saxon9ee.jar -xsl:testJavaDates.xsl -it:main

the result is:

Warning: on line 18 of testJavaDates.xsl:

Evaluation will always throw a dynamic error: Arithmetic operator is not defined for

arguments of types (xs:string, xs:string)

Error on line 18 of testJavaDates.xsl:

XPTY0004: Arithmetic operator is not defined for arguments of types (xs:string, xs:string)

in optimizer-created global variable (file:/d:/workspace/eXml/lib/testJavaDates.xsl#18)

Transformation failed: Run-time errors were reported

Note that the above transformation runs without any problems with Saxon 9.4.0.6. So, the question is if the current behavior is a regression or not?


Files

testJavaDates.xsl (1.1 KB) testJavaDates.xsl Radu Pisoi, 2013-06-20 13:56

Please register to edit this issue

Also available in: Atom PDF