@ Nullable public static Transformer newTransformer ( @ Nonnull final TransformerFactory aTransformerFactory ) { ValueEnforcer . notNull ( aTransformerFactory , "TransformerFactory" ) ; try { return aTransformerFactory . newTransformer ( ) ; } catch ( final TransformerConfigurationException ex ) { LOGGER . error ( "Failed to create transformer" , ex ) ; return null ; } }
Create a new XSLT transformer for no specific resource .