summaryrefslogtreecommitdiff
path: root/manual
diff options
context:
space:
mode:
authorStefan Bodewig <bodewig@apache.org>2016-09-21 19:13:57 +0200
committerStefan Bodewig <bodewig@apache.org>2016-09-21 19:14:28 +0200
commita3897d4e9fd8a9f4aa2e32fdd5eb181e6441586d (patch)
tree91172560f98c197c0747b1d28e96d2ccc5932e41 /manual
parent281d91870828fc1e8ec2b7235657c6ca5145f95a (diff)
downloadant-a3897d4e9fd8a9f4aa2e32fdd5eb181e6441586d.tar.gz
document how to use XSLT extension functions in Java9
https://bz.apache.org/bugzilla/show_bug.cgi?id=60060
Diffstat (limited to 'manual')
-rw-r--r--manual/Tasks/style.html16
1 files changed, 16 insertions, 0 deletions
diff --git a/manual/Tasks/style.html b/manual/Tasks/style.html
index 5eda02667..81e7e6bd6 100644
--- a/manual/Tasks/style.html
+++ b/manual/Tasks/style.html
@@ -69,6 +69,22 @@ attribute) the implicit fileset formed by this task.</p>
to an <code>&lt;xsl:param&gt;</code> declaration.</p>
<p>This task supports the use of a nested <a href="../Types/xmlcatalog.html">xmlcatalog</a>
element which is used to perform Entity and URI resolution.</p>
+
+<p><b>Note on XSLT extension functions</b>: when using the default
+ TraX implementation of the Java class library and
+ a <code>SecurityManager</code> is active - e.g. when running from
+ within an IDE - XSLT extension functions cannot be used as "secure
+ processing" is active in Java 7 and above. Ant contains a special
+ "hack" that allows XSLT extensions to be used in Java 7 and 8, but
+ this hack fails for Java 9. If you want to use extensions like the
+ redirect extension that are provided by the Java class library
+ itself, you can allow them by enabling the
+ feature <code>http://www.oracle.com/xml/jaxp/properties/enableExtensionFunctions</code>
+ in Java 9 and above. If you need to use an extension function not
+ provided by Java itself you can set the
+ attribute <code>jdk.xml.transform.extensionClassLoader</code> to a
+ classloader (reference to an Ant PATH-like structure).</p>
+
<h3>Parameters</h3>
<table border="1" cellpadding="2" cellspacing="0">
<tr>