[Mono-devel-list] Re: Monodoc bug Redux

ginga at kit.hi-ho.ne.jp ginga at kit.hi-ho.ne.jp
Sun Mar 9 21:43:56 EST 2003


Hello,

> If the XmlReader fails with genuine XML, we should have a test case, and
> work from that to fix it.

I agree. Sorry to say I couldn't make monodoc nor libxslt on windows
yet and have no enough time. (Hmm... as to xslt, only I need to do is
copy rename libxslt.dll to xslt.dll and copy it to SYSTEM32, isn't it?
libxml2.dll is OK ...)

> I just noticed that Monodoc is in fact failing for most Xml documents,
> with a crash like this:

At least this XslTransform patch would be well. (It is the same
patch that I sent to Hector to try. It seems work well.)

And ecma-provider.cs... Hmm, cannot connect to anoncvs.
It is ecma-provider workaround:

-	transformed_doc.Load (transformed);
-	return transformed_doc.InnerXml;
+	XmlDocument transformed_doc = new XmlDocument ();
+	transformed_doc.LoadXml ("<dummy_root />");
+	while (!transformed.EOF) {
+		XmlNode n = transformed_doc.ReadNode (transformed);
+		if (n != null)
+			transformed_doc.DocumentElement.AppendChild (n);
+	}
+	return transformed_doc.DocumentElement.InnerXml;


  Atsushi Eno
-------------- next part --------------
A non-text attachment was scrubbed...
Name: XslTransform.patch
Type: application/octet-stream
Size: 758 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20030310/e0cbef0b/attachment.obj 


More information about the Mono-devel-list mailing list