jQuery in Action, 3rd edition
The moose likes Servlets and the fly likes how to convert html to wml Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Make it so: Java DB Connections & Transactions this week in the JDBC forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "how to convert html to wml" Watch "how to convert html to wml" New topic

how to convert html to wml

Dorj Galaa
Ranch Hand

Joined: May 29, 2001
Posts: 113
How to convert HTML to WML?

Senior software engineer
chanoch wiggers
Ranch Hand

Joined: May 24, 2001
Posts: 245
I dont know of any automatic way to do this - you might need to learn WML first and then you will see the problem. HTML documents are typically not sufficiently terse to automatically convert them to WML.
You need to begin by finding the most important information in your HTML page and grabbing that out, before converting the page to WML.
Chanoch Wiggers
Architect for Professional Java Mobile Programming

chanoch<p><a href="http://www.amazon.com/exec/obidos/ASIN/1861007736/" target="_blank" rel="nofollow">Author of Professional Apache Tomcat</a></p>
Kyle Brown
Ranch Hand

Joined: Aug 10, 2001
Posts: 3892
Actually, WebSphere Transcoding Publisher will automatically convert HTML to WML (how good of a job it does -- well, that's up to you and how you coded the HTML...). It does this through the use of XSL transformations. It also handles the bridging so that requests from WAP are routed in the right way and that the translation occurs in the right places.
You can read about WTP here:

Kyle Brown,
Author of Enterprise Java (tm) Programming with IBM Websphere
See my homepage at http://members.aol.com/kgb1001001 for other WebSphere information.

Kyle Brown, Author of Persistence in the Enterprise and Enterprise Java Programming with IBM Websphere, 2nd Edition
See my homepage at http://www.kyle-brown.com/ for other WebSphere information.
Richard Scothern
Ranch Hand

Joined: May 25, 2001
Posts: 83
I think the best way to do this is with XSL, bear in mind that your HTML has to be converted to XHTML first, so be sure to use JTidy or something else which has this as a option.
Google has an HTML to WML translation. www.google.com/wireless
Argogroup produces a WAP tool that will load an HTML file and save it as WML. www.argrogroup.com, look for WAPTool.
Richard Scothern
Ranch Hand

Joined: May 25, 2001
Posts: 83
oops, that should have been www.google.com/options/wireless.html
wood burning stoves
subject: how to convert html to wml
It's not a secret anymore!