Actions
Bug #6335
closedAttributeError: 'saxonche.PyXdmArray' object has no attribute 'derivedaptr'
Start date:
2024-01-30
Due date:
% Done:
0%
Estimated time:
Applies to branch:
Fix Committed on Branch:
Fixed in Maintenance Release:
Found in version:
12.4.2
Fixed in version:
SaxonC Languages:
SaxonC Platforms:
SaxonC Architecture:
Description
Reported by user on stackoverflow: https://stackoverflow.com/questions/77902670/saxonche-12-4-2-passing-an-array-as-parame-to-pyxslt30processor-leads-to-attrib
The following python script:
with PySaxonProcessor(license=False) as proc:
print(proc.version)
xsltproc = proc.new_xslt30_processor()
xsltproc.set_cwd(os.getcwd())
executable = xsltproc.compile_stylesheet(stylesheet_file="cat.xsl")
value = proc.make_array([proc.make_integer_value(i) for i in [8,9,10]])
print(value)
executable.set_parameter("values", value)
result = executable.apply_templates_returning_string(source_file="person.xml")
print(result)
Fails with the following error:
AttributeError: 'saxonche.PyXdmArray' object has no attribute 'derivedaptr'
Related issues
Please register to edit this issue
Actions