On 2018-01-12, Sarika Sinha wrote:

> We are trying to use xslt with Java 9 using this -
> <factory name="org.apache.xalan.processor.TransformerFactoryImpl">
>     <feature name="
> http://www.oracle.com/xml/jaxp/properties/enableExtensionFunctions";
> value="true"/>
>   </factory>

> With Java 9,  org.apache.xalan.processor.TransformerFactoryImpl is present
> in java.xml module but the package
> com.sun.org.apache.xalan.internal.xsltc.trax is not exported in the module.

I'm confused. Are you looking for TransformerFactoryImpl in
org.apache.xalan.processor or in
com.sun.org.apache.xalan.internal.xsltc.trax or where? I don't see where
the requirement for com.sun.org.apache.xalan.internal.xsltc.trax comes
from at all.

If you want to enable the feature on the default transformer factory
provided by the java.xml module, you don't need to specify a name for
the factory at all. Something like

 <factory>
     <feature
       name="http://www.oracle.com/xml/jaxp/properties/enableExtensionFunctions";
       value="true"/>
 </factory>

Stefan

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@ant.apache.org
For additional commands, e-mail: dev-h...@ant.apache.org

Reply via email to