Repository: ant
Updated Branches:
  refs/heads/1.9.x 281d91870 -> a3897d4e9


document how to use XSLT extension functions in Java9

https://bz.apache.org/bugzilla/show_bug.cgi?id=60060


Project: http://git-wip-us.apache.org/repos/asf/ant/repo
Commit: http://git-wip-us.apache.org/repos/asf/ant/commit/a3897d4e
Tree: http://git-wip-us.apache.org/repos/asf/ant/tree/a3897d4e
Diff: http://git-wip-us.apache.org/repos/asf/ant/diff/a3897d4e

Branch: refs/heads/1.9.x
Commit: a3897d4e9fd8a9f4aa2e32fdd5eb181e6441586d
Parents: 281d918
Author: Stefan Bodewig <bode...@apache.org>
Authored: Wed Sep 21 19:13:57 2016 +0200
Committer: Stefan Bodewig <bode...@apache.org>
Committed: Wed Sep 21 19:14:28 2016 +0200

----------------------------------------------------------------------
 WHATSNEW                |  6 ++++++
 manual/Tasks/style.html | 16 ++++++++++++++++
 2 files changed, 22 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ant/blob/a3897d4e/WHATSNEW
----------------------------------------------------------------------
diff --git a/WHATSNEW b/WHATSNEW
index 34a0c27..215f8cb 100644
--- a/WHATSNEW
+++ b/WHATSNEW
@@ -92,6 +92,12 @@ Other changes:
  * it is now possible to use references to Ant types and classloaders
    built around Ant <path>s as values for TraX factory attributes.
 
+ * <junitreport> now enables the feature
+   http://www.oracle.com/xml/jaxp/properties/enableExtensionFunctions
+   when run on Java 9 so the redirect extension function can be used
+   if when a SecurityManager is active.
+   Bugzilla Report 60060
+
 Changes from Ant 1.9.6 TO Ant 1.9.7
 ===================================
 

http://git-wip-us.apache.org/repos/asf/ant/blob/a3897d4e/manual/Tasks/style.html
----------------------------------------------------------------------
diff --git a/manual/Tasks/style.html b/manual/Tasks/style.html
index 5eda026..81e7e6b 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>

Reply via email to