Project

Profile

Help

Bug #6291

open

Warnings for invalid keywords from transform_to_string methods on PyXslt30Processor and PyXsltExecutable

Added by Debbie Lockett 4 months ago.

Status:
New
Priority:
Low
Category:
Python API
Start date:
2023-12-15
Due date:
% Done:

0%

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

Description

The documentation for the PyXslt30Processor transform_to_string method says that the keywords source_file and stylesheet_file are required. The method currently raises a warning only when len(kwds) == 0. It would be better to raise a warning precisely when source_file and stylesheet_file are not both supplied.

Meanwhile for transform_to_string on PyXsltExecutable, there is some other confusion about supplied keywords. Here only one of source_file or xdm_node can be supplied, and a warning is raised if both are (I committed a change here yesterday to check for precisely both of these keywords, rather than len(kwds) > 0). (Note that it is OK to supply neither.) The other possible keywords are base_output_uri and encoding. It looks like you'll currently get a (unhelpfully worded) warning if you try to supply only encoding - but that should be permitted.

No data to display

Please register to edit this issue

Also available in: Atom PDF