Project

Profile

Help

Bug #4395

closed

setBaseOutputURI missing from XSLT API

Added by O'Neil Delpratt over 2 years ago. Updated 7 months ago.

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

100%

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

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.


Related issues

Related to SaxonC - Support #5029: setting result document DuplicateO'Neil Delpratt2021-06-27

Actions
Actions #1

Updated by O'Neil Delpratt over 2 years 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

Actions #2

Updated by O'Neil Delpratt over 2 years 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.

Actions #3

Updated by s├ębastien bocahu almost 2 years 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.

Actions #4

Updated by O'Neil Delpratt almost 2 years ago

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

Actions #5

Updated by O'Neil Delpratt 7 months ago

  • Status changed from Resolved to Closed
  • % Done changed from 0 to 100
  • Fixed in version set to 11.1

Bug fix patched in SaxonC 11.1 release

Actions #6

Updated by O'Neil Delpratt 5 months ago

Please register to edit this issue

Also available in: Atom PDF