Link to home
Start Free TrialLog in
Avatar of chrishorak
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.Transform (IXPathNavigable, XsltArgumentList, Stream)
XslCompiledTransform.Transform (IXPathNavigable, XsltArgumentList, TextWriter)
XslCompiledTransform.Transform (IXPathNavigable, XsltArgumentList, XmlWriter)

Any help would be appreciated.

Thanks Chris
Avatar of chrishorak
chrishorak

ASKER

I've just found this article that seems to give me all I need:

http://blogs.msdn.com/xmlteam/articles/Introducing_XslCompiledTransform.aspx
ASKER CERTIFIED SOLUTION
Avatar of EE_AutoDeleter
EE_AutoDeleter

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial