warning --> error for html output (just use xml
authorBen Maurer <benm@mono-cvs.ximian.com>
Mon, 29 Sep 2003 03:45:02 +0000 (03:45 -0000)
committerBen Maurer <benm@mono-cvs.ximian.com>
Mon, 29 Sep 2003 03:45:02 +0000 (03:45 -0000)
svn path=/trunk/mcs/; revision=18378

mcs/class/System.XML/Mono.Xml.Xsl/ChangeLog
mcs/class/System.XML/Mono.Xml.Xsl/GenericOutputter.cs

index 659ff126314bb3a87241705e0e0ea5c6c1d417fa..56761bca29c211a9860bea60a4d18f35fdab43a9 100644 (file)
@@ -1,3 +1,8 @@
+2003-09-28 Ben Maurer  <bmaurer@users.sourceforge.net>
+
+       * GenericOutputter.cs: make html output a warning, because doing
+       xml will be right most of the time.
+
 2003-09-28 Ben Maurer  <bmaurer@users.sourceforge.net>
 
        * Debug.cs: comment out {Enter, Exit}Navigator. Haven't had bugs
index df90154ae0c877f746212018b37cf611cac5e4fd..142299616cca0c89febb8b53839e9f267282af22 100644 (file)
@@ -59,14 +59,16 @@ namespace Mono.Xml.Xsl
                {                       
                        XslOutput xslOutput = (XslOutput)outputs [String.Empty];
                        switch (xslOutput.Method) {
+                               
+                               case OutputMethod.HTML:
+                                       Console.WriteLine ("WARNING: HTML output not fully supported, using XML output");
+                                       goto case OutputMethod.XML;
                                case OutputMethod.Unknown: //TODO: handle xml vs html
                                case OutputMethod.XML:
                                        //TODO: XmlTextEmitter goes here
                                        //_emitter = new XmlTextEmitter (writer);
                                        _emitter = new XmlWriterEmitter (new XmlTextWriter (writer));                                   
                                        break;
-                               case OutputMethod.HTML:
-                                       throw new NotImplementedException ("HTML output method is not implemented yet.");
                                case OutputMethod.Text:
                                        _emitter = new TextEmitter (writer);
                                        break;