Re: Using Custom XSLT in Message Construction Shape
From: Greg Forsythe (greg.forsythe_at_unisys.com)
Date: 12/02/04
- Next message: Greg Forsythe: "Re: HTTP messaging port"
- Previous message: Greg Forsythe: "Re: Creating one File output for each input record"
- In reply to: Matt Meleski: "RE: Using Custom XSLT in Message Construction Shape"
- Next in thread: Bob Corcoran: "Re: Using Custom XSLT in Message Construction Shape"
- Reply: Bob Corcoran: "Re: Using Custom XSLT in Message Construction Shape"
- Messages sorted by: [ date ] [ thread ]
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
- Next message: Greg Forsythe: "Re: HTTP messaging port"
- Previous message: Greg Forsythe: "Re: Creating one File output for each input record"
- In reply to: Matt Meleski: "RE: Using Custom XSLT in Message Construction Shape"
- Next in thread: Bob Corcoran: "Re: Using Custom XSLT in Message Construction Shape"
- Reply: Bob Corcoran: "Re: Using Custom XSLT in Message Construction Shape"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|