• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 815
  • Last Modified:

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
1 Solution
chrishorakAuthor Commented:
I've just found this article that seems to give me all I need:

Because you have presented a solution to your own problem which may be helpful to future searches, this question is now PAQed and your points have been refunded.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Microsoft Office 2010

This course will introduce you to the interfaces and features of Microsoft Office 2010 Word, Excel, PowerPoint, Outlook, and Access. You will learn about the features that are shared between all products in the Office suite, as well as the new features that are product specific.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now