diff options
author | Atsushi Eno <atsushieno@gmail.com> | 2005-09-16 13:17:15 +0400 |
---|---|---|
committer | Atsushi Eno <atsushieno@gmail.com> | 2005-09-16 13:17:15 +0400 |
commit | c3651400738ee1cf20bcdcea8a095e1f1997cf42 (patch) | |
tree | ae74442673fa5b71c029f127b08e2f94ca4e7c14 /mcs/class/System.XML/System.Xml.Xsl | |
parent | 7d046c5639cfe8cc3b8c93b7488f069e7dd7b598 (diff) |
2005-09-16 Atsushi Enomoto <atsushi@ximian.com>
* XslTransform.cs : When Transform() returns XmlReader, allow empty
results. Fixed bug #76115.
* ScriptCompilerInfo.cs : Compile correct replacement result.
Fixed bug #76116.
* XslTransformTests.cs : added testcase for bug #76115.
* MSXslScriptTests.cs : added testcase for bug #76116.
svn path=/trunk/mcs/; revision=50132
Diffstat (limited to 'mcs/class/System.XML/System.Xml.Xsl')
-rw-r--r-- | mcs/class/System.XML/System.Xml.Xsl/ChangeLog | 5 | ||||
-rw-r--r-- | mcs/class/System.XML/System.Xml.Xsl/XslTransform.cs | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/mcs/class/System.XML/System.Xml.Xsl/ChangeLog b/mcs/class/System.XML/System.Xml.Xsl/ChangeLog index f6cc388b795..440e8b8fd42 100644 --- a/mcs/class/System.XML/System.Xml.Xsl/ChangeLog +++ b/mcs/class/System.XML/System.Xml.Xsl/ChangeLog @@ -1,3 +1,8 @@ +2005-09-16 Atsushi Enomoto <atsushi@ximian.com> + + * XslTransform.cs : When Transform() returns XmlReader, allow empty + results. Fixed bug #76115. + 2005-08-31 Sebastien Pouliot <sebastien@ximian.com> * XsltArgumentList.cs: Added a LinkDemand for Unrestricted on diff --git a/mcs/class/System.XML/System.Xml.Xsl/XslTransform.cs b/mcs/class/System.XML/System.Xml.Xsl/XslTransform.cs index 17ba1a584a4..2281ba9b789 100644 --- a/mcs/class/System.XML/System.Xml.Xsl/XslTransform.cs +++ b/mcs/class/System.XML/System.Xml.Xsl/XslTransform.cs @@ -90,7 +90,7 @@ namespace System.Xml.Xsl { MemoryStream stream = new MemoryStream ();
Transform (input, args, new XmlTextWriter (stream, null), resolver);
stream.Position = 0;
- return new XmlTextReader (stream);
+ return new XmlTextReader (stream, XmlNodeType.Element, null);
}
#if NET_1_1
|