[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Can I use XSL to convert HTML to WML ?

Subject: Re: Can I use XSL to convert HTML to WML ?
From: Eric van der Vlist <vdv@xxxxxxxxxxxx>
Date: Wed, 05 Apr 2000 21:32:33 +0200
convert html to wml

Zhang Tao wrote:
> 
> Hi,everyone:
> 
>     I'm new to here and also a newbie to XML world,so please tolerate my
> ignorance.
>     I received a project to convert HTML to WML, I'm not sure if XSL can do
> the job (HTML is really complex),or I must parse the HTML and output proper
> WML .If I can ,could someone explain it in some detail and give me some
> examples?

XSL (or more exactly XSLT) can only accept XML as input files.

To transform HTML to WML using XSLT, you would then need to transform
HTML into XML using a tool such as tidy
(http://www.w3.org/People/Raggett/tidy/).

The problem is that depending of the structure (or lack of structure) of
your HTML file, it can be pretty complex to define how the HTML pages
will be split into WML "cards".

Some recent papers have begun to deal with this issue
(http://xmlhack.com/read.php?item=396,
http://www.uidesign.net/2000/papers/XDNLReview.html,
http://www.xmlhack.com/read.php?item=364, ...).

>     And I also know there is a tool named  Cocoon , can it do the conversion
> , and is the result good enough?
> 

Cocoon is a XML based publication framework which is not especially
meant to help you for this problem...
It can deal with presenting different format for a same document
depending on the device, but I don't think this is your main problem in
this case ;=)

>      Many thanks.

Hope this helps.

Eric
 
>                                ZhangTao
> 
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

-- 
------------------------------------------------------------------------
Eric van der Vlist                                             Dyomedea
http://xmlfr.org         http://ducotede.com        http://dyomedea.com
------------------------------------------------------------------------


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.