s9api and Saxon extensions
Posted: Tue Aug 09, 2016 2:01 pm
I have an extension plugin for oXygen 18. One of the purposes of the plugin is to allow users to convert various XML formats. All conversions are done in XSLT via the s9api interface from saxon9ee.jar. I have had no issues with this approach until I tried adding a Saxon extension function, specifically saxon:serialize(), to one of the stylesheets, which results in this error when the stylesheet is compiled:
The stylesheet in question works perfectly fine when I run it in the XSLT debugger. How do I enable extension functions in s9api? My Processor instance is created with Processor(true) and reports "EE" as its edition. Is it really the case that XSLT functionality which exists in oXygen itself is not available to plugin developers?
Code: Select all
XPST0017 XPath syntax error at char 8 on line 32 near {...katalogpost>\s+</katalogpos...}:
Cannot find a matching 2-argument function named {http://saxon.sf.net/}serialize().
Saxon extension functions require a Saxon-PE or Saxon-EE license