Actions
Bug #6439
closedAttributeError: 'saxonche.PyXdmFunctionItem' object has no attribute 'as_list'
Start date:
2024-05-24
Due date:
% Done:
100%
Estimated time:
Applies to branch:
Fix Committed on Branch:
12
Fixed in Maintenance Release:
Found in version:
12.4.2
Fixed in version:
12.5
SaxonC Languages:
SaxonC Platforms:
SaxonC Architecture:
Description
In the python script:
from saxonche import PySaxonProcessor
with PySaxonProcessor() as processor:
xpath_processor = processor.new_xpath_processor()
xpath_result = xpath_processor.evaluate_single('array { 1 to 5 }')
print(type(xpath_result))
array_as_list = [item.head.get_atomic_value() for item in xpath_result.as_list()]
print(array_as_list)
The xpath_result should be of type PyXdmArray
but the evaluate_single
method is failing the correct conversion.
Related issues
Please register to edit this issue
Actions