Project

Profile

Help

Bug #5918

closed

Errors were reported during stylesheet compilation

Added by O'Neil Delpratt over 1 year ago. Updated over 1 year ago.

Status:
Closed
Priority:
Normal
Category:
SaxonC API
Start date:
2023-03-13
Due date:
% Done:

100%

Estimated time:
Applies to branch:
Fix Committed on Branch:
Fixed in Maintenance Release:
Found in version:
12.0
Fixed in version:
12.1
SaxonC Languages:
SaxonC Platforms:
SaxonC Architecture:

Description

Issue reported by user here: https://saxonica.plan.io/boards/3/topics/9317

Given we try to compile a stylsheeet:

executable = xsltproc.compile_stylesheet(stylesheet_file=stylesheetFilename, lang='3.0')
if xsltproc.exception_occurred:
    print(xsltproc.error_code)
    print(xsltproc.error_message) 

When we check for errors at at the compile stage the following error message is reported:

Errors were reported during stylesheet compilation

The C++ SaxonApiException class has a getCombinedStaticErrorMessages() method for reporting errors found at the compile stage, but currently we are not not passing these messages to the Python API and likewise to the PHP API.

Please register to edit this issue

Also available in: Atom PDF