Implement XSLT in BizTalk mapping

There are two ways to implement custom xslt in BizTalk mapping.

  1. Implement xslt for full mapping
  2. partially implement xslt by using Script functoid

Implement xslt for full mapping:

Microsoft provides very rich features for mapping. still if there is require for custom xslt then also its make easy to create xslt by BizTalk mapping. just right click on mapping as below and select Validate map. it will create the xslt file. check the result in Output section.

This image has an empty alt attribute; its file name is image-2.png

Output section as below:

This image has an empty alt attribute; its file name is image-3.png

You can get the XSLT at mentioned location. Modified that and add again that xslt in map as below:

Select Map grid properties and provide Custom XSLT path as below:

Implement XSLT by using Scripting functoid:

The Scripting Functoid enables you to use custom script or code at run time to perform functions
otherwise not available. It supports the following languages: C# .NET, JScript .NET, Visual Basic .NET, Extensible Stylesheet Language Transformations (XSLT) and XSLT Call Templates.

If there is require small use of custom xslt in map. you can use Scripting functoid and select script type as Inline XSLT to achieve the task. as below:

This image has an empty alt attribute; its file name is image-4.png

Use the Scripting functoid to use custom inline script or to call into an external .NET assembly for creating the target node in the destination schema. Inline scripts associated with this functoid must be written in a .NET language. When calling an external .NET assembly, it must be strong signed and registered in the global assembly cache.

BizTalk Server Monitoring

3 responses to “Implement XSLT in BizTalk mapping”

  1. simple and cool

    Like

Leave a comment