<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"><P>Yesterday I succeeded in running the Seaside Counter demo in Curl (www.curl.com) in Squeak 3.10 using Alpha 4 without any XML or HTML output.</P><P></P><P>Doing so required a great many changes to Seaside: MIME type defaults and hard-coded class references.  Seaside should be markup language neutral ( the Curl RTE is in use at about 30% of the global Fortune 100 and in one major government )</P><P></P><P>The poblem most difficult to detect was affecting WAApplication as there is a preferences default set to MIME 'text/html' in the configuration dict up at WAEntryPoint.  Even when all other problems were corrected, the Curl MIME type was ignored for my builder in its render context.</P><P></P><P>Any generic method used in rendering which hard-codes html document type or html content type or names an Html class remains problematic.  In many cases I could
 only proceed by creating my own subclass and hardcoding "Curl" in place of "Html" in the offending methods.  At a few palces more generic behavior is actually in the HTml subclass than in the supposed generic parent class (a simpel refactoring issue)</P><P></P><P>It was not possible to produce a package for Curl web content as an alternative to an Html package or XML package or XHTML package due to these issues: my package only runs with some 14 classes hacked to obviate hard-coded HTML bias: so I have a working IMAGE and not a working PACKAGE.</P><P></P><P>Some Mime problems violated the encapsulation of the MIME classes by hard-coding 'text' and 'html' as main and sub values.  This should not be exposed without good reason.  Mime types should be parsed, not hacked.</P><P></P><P>WABuilder has bias in many methods that interfered with creating a Curl subclass</P><P></P><P>HttpResponse has numerous methods hard-coded to
 contentTypeHtml</P><P></P><P>WAPrettyPrintedDocument has HTML bias in a few methods</P><P></P><P>WAUrl has bias in printON: aStream</P><P></P><P>WARequestHandlingConfiguration has bias in &gt;&gt; describeOn: config:</P><P></P><P>WARequestContext has HTML bias in several methods</P><P></P><P>WAREnderPhaseContinuation has a bias in &gt;&gt;processRendering</P><P></P><P>When I found WASlime &gt;&gt;findBrushSelectors I did not know how to proceed, so I removed the compteing HTML subclasses and left only my Curl subclasses</P><P></P><P>WARoot is worrosime of the various methods in WAUpdateRootVisitor</P><P></P><P>WASession has methods such as beXHTMLString which have to be overridden whenever they are meaningless for non-XML markup</P><P></P><P>It was difficutl to ascertain why the WARenderContext of the Canvas was always holding a WAHtmlDocument.</P><P></P><P>WriteStream has a default contentType tied to MIMEDocument outside Seaside</P><P></P><P>Object
 has a default contetType the same</P><P></P><P>I</P></td></tr></table>