Project

Profile

Help

Bug #5451

closed

SaxonC 11.3: AttributeError: 'saxonc.PySaxonProcessor' object has no attribute 'new_xslt_processor'

Added by Peter Jan about 2 years ago. Updated almost 2 years ago.

Status:
Closed
Priority:
Normal
Category:
Python
Start date:
2022-04-08
Due date:
% Done:

0%

Estimated time:
Found in version:
Fixed in version:
Platforms:

Description

Hi!

I just upgraded from v1.2.1 to v11.3. Whilst my IDE is showing no issues, during executing of my script I get

AttributeError: 'saxonc.PySaxonProcessor' object has no attribute 'new_xslt_processor'

My Code:

import saxonc

file = ''
proc = saxonc.PySaxonProcessor(license=False)
xpath_proc = proc.new_xpath_processor()
xpath_proc.set_context(file_name=file)
item = xpath_proc.evaluate_single('/*/namespace::*[name()=\'\']')

Whilst the method is also available in the API docs: https://www.saxonica.com/saxon-c/doc11/html/saxonc.html#PySaxonProcessor


Related issues

Related to SaxonC - Bug #5452: set_source and set_output_file functions don't exists but are in examplesClosedO'Neil Delpratt2022-04-08

Actions

Please register to edit this issue

Also available in: Atom PDF