Team Individualism (old blog)

Consultant ramblings

Wednesday, November 30, 2005

Embedding complete XSLT Stylesheets into the BizTalk 2004 Mapper

There appear to be only two ways of getting access to source document Xml - either through a custom functoid or via inline XSLT.

With inline XSLT, as described below one cannot pass the output into another XSLT (or functoid). It can only pass directly to the target.

With a functoid there is a learning curve and potentially it might not work....

So what will work is using inline XSLT and calling an external assembly within it. This way one can embed another XSLT style sheet within the mapper (my ultimate goal).

This requires:

- generation of an assembly that contains reference to the XSLT resources
- Version, SNK and GAC assembly
- Add External Assembly to the "Custom Extension XML" file as indicated for the map
- In the XSLT resource to be used, omit the xml declaration (so you don't get two declarations)
- Add an inline XSLT scripting functoid to access the source nodes (XPathNodeIterator). note: disable output escaping
-Add output from scripting functiod to the target node

Goto this link for some info on Using embedded resources in .NET

0 Comments:

Post a Comment

<< Home