[Mono-bugs] [Bug 56832][Wis] New - Transformation fails if document to transform is not loaded via document.Load()

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Mon, 12 Apr 2004 08:50:36 -0400 (EDT)


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 eric.andersson@kiara.se.

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

--- shadow/56832	2004-04-12 08:50:36.000000000 -0400
+++ shadow/56832.tmp.12548	2004-04-12 08:50:36.000000000 -0400
@@ -0,0 +1,47 @@
+Bug#: 56832
+Product: Mono: Class Libraries
+Version: unspecified
+OS: Red Hat 9.0
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: Sys.XML
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: eric.andersson@kiara.se               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Transformation fails if document to transform is not loaded via document.Load()
+
+Please fill in this template when reporting a bug, unless you know what 
+you are doing.
+Description of Problem:
+
+Transformation via XslTransform will fail if the XmlDocument to be 
+transformed is filled with contents via a call to LoadXml(). This is due 
+to the following line in mcs/class/System.XML/Mono.Xml.Xsl/Compiler.cs:
+
+>>Uri absUri = res.ResolveUri (new Uri (Input.BaseURI), url);
+
+The reason is that the BaseURI of "Input" will be empty when the 
+XmlDocument isn't loaded via Load(<uri>).
+
+Steps to reproduce the problem:
+1. Create a XmlDocument to hold the data
+2. Create a document to hold the template and a XslTransform
+3. Load the XmlDocument with contents via LoadXml
+4. Call Transform in XslTransform to transform your document
+
+Actual Results:
+An "Invalid URI format" exception is thrown
+
+Expected Results:
+A transformation returning results
+
+How often does this happen? 
+Always
+
+Additional Information: