I was just told, that the -ext option enables the extension functions.
In fact, the stylesheet is processed correctly, now:
$ saxonb-xslt -ext:on -xsl:test.xsl -s:test.xml
In retrospect, I would ask, if this situation could be expressed more clearly in the manual page. Actually, it reads like:
-ext: {[on] | [off]}
Enable or disable the ability to invoke external Java functions
from query files and stylesheets. Beware that enabling them is a potential security risk when processing untrusted files. Default:
off.
But since I was trying to use a standard XSLT function (xsl:result-document), and not an arbitrary Java function, I didn't guess that this -ext option was the key to this problem.
Maybe a description near the top, like the following could help: "Some instructions like xsl:result-document require the -ext option to be enabled."
If that is not possible, at least the terminology should be unified: The error message complains about disabled "extension functions", while the manual page describes "external Java functions".
I was just told, that the -ext option enables the extension functions.
In fact, the stylesheet is processed correctly, now:
$ saxonb-xslt -ext:on -xsl:test.xsl -s:test.xml
In retrospect, I would ask, if this situation could be expressed more clearly in the manual page. Actually, it reads like:
-ext: {[on] | [off]}
potential security risk when processing untrusted files. Default:
Enable or disable the ability to invoke external Java functions
from query files and stylesheets. Beware that enabling them is a
off.
But since I was trying to use a standard XSLT function (xsl:result- document) , and not an arbitrary Java function, I didn't guess that this -ext option was the key to this problem.
Maybe a description near the top, like the following could help: "Some instructions like xsl:result-document require the -ext option to be enabled."
If that is not possible, at least the terminology should be unified: The error message complains about disabled "extension functions", while the manual page describes "external Java functions".
Thank you!