[Mono-bugs] [Bug 51416][Nor] New - XslTransform.Transform() does not accept XmlUrlResolver instance.

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Tue, 25 Nov 2003 22:42:26 -0500 (EST)


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by rsbarro@metaverse.cc.

http://bugzilla.ximian.com/show_bug.cgi?id=51416

--- shadow/51416	2003-11-25 22:42:26.000000000 -0500
+++ shadow/51416.tmp.22848	2003-11-25 22:42:26.000000000 -0500
@@ -0,0 +1,46 @@
+Bug#: 51416
+Product: Mono/Class Libraries
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: System.XML
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: rsbarro@metaverse.cc               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: XslTransform.Transform() does not accept XmlUrlResolver instance.
+
+In MS.NET 1.1 you can pass an XmlUrlResolver instance into the Transform()
+method... i.e.,
+
+//Create the XslTransform
+XslTransform xslt = new XslTransform();
+
+//Create a resolver and set the credentials to use
+XmlUrlResolver resolver = new XmlUrlResolver();
+
+//Load the stylesheet
+xslt.Load(this.Stylesheet.CacheFilename, resolver);
+
+//Load the XML data file
+XmlDocument xmlDoc = new XmlDocument();
+xmlDoc.Load(this.CacheFilename);
+
+//Transform the file.
+StringWriter sw = new StringWriter();
+xslt.Transform(xmlDoc, new XsltArgumentList(), sw, resolver);
+string xform = sw.ToString();
+sw.Close();
+
+However, under mono 0.28 I get a compile error:
+Metaverse.Web.Services.Agent/AgentObjects/Content.cs(149) error CS1501: No
+overload for method `Transform' takes `4' arguments
+Metaverse.Web.Services.Agent/AgentObjects/Content.cs(149) error CS8006:
+Could not find any applicable function for this argument list
+Compilation failed: 2 error(s), 0 warnings