Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAtsushi Eno <atsushieno@gmail.com>2005-02-17 16:52:01 +0300
committerAtsushi Eno <atsushieno@gmail.com>2005-02-17 16:52:01 +0300
commite37b430fad7974f25491c45e30d238457c64c815 (patch)
treed016c5e73ca38ef9da91fbc172fc39a30dafb555 /mcs/class/System.XML/System.Xml.Xsl
parent6644bd6c30059efa65434c75eff3237926fd1d06 (diff)
2005-02-17 Atsushi Enomoto <atsushi@ximian.com>
* Outputter.cs, TextOutputter.cs, GenericOutputter.cs : removed WriteStartDocument(), WriteEndDocument() and WriteState. Writing XML declaration is done inside DetermineOutputMethod(). * ManagedXslTransform.cs : no need to write XML declaration here. svn path=/trunk/mcs/; revision=40807
Diffstat (limited to 'mcs/class/System.XML/System.Xml.Xsl')
-rw-r--r--mcs/class/System.XML/System.Xml.Xsl/ChangeLog4
-rw-r--r--mcs/class/System.XML/System.Xml.Xsl/ManagedXslTransform.cs10
2 files changed, 5 insertions, 9 deletions
diff --git a/mcs/class/System.XML/System.Xml.Xsl/ChangeLog b/mcs/class/System.XML/System.Xml.Xsl/ChangeLog
index ec40e209148..5f0d1b087f7 100644
--- a/mcs/class/System.XML/System.Xml.Xsl/ChangeLog
+++ b/mcs/class/System.XML/System.Xml.Xsl/ChangeLog
@@ -1,3 +1,7 @@
+2005-02-17 Atsushi Enomoto <atsushi@ximian.com>
+
+ * ManagedXslTransform.cs : no need to write XML declaration here.
+
2004-12-08 Atsushi Enomoto <atsushi@ximian.com>
* XsltException.cs, XsltCompileException.cs :
diff --git a/mcs/class/System.XML/System.Xml.Xsl/ManagedXslTransform.cs b/mcs/class/System.XML/System.Xml.Xsl/ManagedXslTransform.cs
index 31f23673651..430c7622dca 100644
--- a/mcs/class/System.XML/System.Xml.Xsl/ManagedXslTransform.cs
+++ b/mcs/class/System.XML/System.Xml.Xsl/ManagedXslTransform.cs
@@ -59,16 +59,8 @@ namespace System.Xml.Xsl {
public override void Transform (XPathNavigator input, XsltArgumentList args, TextWriter output, XmlResolver resolver) {
Outputter outputter = new GenericOutputter(output, s.Outputs, output.Encoding);
-// outputter.WriteStartDocument();
new XslTransformProcessor (s).Process (input, outputter, args, resolver);
- switch (outputter.WriteState) {
- case WriteState.Start:
- case WriteState.Closed:
- break;
- default:
- outputter.WriteEndDocument();
- break;
- }
+ outputter.Done ();
output.Flush ();
}