I have some code where I create an XML document (XMLDocument) and then I need to transform that document based on various criteria. I may need to transform that single XML document 3 or 4 times, using 3 or 4 different .xslt files
What is the best way to go about it using the Transform method from the XslCompiledTransform class?
Do I need to output the result to a temporary file to disk everytime and then load that again when I need to do the next transformation, or can i do it all in memory on the XML document I already have loaded?
I will also be using XsltArgumentList to pass arguments into my xslt
So i assume that i will use one or a combination of the following:
XslCompiledTransform.Transform (IXPathNavigable, XsltArgumentList, Stream)
XslCompiledTransform.Transform (IXPathNavigable, XsltArgumentList, TextWriter)
XslCompiledTransform.Transform (IXPathNavigable, XsltArgumentList, XmlWriter)
Any help would be appreciated.