public TagTransformation(String sourceTag,String destTag,boolean preserveSourceAttributes){
  this.sourceTag=sourceTag.toLowerCase();
  if (destTag == null) {
    this.destTag=null;
  }
 else {
    this.destTag=Utils.isValidXmlIdentifier(destTag) ? destTag.toLowerCase() : sourceTag;
  }
  this.preserveSourceAttributes=preserveSourceAttributes;
}

public TagTransformation ( String sourceTag , String destTag , boolean preserveSourceAttributes ) { this . sourceTag = sourceTag . toLowerCase ( ) ; if ( destTag == null ) { this . destTag = null ; } else { this . destTag = Utils . isValidXmlIdentifier ( destTag ) ? destTag . toLowerCase ( ) : sourceTag ; } this . preserveSourceAttributes = preserveSourceAttributes ; }
creates new tag transformation from source tag to target tag specifying whether source tag attributes are preserved .
