tags:

views:

16

answers:

0

Hello,

I am creating an XPathDocument from a SQL result set, then I am attempting to use XmlCompiledTransform.Transform on the object like so:

        XslCompiledTransform xslCompiledTransform = new XslCompiledTransform();
        xslCompiledTransform.Load(Request.PhysicalApplicationPath + "/Abc/Abc.xsl");)); 
        xslCompiledTransform.Transform(xPathDocument, null, textwriter);

When I do this, nothing loads in the result. When I check the XML, it is not formatted correctly for the XSL it was missing the proper root. If I save the resulting XML locally however, and append the proper xmlns: to the root, it loads just fine. Needless to say, I decide to add the correct "xmlns:" attribute to the XML root in the code(I am wrapping my results with correct root to begin with). When I stick that in - I get an error:

JIT Compiler encountered an internal limitation.

Any idea what this means?