> > Turbine looks great guys - really impressed. Forgive me if I'm asking a > > silly question, I'm new to this stuff and not finding an answer in the mail > > archives. Is there a way to get Turbine and WebMacro to serve up wml instead > > of html? There seems no obvious way to do this with the properties files. Is > > there a preferred way to do this? Am I missing something in the > > documentation? > > Theoreticly you should be able to do this with no problem: just define your > wm templatest to output wml insted of html and you should be running. > I know that there was an issue with WM that required some custom code for > bypassing it: WebMacro always added a newline character before the contents > of the parsed template. In WML, the very first line of the file must > contain the <?xml version="1.0"?> processing instruction. My firend was > trying to get this to the attention of Justin Wells for some time but > to no avail. I don't know if this was fixed yet or not. fixed in latest CVS. here is some other helpful advice: your templates should start with the following lines: <?xml version="1.0"?> <!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml"> <wml> #set $Response.ContentType = "text/vnd.wap.wml" your webserver needs to support delivery of wml, I do this for Apache by editing srm.conf and adding the following lines: # MIME Types for WAP AddType text/vnd.wap.wml .wml AddType image/vnd.wap.wbmp .wbmp AddType application/vnd.wap.wmlc .wmlc AddType text/vnd.wap.wmlscript .wmls AddType application/vnd.wap.wmlscriptc .wmlsc cheers timj ------------------------------------------------------------ To subscribe: [EMAIL PROTECTED] To unsubscribe: [EMAIL PROTECTED] Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/> Problems?: [EMAIL PROTECTED]
