[Mono-docs-list] Re: Monodoc bug Redux
ginga@kit.hi-ho.ne.jp
ginga@kit.hi-ho.ne.jp
Mon, 10 Mar 2003 11:43:56 +0900
--------_3E6BF4C6DDD9046F81D0_MULTIPART_MIXED_
Content-Type: text/plain; charset="US-ASCII"
Content-Transfer-Encoding: 7bit
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
--------_3E6BF4C6DDD9046F81D0_MULTIPART_MIXED_
Content-Type: application/octet-stream; name="XslTransform.patch"
Content-Disposition: attachment;
filename="XslTransform.patch"
Content-Transfer-Encoding: base64
SW5kZXg6IFhzbFRyYW5zZm9ybS5jcwo9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09ClJDUyBmaWxlOiAvY3ZzL3B1YmxpYy9t
Y3MvY2xhc3MvU3lzdGVtLlhNTC9TeXN0ZW0uWG1sLlhzbC9Yc2xUcmFuc2Zvcm0uY3MsdgpyZXRy
aWV2aW5nIHJldmlzaW9uIDEuMTIKZGlmZiAtdSAtcjEuMTIgWHNsVHJhbnNmb3JtLmNzCi0tLSBY
c2xUcmFu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