RE: [xsl] Is XML to CHTML Transformation possible ?

Subject: RE: [xsl] Is XML to CHTML Transformation possible ?
From: "Jarno Elovirta" <jarno@xxxxxxxxxxxxxx>
Date: Wed, 28 Feb 2001 17:56:21 +0200
Hip hei!

> If I'm trying to make the same web page accessible from multiple devices,
> say PC, WAP Phone and I-Mode phone, I use XSL to transform XML to
> and CHTML.

Yes, but do note the WML document size cannot usually exceed 1.4KB because
of the phones, and on I-mode the document size must be under 2KB or 5KB,
depending on the phone model. Also the fact that on your mobile the screen
might something like 96x90 pixels, so you really want to have different
content for HTML and WML/CHTML, or same content source but not all is used
for mobile access devices.

> But how does it know that its being accessed by a WAP Phone (
> convert to WML
> ) or by a PC ( convert to HTML ) ?

Check the User-Agent field of the HTTP reques header on the server.

> >  <xsl:output method="xml"
> >              doctype-system="";
> >              doctype-public="-//WAPFORUM//DTD WML 1.1//EN" />
> and
> >  <xsl:output method="html"
> >              encoding="Shift_JIS"
> >              doctype-public="-//W3C//DTD Compact HTML 1.0 Draft//EN" />
> How do I use both of these methods for the same page and choose one or the
> other depending oin the device accessing the page ?

Depends, but you would write separate XSLT style sheets for WML, CHTML, and
HTML output and then let your system decide which to use. Have a look at for a publishing framework which supports



 XSL-List info and archive:

Current Thread