I've encountered a problem. I need to transform XML using XSLT 2.0 (SAXON-HE 9.8.0 processor) in Java. In my XSLT I am using (via import) external functions from functx.
When both files(xslt map and .xsl file with functx) are in the same directory everything works fine. In my .xsl, functx is correctly imported and it works:
xmlns:functx="http://www.functx.com"
xsl:import href="functx-package.xsl"
Is there a way to use external functions from functx in my .xsl map when both files are in memory as String objects or InputStreams or whatever?
I can't store the files on the drive in one directory as I did before.
The only possibility that might fix my problem is to paste functx file into my .xsl mapper, but this is wrong solution - [very]bad practice.
What do I use:
- Java 7
- SAXON-HE 9.8.0 processor
- XSLT 2.0