This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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 Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "how to convert html to wml" Watch "how to convert html to wml" New topic
Author

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
Author
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
author
Ranch Hand

Joined: Aug 10, 2001
Posts: 3892
    
    5
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:
http://www-3.ibm.com/software/webservers/transcoding/

Kyle
------------------
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
Richard Scothern
Ranch Hand

Joined: May 25, 2001
Posts: 83
oops, that should have been www.google.com/options/wireless.html
 
Don't get me started about those stupid light bulbs.
 
subject: how to convert html to wml
 
Similar Threads
convert wml to xhtml
Can i use ajax in wml
How convert Word Doc to HTML/WML/XML?
problem with OTA download Midlet
how to execute wml