Browse Source

document how to use XSLT extension functions in Java9

https://bz.apache.org/bugzilla/show_bug.cgi?id=60060
master
Stefan Bodewig 8 years ago
parent
commit
a3897d4e9f
2 changed files with 22 additions and 0 deletions
  1. +6
    -0
      WHATSNEW
  2. +16
    -0
      manual/Tasks/style.html

+ 6
- 0
WHATSNEW View File

@@ -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
===================================



+ 16
- 0
manual/Tasks/style.html View File

@@ -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>


Loading…
Cancel
Save