Project

Profile

Help

Bug #5476

closed

xsl:result-document doesn't function properly

Added by Lou Burnard over 2 years ago. Updated over 2 years ago.

Status:
Rejected
Priority:
Normal
Category:
-
Start date:
2022-05-06
Due date:
% Done:

0%

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

Description

I upgraded to SaxonC-HE 11.3 and several things stopped working. One I have not yet found a workround for is a stylesheet which calls xsl:result-document, supplying a bare filename as the value for @href. The intention is to create this file in the current directory (obvs) but the context for that to be done seems to be missing. If the filename supplied does NOT already exist I get diagnostics like this:

Error in xsl:result-document/@href on line 72 column 58 of reporter.xsl: SXRD0002 The system identifier of the principal output file is unknown In template rule with match="/" on line 31 of reporter.xsl None Error in file(file, "rt", encoding = fileEncoding) : cannot open the connection Calls: read.table -> file In addition: Warning message: In file(file, "rt", encoding = fileEncoding) : cannot open file 'metadata.csv': No such file or directory Execution halted

but if the file DOES exist (and should therefore be over-written) all I get is

Error in xsl:result-document/@href on line 72 column 58 of reporter.xsl: SXRD0002 The system identifier of the principal output file is unknown

Either way, this is not what should be happening.

Please register to edit this issue

Also available in: Atom PDF