Project

Profile

Help

Bug #4395

setBaseOutputURI missing from XSLT API

Added by O'Neil Delpratt 10 months ago. Updated 23 days ago.

Status:
Resolved
Priority:
Normal
Category:
Saxon-C Internals
Start date:
2019-11-26
Due date:
% Done:

0%

Estimated time:
Found in version:
1.2.1
Fixed in version:

Description

Reported by user: https://saxonica.plan.io/boards/4/topics/7698

The setting of the base output URI is missing from XSLT for working with secondary documents.

History

#1 Updated by O'Neil Delpratt 10 months ago

  • Status changed from New to In Progress

The setter method requires some changes in the Saxon/C Java code to accept the base output URI property. I have made the changes to XsltProcessor and Xslt30Processor`.

setter method required in C++, PHP and Python

#2 Updated by O'Neil Delpratt 9 months ago

  • Status changed from In Progress to Resolved

Functions added to C++, PHP and Python. In python the keyword argument base_output_uri is available for the stylesheet execution function.

#3 Updated by s├ębastien bocahu 23 days ago

Hi,

IIUC, setting a base output uri is now mandatory ? I can't understand why we need to set such a param for a function that returns a string ($xsltProc->transformToString()) but I am not a XSL/PHP developer.

Nevertheless, it seems that PHP/XSL code that was working flawlessly with Saxon-C 1.1.2 now returns "net.sf.saxon.s9api.SaxonApiException : The system identifier of the principal output file is unknown".

I can't find setBaseURI() function for XsltProcessor (only declared for XPath & XQuery) in 1.2.1 code so I guess we need to wait 1.2.2. Or is the source code open and available anywhere ?

In any case, this issue + #4371 makes Saxon-C/PHP totally unusable.

#4 Updated by O'Neil Delpratt 23 days ago

The fix to setBaseURI is mentioned here: https://saxonica.plan.io/issues/4410?pn=1#change-14640

Please register to edit this issue

Also available in: Atom PDF