Project

Profile

Help

Bug #5055

closed

setCatalog not included in python API

Added by O'Neil Delpratt over 2 years ago. Updated about 2 years ago.

Status:
Closed
Priority:
Low
Category:
Python
Start date:
2021-08-02
Due date:
% Done:

100%

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

Description

The setCatalog method is missing from the Saxon/C Python API. This method is already available in the C++ and PHP APIs.

Reported by user here: https://saxonica.plan.io/boards/2/topics/8239?r=8241


Files

saxoncClasses.pxd (15.4 KB) saxoncClasses.pxd File contains set_catalog patch O'Neil Delpratt, 2021-08-05 08:10
saxonc.pyx (143 KB) saxonc.pyx File contains set_catalog patch O'Neil Delpratt, 2021-08-05 08:10
Actions #1

Updated by O'Neil Delpratt over 2 years ago

Bug fixed and available for the next release.

Also the set_catalog function has been patched into the Saxon/C 1.2.1 release file attached to this bug issue. You will need to replace both the saxoncClasses.pxd and the saxon.pyx files with the ones attached.

Example:

with PySaxonProcessor(license=False) as saxonproc2:
    saxonproc2.set_catalog('catalog.xml')
    trans = saxonproc2.new_xslt30_processor()
    .....

set_catalog(str file_name) - The file_name argument requires a full path to the file, but should also look into the current directory too.

Actions #2

Updated by O'Neil Delpratt about 2 years ago

  • Status changed from Resolved to Closed
  • Fixed in version set to 11.1

Bug fix patched in SaxonC 11.1 release

Please register to edit this issue

Also available in: Atom PDF