chrishorak
asked on
Using XslCompiledTransform to perform 3 transformations to an XMLdocument
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.Trans form (IXPathNavigable, XsltArgumentList, Stream)
XslCompiledTransform.Trans form (IXPathNavigable, XsltArgumentList, TextWriter)
XslCompiledTransform.Trans form (IXPathNavigable, XsltArgumentList, XmlWriter)
Any help would be appreciated.
Thanks Chris
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.Trans
XslCompiledTransform.Trans
XslCompiledTransform.Trans
Any help would be appreciated.
Thanks Chris
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
http://blogs.msdn.com/xmlteam/articles/Introducing_XslCompiledTransform.aspx