Author: atsushi
Date: 2007-12-27 06:44:16 -0500 (Thu, 27 Dec 2007)
New Revision: 91930

Modified:
   trunk/mcs/class/System.XML/System.Xml.Xsl/ChangeLog
   trunk/mcs/class/System.XML/System.Xml.Xsl/XslCompiledTransform.cs
Log:
2007-12-27  Atsushi Enomoto  <[EMAIL PROTECTED]>

        * XslCompiledTransform.cs : when loading XmlReader as an input to
          Transform(), preserve whitespaces in the input document. Based on
          the patch by Tor Lillqvist (part of #349375 fix).



Modified: trunk/mcs/class/System.XML/System.Xml.Xsl/ChangeLog
===================================================================
--- trunk/mcs/class/System.XML/System.Xml.Xsl/ChangeLog 2007-12-27 10:43:48 UTC 
(rev 91929)
+++ trunk/mcs/class/System.XML/System.Xml.Xsl/ChangeLog 2007-12-27 11:44:16 UTC 
(rev 91930)
@@ -1,3 +1,9 @@
+2007-12-27  Atsushi Enomoto  <[EMAIL PROTECTED]>
+
+       * XslCompiledTransform.cs : when loading XmlReader as an input to
+         Transform(), preserve whitespaces in the input document. Based on
+         the patch by Tor Lillqvist (part of #349375 fix).
+
 2007-10-10  Atsushi Enomoto  <[EMAIL PROTECTED]>
 
        * XslCompiledTransform.cs : actually previous change was not enough.

Modified: trunk/mcs/class/System.XML/System.Xml.Xsl/XslCompiledTransform.cs
===================================================================
--- trunk/mcs/class/System.XML/System.Xml.Xsl/XslCompiledTransform.cs   
2007-12-27 10:43:48 UTC (rev 91929)
+++ trunk/mcs/class/System.XML/System.Xml.Xsl/XslCompiledTransform.cs   
2007-12-27 11:44:16 UTC (rev 91930)
@@ -96,17 +96,17 @@
 
                public void Transform (string inputfile, XsltArgumentList args, 
Stream output)
                {
-                       Transform (new XPathDocument (inputfile), args, output);
+                       Transform (new XPathDocument (inputfile, 
XmlSpace.Preserve), args, output);
                }
 
                public void Transform (string inputfile, XsltArgumentList args, 
TextWriter output)
                {
-                       Transform (new XPathDocument (inputfile), args, output);
+                       Transform (new XPathDocument (inputfile, 
XmlSpace.Preserve), args, output);
                }
 
                public void Transform (string inputfile, XsltArgumentList args, 
XmlWriter output)
                {
-                       Transform (new XPathDocument (inputfile), args, output);
+                       Transform (new XPathDocument (inputfile, 
XmlSpace.Preserve), args, output);
                }
 
                public void Transform (XmlReader reader, XmlWriter output)
@@ -116,12 +116,12 @@
 
                public void Transform (XmlReader reader, XsltArgumentList args, 
Stream output)
                {
-                       Transform (new XPathDocument (reader), args, output);
+                       Transform (new XPathDocument (reader, 
XmlSpace.Preserve), args, output);
                }
 
                public void Transform (XmlReader reader, XsltArgumentList args, 
TextWriter output)
                {
-                       Transform (new XPathDocument (reader), args, output);
+                       Transform (new XPathDocument (reader, 
XmlSpace.Preserve), args, output);
                }
 
                public void Transform (XmlReader reader, XsltArgumentList args, 
XmlWriter output)
@@ -151,7 +151,7 @@
 
                public void Transform (XmlReader input, XsltArgumentList args, 
XmlWriter output, XmlResolver resolver)
                {
-                       Transform (new XPathDocument (input).CreateNavigator 
(), args, output, resolver);
+                       Transform (new XPathDocument (input, 
XmlSpace.Preserve).CreateNavigator (), args, output, resolver);
                }
 
                void Transform (XPathNavigator input, XsltArgumentList args, 
XmlWriter output, XmlResolver resolver)

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to