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
"Muhammad Nasir Waqar" wrote in message news:OTYQ0%23L4IHA.784@TK2MSFTNGP04.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. > > -- > Kind Regards, > Muhammad Nasir Waqar > Assuming you want to stick with the built-in classes then: Create a new instance of XslCompiledTransform use the Load method to load the XSLT (You'll need to use the overload that takes an XsltSettings class as you need to allow the document function. Use the Transform method. You may need to pass a dummy XML source document as your XSLT doesn't actually use one. More here http://msdn.microsoft.com/en-us/library/system.xml.xsl.xslcompiledtransform.aspx -- Joe Fawcett (MVP - XML) http://joe.fawcett.name