Discussion:
creating a usable component
(too old to reply)
Andrew Brook
2007-08-22 14:22:40 UTC
Permalink
Hi Everyone,

I'd basically like to produce a .NET component that given an input XML file
(or stream) will return an output XML file (or stream) with transformations
applied. I'm currently working on the transformation side of things, but i'm
hoping that what I produce can then be slipped into other .NET projects that
I have. Just to clarify, i'm not using biztalk server here, i'm just hoping
to use the mapping side of things.

thanks,
Andrew
Jan Eliasen
2007-08-22 15:24:17 UTC
Permalink
On Wed, 22 Aug 2007 15:22:40 +0100, "Andrew Brook"
Post by Andrew Brook
I'd basically like to produce a .NET component that given an input XML file
(or stream) will return an output XML file (or stream) with transformations
applied. I'm currently working on the transformation side of things, but i'm
hoping that what I produce can then be slipped into other .NET projects that
I have. Just to clarify, i'm not using biztalk server here, i'm just hoping
to use the mapping side of things.
When you are done with your map inside the mapper, you can rightclick
the .btm file in solution explorer and choose "validate map". In the
output pane, you will get a tlink to the generated xslt. This xslt can
be used in your own component, using the standard XSLT transform
methods.
--
eliasen, representing himself and not the company he works for.

Private blog: http://blog.eliasen.dk

Private email: ***@eliasen.dk
Andrew Brook
2007-10-30 12:33:54 UTC
Permalink
Jan,

Apologies for a long delay in responding here.

Even though the XSLT is useful - it would be far easier if I could use the
generated DLL somehow (apart from using bizatalk server). For example, my
transformation includes some c# - this would not be represented in the
resulting XSLT I assume?

thanks,
Andrew
Post by Jan Eliasen
On Wed, 22 Aug 2007 15:22:40 +0100, "Andrew Brook"
Post by Andrew Brook
I'd basically like to produce a .NET component that given an input XML file
(or stream) will return an output XML file (or stream) with
transformations
applied. I'm currently working on the transformation side of things, but i'm
hoping that what I produce can then be slipped into other .NET projects that
I have. Just to clarify, i'm not using biztalk server here, i'm just hoping
to use the mapping side of things.
When you are done with your map inside the mapper, you can rightclick
the .btm file in solution explorer and choose "validate map". In the
output pane, you will get a tlink to the generated xslt. This xslt can
be used in your own component, using the standard XSLT transform
methods.
--
eliasen, representing himself and not the company he works for.
Private blog: http://blog.eliasen.dk
Jan Eliasen
2007-11-07 13:52:02 UTC
Permalink
On Tue, 30 Oct 2007 12:33:54 -0000, "Andrew Brook"
Post by Andrew Brook
Apologies for a long delay in responding here.
Even though the XSLT is useful - it would be far easier if I could use the
generated DLL somehow (apart from using bizatalk server). For example, my
transformation includes some c# - this would not be represented in the
resulting XSLT I assume?
Actually, it would.

And programmatically, you can use the dll generated instead, if you
want to - I just don't know the code to do it..
--
eliasen, representing himself and not the company he works for.

Private blog: http://blog.eliasen.dk

Private email: ***@eliasen.dk
Andrew Brook
2007-11-08 08:44:46 UTC
Permalink
thanks - i've actually looked at the generated XSL and it does constain the
c# - interesting, i suppose MSXML can understand that when it finds it...
otherwise it wouldn't work :)

I also tried to add the DLL into another project and was encourage until i
realised i didn't know how to call it, i suppose it would have been asking
too much for there to be a Transform function which took the path of the XML
you'd like to process :)

I don't suppose you know of any starting points on the web where I may be
able to find out the information for calling using DLL from another project?

thanks,
Andrew
Post by Jan Eliasen
On Tue, 30 Oct 2007 12:33:54 -0000, "Andrew Brook"
Post by Andrew Brook
Apologies for a long delay in responding here.
Even though the XSLT is useful - it would be far easier if I could use the
generated DLL somehow (apart from using bizatalk server). For example, my
transformation includes some c# - this would not be represented in the
resulting XSLT I assume?
Actually, it would.
And programmatically, you can use the dll generated instead, if you
want to - I just don't know the code to do it..
--
eliasen, representing himself and not the company he works for.
Private blog: http://blog.eliasen.dk
Loading...