Project

Profile

Help

Bug #5781

closed

If the stylesheet is not well-formed, compile_stylesheet silently ignores the error

Added by Norm Tovey-Walsh almost 2 years ago. Updated over 1 year ago.

Status:
Closed
Priority:
Normal
Category:
-
Start date:
2022-12-22
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

When I was putting together the test page for the 11.99 pre-release, I had this method call:

 xexec = xslt.compile_stylesheet(stylesheet_file="doc2html.xsl")

I was unaware that I'd introduced a markup error in the stylesheet and compile_stylesheet() simply returned None without any error message. It was only later when I attempted to parse the stylesheet as XML that the error was reported.


Related issues

Related to SaxonC - Bug #5851: Exception found in XdmFunctionItem.call Message=ClosedO'Neil Delpratt2023-01-23

Actions

Please register to edit this issue

Also available in: Atom PDF