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

RE: Transforming HTML to WML

Subject: RE: Transforming HTML to WML
From: "White, David" <David.White@xxxxxx>
Date: Tue, 16 Nov 1999 20:02:24 +0100
html to wml
> -----Original Message-----
> From: Olivier Martineau [mailto:alcatel-crc@xxxxxxxxxxxx]
> Sent: Tuesday, November 16, 1999 4:35 PM
> To: XSL-List@xxxxxxxxxxxxxxxx
> Subject: Transforming HTML to WML

No, not directly, as HTML is a SGML dialect, and WML is an XML dialect.
Close, but not close enough.

That said...

I have seen a few SAX-style parsers for HTML (the W3C's libwww, just to name
an example; I think one comes with Java 2 as well). With such a beast, you
could read in HTML, an do the following cool things:

1) Output a simplified XML version which hides the all-too-common HTML
composition errors found "in the wild"
2) Writing a stylesheet for such a degraded dialect would be MUCH easier
than creating mappings for the whole HTML DTD
3) You could use it to pessimize* the content for handheld devices


*) About that "pessimization" - in general, the entire WAP protocol suite is
geared toward devices with small screens, little memory, murderous network
latencies and bizarre addressing schemes. Saying "optimized" sounds better,
but "pessimized" is closer to the truth.

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

Current Thread


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.
First Name
Last Name
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.