Hi All
I've decided to put my stylesheets in a base64 .resource file for
deployment and versioning reasons. I dont know if it's a great idea to
do this but I couldn't think of another way of doing this other than
making them available via www which may or may not be accessible (so
this is a no go). Bear with me because I've only been using C# for one
day so far (today is day 2! wohoo).
// begin code snippet
XslTransform xslt = new XslTransform();
// put stylesheet in a string variable
ResourceManager rManager=newResourceManager("abcd.StyleSheets",
Assembly.GetExecutingAssembly());
//Load the stylesheet.
xslt.Load(resourceManager.GetString("0"));
// end code snippet
Here I get an error on the Load method which I'm guessing is because the
load method expects a filename not the raw XML.
Is there a method which accepts raw XML within the System.Xml.Xsl?
A LoadXML method would be what I'm looking for, alternatively if some
kind soul could offer me some opinion on some other way to do what I need?