Project

Profile

Help

Bug #5546

closed

Calling setCatalog in the SaxonC PHP extension throws an error

Added by Alf Eaton over 2 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
Normal
Category:
C++ API
Start date:
2022-05-27
Due date:
% Done:

100%

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

Description

I'm in the process of upgrading to SaxonC 11.3, to use the PHP extension. When attempting to set the path to a catalog file using $saxonProcessor->setCatalog(…), an error is thrown:

Unable to find class net/sf/saxon/trans/XmlCatalogResolver

Error: Saxonc.setCatalog() not found

What's needed for the PHP extension to be able to find net/sf/saxon/trans/XmlCatalogResolver?

I've tried the previous method of defining a different class, i.e. $saxonProcessor->setConfigurationProperty('http://saxon.sf.net/feature/sourceParserClass', 'org.apache.xml.resolver.tools.ResolvingXMLReader') but that doesn't seem to be possible any more.

There's a repository with code to reproduce this at https://github.com/hubgit/saxon-he-php-demo

Please register to edit this issue

Also available in: Atom PDF