Bug #6579
closedIn SEF file reference to extension function fails
0%
Description
I converted a simple XSLT file (attached) to an SEF file (attached) by Saxon-CS 11.5 on the command line. The XSLT has various references/uses of the file function library. When I run that SEF file, I get the following error message.
jkalvesmaki@LAPD08B4G3 MINGW64 /d/saxon/SaxonCS-11.5
$ ./SaxonCS transform -s:xslt-test.xsl -xsl:xslt-test.sef -o:output.xml Error
SXPK0002 Unknown system function Q{http://expath.org/ns/file}last-modified#1
Unknown system function Q{http://expath.org/ns/file}last-modified#1
Exiting with code 2
The error disappears when I comment out the last line of code in the XSLT file:
<xsl:comment>uris sorted {sort((base-uri(/), static-base-uri()), (), file:last-modified#1)}</xsl:comment>
So file:last-modified
is okay when used directly (see lines 13, 15), but not in references.
It's unclear to me whether this is a bug, or actually a feature, because of the nature of function references. If the latter, I don't think there's much documentation to help programmers stay away from function references in code that will be deployed in SEF files. Perhaps provide a note at https://www.saxonica.com/documentation12/index.html#!using-xsl/compiling ?
Files
Please register to edit this issue