however, i have no clue as to how i can send the transfrom results to the client!
here is what im doing:
//the classes
public abstract class XMLWorker
{
protected XmlDocument xmlDoc = new XmlDocument();
protected XMLWorker()
{
}
}
public sealed class XMLPageCore : XMLWorker
{
public XMLPageCore(string Path2BaseXML)
{
xmlDoc.Load(Path2BaseXML);
XmlElement selectedNode = (XmlElement)xmlDoc.DocumentElement.Selec
}
public void Deploy(string XSLTPath,System.IO.Stream Stream)
{
System.Xml.Xsl.XslCompiledTransform XSLT = new System.Xml.Xsl.XslCompiledTransform();
default: XSLT.Load(XSLTPath);
System.Xml.Xsl.XsltArgumentList args=new System.Xml.Xsl.XsltArgumentList ();
XSLT.Transform(xmlDoc.DocumentElement,ar
}
}
//The call
XMLPageCore test = new XMLPageCore(Server.MapPath("test/XMLFile
test.Deploy(false,Server.MapPath("test/X
on the page though, i get the XML Processing Instructions < .. and then all of the xml content w/o any tags or whitespace.
but if i use the overload of xslt.transform that will take the input and output files as parameter, it works just fine.
to be honest im really at a bit of a loss as to what is going on here!

Transfrom Memory XML and send output to client
James Grant
XslCompiledTransform starts transformation from element you passed to it comparing to XslTransform which always starts from root node.
As a result <template match="/" > never matches any nodes. And default template rules copy all text nodes of your source document to output.
You can find some details on Introducing XslCompiledTransform.
gs,Stream);
XSLT.Transform(xmlDoc.DocumentElement,args,Stream);
To fix this in your code call:
XSLT.Transform(xmlDoc,ar
instead of
(I didn't verify the fix, but it seams that this is the issue.)
t_girl
pravin333
i <!DOCTYPE htm
Flaatten
BusmasterJones
the xsl:output node seems to be ignored by the transfrom.
Tom Majarov
there must be a way to get rid of it!