Hi,

I have an XSLT which merges 2 XML Documents provided as input parameters. I
want to use that XSLT in my dot net code(C#). Please help me that how can I
handle this situation.

--
Kind Regards,
Muhammad Nasir Waqar

Re: Merge 2 XML Documents using XSLT Transform by Anthony

Anthony
Tue Jul 08 10:30:38 CDT 2008

"Muhammad Nasir Waqar" <nasir@advcomm.net> wrote in message
news:usKwH$L4IHA.1192@TK2MSFTNGP05.phx.gbl...
> Hi,
>
> I have an XSLT which merges 2 XML Documents provided as input parameters.
I
> want to use that XSLT in my dot net code(C#). Please help me that how can
I
> handle this situation.
>

something like:-


XslCompiledTransform trans = new XslCompiledTransform ()
trans.Load("your.xsl")

XslArgumentList args = new XslArgumentList ()

args.AddParam("param1", yourXMLDoc1);
args.AddParam("param2", yourXMLDoc2);

trans.Transform(yourXMLDocSeed, args, destStream);



--
Anthony Jones - MVP ASP/ASP.NET