SIL.FieldWorks.Common.RootSites.CollectorEnv.ProcessXsltForPass C# (CSharp) Method

ProcessXsltForPass() public static method

Apply the XSLT to the output file, first renaming it so that the user sees the expected final output file.
public static ProcessXsltForPass ( string sXsltFile, string sOutputFile, int iPass ) : void
sXsltFile string
sOutputFile string
iPass int
return void
		public static void ProcessXsltForPass(string sXsltFile, string sOutputFile, int iPass)
		{
			string sIntermediateFile = RenameOutputToPassN(sOutputFile, iPass);

			XslCompiledTransform xsl = new XslCompiledTransform();
			xsl.Load(sXsltFile);
			xsl.Transform(sIntermediateFile, sOutputFile);
			// Deleting them deals with LT-6345,
			// which asked that they be put in the temp folder.
			// But moving them to the temp directory is better for debugging errors.
			FileUtils.MoveFileToTempDirectory(sIntermediateFile, "FieldWorks-Export");
		}