Project

Profile

Help

Bug #6335

closed

AttributeError: 'saxonche.PyXdmArray' object has no attribute 'derivedaptr'

Added by O'Neil Delpratt 10 months ago. Updated 10 months ago.

Status:
Closed
Priority:
Normal
Category:
Python API
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

Is duplicate of SaxonC - Bug #6336: passing an array as a parameter results in an object has no attribute 'derivedaptr'ClosedO'Neil Delpratt2024-01-31

Actions
Actions #1

Updated by O'Neil Delpratt 10 months ago

  • Is duplicate of Bug #6336: passing an array as a parameter results in an object has no attribute 'derivedaptr' added
Actions #2

Updated by O'Neil Delpratt 10 months ago

  • Status changed from New to Closed

Please register to edit this issue

Also available in: Atom PDF