homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / Code, Content, and Presentation / XML Development
Forum Library, Charter, Moderators: httpwebwitch

XML Development Forum

Is correct XHTML to mobile format?

WebmasterWorld Senior Member 5+ Year Member

Msg#: 4265683 posted 4:07 pm on Feb 11, 2011 (gmt 0)

We all know:
XSL is a good choice for converting your XHTML data into WML technology based mobile or any other types of mobile content.

transform XHTML format into WML like:
<?xml version="1.0" encoding="UTF-8"?>
<title>Mobile website</title>
<link rel="stylesheet" href="mobilexml.css" type="text/css"/>
<h1>Current Articles</h1>
<p><a href=""></a>1</p>
<p><a href=""></a>2</p>
<p><a href=""></a>3</p>
<p><a href=""></a>4</p>

Is this correct way or missing PHP?

$device=new wurfl_class($HTTP_USER_AGENT);



WebmasterWorld Administrator httpwebwitch us a WebmasterWorld Top Contributor of All Time 10+ Year Member

Msg#: 4265683 posted 4:45 pm on Feb 11, 2011 (gmt 0)

I'm not familiar with the wurfl_class(), but the other PHP looks OK.

The best way to debug/troubleshoot PHP is to open a shell window (Terminal, PuTTy, or whatever you have), SSH into the server (or localhost if you're testing locally), find your PHP error logs - they are often at /usr/local/apache/logs/ .

do this command:

#> tail -f error_log

where "error_log" is the name of the log file. Sometimes it's named something else.

Run your code, and see if any errors pop up. They'll be descriptive enough that you can diagnose any problems that are happening in the script.

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / XML Development
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved