|
From: | Sigurd Nes |
Subject: | [Phpgroupware-developers] New feature - wml - class.xslttemplates.inc.php |
Date: | Sun, 27 Aug 2006 12:57:31 +0200 |
User-agent: | Thunderbird 1.5.0.5 (X11/20060804) |
How about having a detecting-function isMobileUser() - that detects whether the output should be html or wml - changing the top element of the stylesheet as something like this: html(one line): $this->xsldata .= '<xsl:output method="html" version="1.0" encoding="utf-8" indent="yes" omit-xml-declaration="yes" standalone="yes" media-type="application/xml+xhtml"/>'."\n"; or wml (one line): $this->xsldata .= '<xsl:output doctype-public="-//WAPFORUM//DTD WML 1.3//EN" doctype-system="http://www.wapforum.org/DTD/wml13.dtd"/>'."\n"; Regards Sigurd
[Prev in Thread] | Current Thread | [Next in Thread] |