Re: Using Custom XSLT in Message Construction Shape

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Greg Forsythe (greg.forsythe_at_unisys.com)
Date: 12/02/04


Date: Fri, 3 Dec 2004 12:36:07 +1300

There are limitiations in Matts technique, the mapper generates wrapping
XSLT i.e the root node and 2 <xsl:template> nodes, but probably the biggest
limitation is the size of the edit window :(

If your XSLT is self contained, there is an better way.
Add the XSLT document to your project.
Create a map - specify the input and output schemas
Click on the grid.
Go to the properties window and set the "Custom XSLT Path" to the relative
file name of your XSLT
i.e. ./MyXSLTFile.xslt.

You can edit the XSLT in a sizeable, syntax-colored window and you can still
validate and test the map

The created map can be used in a Transform shape or in a send /receive
pipeline

Check out this example which has an 800 line XSLT file. I would have gone
postal if I had had to edit this inside a functoid.
http://www.gotdotnet.com/Community/UserSamples/Details.aspx?SampleGuid=78c0fd43-e4c3-4dcf-af23-fe72f317891a

Greg

"Matt Meleski" <MattMeleski@discussions.microsoft.com> wrote in message
news:16B29E66-31BE-4C62-8495-6E6B621964ED@microsoft.com...
> Craig,
>
> Place your custom XSLT in a Scripting
> Functoid in a map , Some examples are :
>
>
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/sdk/htm/ebiz_sdk_samples_xmltools_eprq.asp
>
> http://objectsharp.com/Blogs/matt/archive/2004/11/24/1031.aspx
> http://dotnetjunkies.com/WebLog/jlynch/archive/2004/07/13/19240.aspx
>
> Matt.
>
> "cneuwirt" wrote:
>
> > I have a custom XSLT document that I would like to use in the Transform
step
> > of Message Construction Shape. Is the possible without having to do
this
> > programatically within the Construction Shape. Anotherwords, I would
like it
> > to behave just as if I used a map.
> >
> > thanks,
> > craig



Relevant Pages

  • Re: BizTalk 2006 :: Mapper problems with XSLT at runtime
    ... We use XSLT over the mapper and have come across a fair few problems, ... Check that the map is actually using the XSLT in the 'Custom XSLT ... Uncaught exception has suspended ... Data at the root level is invalid. ...
    (microsoft.public.biztalk.general)
  • Re: BizTalk 2006 :: Mapper problems with XSLT at runtime
    ... We use XSLT over the mapper and have come across a fair few problems, ... Check that the map is actually using the XSLT in the 'Custom XSLT ... Uncaught exception has suspended ... Data at the root level is invalid. ...
    (microsoft.public.biztalk.general)
  • Re: BizTalk 2006 :: Mapper problems with XSLT at runtime
    ... We use XSLT over the mapper and have come across a fair few ... Check that the map is actually using the XSLT in the 'Custom XSLT ... Uncaught exception has suspended ... Data at the root level is invalid. ...
    (microsoft.public.biztalk.general)
  • Re: Mapping Parent Child Schema to Flat Schema
    ... Agree that a map with custom xslt is much faster in performance than ... map with functoids but due to the possiblity that a map functoinality ...
    (microsoft.public.biztalk.general)
  • BizTalk 2006 :: Mapper problems with XSLT at runtime
    ... I am having a problem at runtime with a map that contains an xslt in the ... custom path. ... test map) it works fine but at runtime the map fails ...
    (microsoft.public.biztalk.general)