code: private static String portToCurrentVersion(String xml, String xsl) throws Exception 
      {
      	// convert it.
      	String version5XML = XSLTransformation.transform(xsl, xml, null);
      	// Add the namespace attribute to the process element as it is not added by the XSL transformation.
      	version5XML = version5XML.replaceAll( "<process ", PROCESS_ELEMENT_WITH_NAMESPACE );
      	return version5XML;
      }
docs: ***********************************************************************
  Utility method that applies a given xsl transform to the given xml to
  transform a drools 4 ruleflow to version 5.
  @param xml the ruleflow to be transformed
  @param xsl the xsl transform to apply to the ruleflow xml
  @return the ruleflow xml transformed from version 4 to 5 using the
  given xsl transformation
  @throws Exception
  **********************************************************************