Project

Profile

Help

Bug #5280

closed

Use of fn:highest in XSLT 4 from transform.exe of SaxonC EE 11.1 fails with "Failed to load built-in function library: function-library.sef.xml"

Added by Martin Honnen over 2 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
Normal
Category:
Saxon-C Internals
Start date:
2022-02-04
Due date:
% Done:

100%

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

Description

I have tried to use the experimental XPath/XQuery/XSLT 4 functions like fn:highest with transform.exe of SaxonC 11.1 EE but I get an error "Failed to load built-in function library: function-library.sef.xml".

Details are as follows:

<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    version="4.0"
    xmlns:xs="http://www.w3.org/2001/XMLSchema"
    exclude-result-prefixes="#all"
    expand-text="yes">

    <xsl:output method="adaptive" indent="yes" build-tree="no"/>

    <xsl:template match="/" name="xsl:initial-template">
        <xsl:sequence select="highest((1, 2, 3, 3, 2, 1))"/>
    </xsl:template>

</xsl:stylesheet>

Command line and output:

PS C:\Users\marti\OneDrive\Documents\xslt\xslt4-examples\highest-function-examples> & 'C:\Program Files\Saxonica\SaxonCEE11.1\command\Transform.exe' -t -it --allowSyntaxExtensions:on -xsl:.\highest-function-test1.xsl
SaxonC-EE 11.1 from Saxonica
Java version 1.8.0_181
Using license serial number Vxxxxx
Stylesheet compilation time: 12.1092ms
Processing  (no source document) initial template = xsl:initial-template
Error at char 9 in expression in xsl:sequence/@select on line 11 column 61 of highest-function-test1.xsl:
   Failed to load built-in function library: function-library.sef.xml: Cannot read
  net/sf/saxon/data/sef/function-library.sef.xml file located using ClassLoader
  sun.misc.Launcher$AppClassLoader@d9bd6d30 - continuing
: Cannot read net/sf/saxon/data/sef/function-library.sef.xml file located using
  ClassLoader sun.misc.Launcher$AppClassLoader@d9bd6d30 - continuing

at template xsl:initial-template on line 10 column 57 of highest-function-test1.xsl:
Failed to load built-in function library: function-library.sef.xml: Cannot read net/sf/saxon/data/sef/function-library.sef.xml file located using ClassLoader sun.misc.Launcher$AppClassLoader@d9bd6d30 - continuing
: Cannot read net/sf/saxon/data/sef/function-library.sef.xml file located using ClassLoader sun.misc.Launcher$AppClassLoader@d9bd6d30 - continuing

The stylesheet works fine with SaxonJ 11.1 EE.

Actions #1

Updated by O'Neil Delpratt over 2 years ago

  • Status changed from New to In Progress
  • Found in version set to 11.1

Thanks Martin for reporting this issue. I am currently investigating it further .

Actions #2

Updated by O'Neil Delpratt over 2 years ago

  • Category set to Saxon-C Internals

This is a build issue. The net/sf/saxon/data/sef/function-library.sef.xml file is not included in the SaxonC jar file that is cross compiled

Actions #3

Updated by O'Neil Delpratt over 2 years ago

  • Status changed from In Progress to Resolved
  • Assignee set to O'Neil Delpratt
  • % Done changed from 0 to 100

Bug fix applied in the build script - The function-library.sef.xml file is now included in the SaxonC jar and cross-compiled to library.

Actions #4

Updated by O'Neil Delpratt over 2 years ago

Bug fix available in the next maintenance release.

Actions #5

Updated by Debbie Lockett over 2 years ago

  • Status changed from Resolved to Closed
  • Fixed in version set to 11.2

Bug fix applied in the Saxon 11.2 maintenance release.

Please register to edit this issue

Also available in: Atom PDF