Project

Profile

Help

Support #5029

closed

setting result document

Added by Lou Burnard about 1 year ago. Updated 5 months ago.

Status:
Duplicate
Priority:
Low
Category:
-
Start date:
2021-06-27
Due date:
% Done:

0%

Estimated time:
Found in version:
Platforms:

Description

I need to set the result document for my transformation within the style sheet because I compile its name from components of the document being processed. I can do this easily with xsl:result-document. However, I also need to specify a base relative to which the result document URI is calculated. Otherwise I get that old chestnut SXRD0002: The system identifier of the principal output file is unknown. I get round this by (a) supplying an arbitrary filename as value for the output_filename parameter on myX.apply_templates_returning_file (b) always supplying an absolute path as value for xsl:result-document/@href in my stylesheet

This seems clumsy. Is there a better way?


Related issues

Related to SaxonC - Bug #4395: setBaseOutputURI missing from XSLT APIClosedO'Neil Delpratt2019-11-26

Actions
Actions #1

Updated by O'Neil Delpratt about 1 year ago

You should be able to set the base URI using the set_cwd method on the PySaxonProcessor class before you create the PyXslt30Processor object.

Actions #2

Updated by O'Neil Delpratt 5 months ago

  • Related to Bug #4395: setBaseOutputURI missing from XSLT API added
Actions #3

Updated by O'Neil Delpratt 5 months ago

  • Status changed from New to Duplicate
  • Assignee set to O'Neil Delpratt

The solution to this bug a call on the XsltExecutable.setBaseOutputURI() method. Available in the new release SaxonC 11.1. See bug issue #4395

Please register to edit this issue

Also available in: Atom PDF