Actions
Bug #5851
closedException found in XdmFunctionItem.call Message=
Start date:
2023-01-23
Due date:
% Done:
100%
Estimated time:
Applies to branch:
Fix Committed on Branch:
Fixed in Maintenance Release:
Found in version:
12.0
Fixed in version:
12.1
SaxonC Languages:
SaxonC Platforms:
SaxonC Architecture:
Description
Bug issue reported by user here: https://saxonica.plan.io/boards/4/topics/9235
For the following python code:
from saxonche import *
with PySaxonProcessor(license=True) as proc:
print(proc.version)
parse_ietf_date = PyXdmFunctionItem().get_system_function(proc, "{http://www.w3.org/2005/xpath-functions}parse-ietf-date", 1)
for date in ["Wed, 06 Jun 1994 07:29:35 GMT", "We, 06 Jun 1994 07:29:35 GMT"]:
date_xdm_string = proc.make_string_value(date)
result = parse_ietf_date.call(proc, [date_xdm_string])
if proc.exception_occurred:
print(proc.error_message)
else:
print(result)
We get the following output:
SaxonC-HE 12.0 from Saxonica
1994-06-06T07:29:35Z
None
Exception found in XdmFunctionItem.call Message= Invalid IETF date value We, 06 Jun 1994 07:29:35 GMT (String expected to begin with month name or day name (or day number))
The message "Exception found in ...." is actually a std::cerr print message in the C++ code. It is present because we are not throwing the exception from the Java code as in the same way as for Processor objects.
Related issues
Please register to edit this issue
Actions