Check XSL Transformer Output

In IFS Cloud, there’s no easy way to test the transformer output. Visual studio Enterprise or Professional versions has a XML editor where you can easily test the transformer output but the Community edition does not have this feature. If you have Visual Studio Enterprise or Professional, check below link on how to do that. Commoners, keep reading, it’s just 5 mins job.

➡️Test XSL Transformer Output with Visual Studio Enterprise/Professional

Required tools: Visual Studio (Community Edition)

  • Create a new .NET Framework Console app
  • Copy following code in the Program.cs
using System;
using System.IO;
using System.Xml;
using System.Xml.Xsl;

namespace ConsoleApplication
    class Program
        private const string sourceFile = @"C:\transformer\input.xml";
        private const string stylesheet = @"C:\transformer\transformer.xsl";
        private const string outputFile = @"C:\output.xml";

        static void Main(string[] args)
            // Enable XSLT debugging.
            XslCompiledTransform xslt = new XslCompiledTransform(true);

            // Compile the style sheet.
      // Execute the XSLT transform.
            FileStream outputStream = new FileStream(outputFile, FileMode.Append);
            xslt.Transform(sourceFile, null, outputStream);
  • Login to IFS Cloud, go to Solution Manager > Integration > IFS Connect > Setup IFS Connect > Transformers
  • Find the transformer you want to test, Download the file
  • Replace the stylesheet file path with where you’ve downloaded the file
private const string stylesheet = @"C:\Users\admin\Downloads\ToMixedCase.xsl";
  • Change the name for the source XML as well. If it’s IFS generated XML, you can find the XML from the Application Message Details
  • Run the program (F5). You should see the transformed XML in the path given in outputFile

That’s it! Just 5 mins work… 😎

Source: How to: Start Debugging XSLT


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

Website Powered by

Up ↑

%d bloggers like this: