Project

Profile

Help

Bug #5704

closed

XML catalog unused in Saxon\XsltExecutable::transformFileToString

Added by Alf Eaton over 1 year ago. Updated about 1 year ago.

Status:
Closed
Priority:
Normal
Category:
-
Start date:
2022-10-02
Due date:
% Done:

100%

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

Description

Thank you for adding XML catalog support to the Saxon C PHP extension.

However, unless I'm doing something wrong, it seems that Saxon isn't using local DTD files referenced in the XML catalog.

I've put together an example repo: https://github.com/hubgit/saxon-he-php-demo

In this case, the XML file's DOCTYPE defines a public ID, which the XML catalog points to a local DTD file. When Saxon\XsltExecutable loads the XML file with transformFileToString, it tries to fetch the DTD from the URI in the XML file's DOCTYPE instead, as if the catalog file isn't used.

Please register to edit this issue

Also available in: Atom PDF