[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

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


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
Keywords