code: public void transform(
                      final Source source,
                      final Result result
                      )
      {
          Transformer  transformer = _newTransformer();
                                     //throws XmlException
  
          try {
              transformer.transform( source, result );
                          //throws TransformerException
          } catch (Exception ex) {
              throw new XmlException( ex );
          }
      }
docs: Transforms the source XML to the result.
  If no stylesheet was specified, the result is
  identical with the source.
  
  @param   source
  the XML input to transform.
  @param   result
  the result of transforming the source.
  @throws  XmlException
  if the transformation fails.