Actions
Bug #6335
closed![Author: O'Neil Delpratt](https://www.gravatar.com/avatar/a0bc1766b412d8fecb16f7d304916359?rating=PG&size=50&default=https%3A%2F%2Fassets.plan.io%2Fimages%2Fdefault_avatar.png)
![Assignee: O'Neil Delpratt](https://www.gravatar.com/avatar/a0bc1766b412d8fecb16f7d304916359?rating=PG&size=22&default=https%3A%2F%2Fassets.plan.io%2Fimages%2Fdefault_avatar.png)
AttributeError: '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
Updated by O'Neil Delpratt 7 months ago
- Is duplicate of Bug #6336: passing an array as a parameter results in an object has no attribute 'derivedaptr' added
Please register to edit this issue
Actions