How do you get the underlying Xslt stylesheet content from an XslTransform object that has been created and loaded with a stylesheet file or some text?
Assume a method will create an XslTransform object, load it with a stylesheet file or some text, and return this object.
public XslTransform Create()
{
XslTransform xslt = new XslTransform();
xslt.Load("style.xsl"); //or load with some built-in stylesheet text
return xslt;
}
In the calling method, how do you see the content of the underlying transform (the content of the file style.xsl or whatever text that was loaded to the object) from the object xslt itself?
Assume the file style.xsl is unavailable to you, or the method Create() is actually in a libray with no source code, or xslt was loaded with not file, but built-in text.
Note this is before the xslt object is going to do any transformation on any Xml. I just want to know what this transformation is going to do.
Please help.
Thanks
--------------------------------
From: shell shell
-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)
<Id>TkDyYJU8kkCgwU4iX2sYKg==</Id>