ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: Facing problem using xslt and Java 9
Date Mon, 15 Jan 2018 08:02:43 GMT
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-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message