public static Transformer createTtmlTransformer(String xslt){
  TransformerFactory tf=TransformerFactory.newInstance(XSLT2_TRANSFORMER_IMPLEMENTATION,null);
  InputStream transformationStream=ResourceHelper.getResourceInputStream(xslt);
  if (transformationStream == null) {
    throw new ConvertException(String.format("The transformation file is absent: %s",xslt));
  }
  try {
    return tf.newTransformer(new StreamSource(transformationStream));
  }
 catch (  TransformerConfigurationException e) {
    throw new ConvertException(e);
  }
}

public static Transformer createTtmlTransformer ( String xslt ) { TransformerFactory tf = TransformerFactory . newInstance ( XSLT2_TRANSFORMER_IMPLEMENTATION , null ) ; InputStream transformationStream = ResourceHelper . getResourceInputStream ( xslt ) ; if ( transformationStream == null ) { throw new ConvertException ( String . format ( "The transformation file is absent: %s" , xslt ) ) ; } try { return tf . newTransformer ( new StreamSource ( transformationStream ) ) ; } catch ( TransformerConfigurationException e ) { throw new ConvertException ( e ) ; } }
creates specific for ttml document transformer .
