Hi Eno, I saw in one of the overloads there is a check that stylesheet was loaded, and in the other there is no such check, so instead of XsltException there will be NullPointerException. Please review the patch to fix it.
Regards, Andrew. Index: XslTransform.cs =================================================================== --- XslTransform.cs (revision 52469) +++ XslTransform.cs (working copy) @@ -192,6 +192,9 @@ void Transform (XPathNavigator input, XsltArgumentList args, TextWriter output, XmlResolver resolver) #endif { + if (s == null) + throw new XsltException ("No stylesheet was loaded.", null); + Outputter outputter = new GenericOutputter(output, s.Outputs, output.Encoding); new XslTransformProcessor (s).Process (input, outputter, args, resolver); outputter.Done (); _______________________________________________ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list