Friday, July 6, 2007

Review the XSLT generated for the map

It is often useful to inspect the XSLT generated by the map compiler. Some of the benefits of inspecting XSLT include:

· If you are using looping or custom functoids, you will better understand how the looping is performed and how the custom functoid is invoked.

· If you have a complicated map, reviewing the XSLT will enable you to see how the map is translated into a transform and may give you insight about how to better structure, replace, or streamline one or more parts.

· If you are using custom scripts or other artifacts, reviewing the XSLT will enable you to see how the scripts, artifacts, and other parts of the map interact.

Fortunately, viewing the XSLT for a map is an easy process.

To view the XSLT generated by the map compiler

1. From a Visual Studio BizTalk project, click the Solution Explorer tab, right-click a map, and then click Validate Map.

2. Scroll the Output window to find the URL for the XSL file. Press CTRL and click the URL to view the file.

If you decide to customize your map by hand, you can modify the version produced by the map compiler. Changes will not be reflected by the Mapper and will be lost the next time you build your solution.

Source: Microsoft

No comments: