This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Is XML to CHTML Transformation possible ?
- To: "'xsl-list at lists dot mulberrytech dot com'" <xsl-list at lists dot mulberrytech dot com>
- Subject: RE: [xsl] Is XML to CHTML Transformation possible ?
- From: "Brian O'Neill" <brian dot oneill at tecnomen dot ie>
- Date: Wed, 28 Feb 2001 15:07:47 -0000
- Reply-To: xsl-list at lists dot mulberrytech dot com
Thanks all for your help.
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 HTML, WML
and CHTML.
But how does it know that its being accessed by a WAP Phone ( convert to WML
) or by a PC ( convert to HTML ) ?
> <xsl:output method="xml"
> doctype-system="http://www.wapforum.org/DTD/wml_1.1.xml"
> 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 ?
I'm sorry if my questions are stupid but I'm really new to this stuff.
Regards,
Brian.
-----Original Message-----
From: Jarno Elovirta [mailto:jarno@codeonline.com]
Sent: 28 February 2001 14:49
To: xsl-list@lists.mulberrytech.com
Subject: RE: [xsl] Is XML to CHTML Transformation possible ?
Hip hei!
> Using XSLT, can the WAP Phone access the page and receive the
> page in WML (
> converted by XSLT ) ?
Yes, just use
<xsl:output method="xml"
doctype-system="http://www.wapforum.org/DTD/wml_1.1.xml"
doctype-public="-//WAPFORUM//DTD WML 1.1//EN" />
and escape $ when you don't want to use it as a WML variable delimiter.
> And, Is it possible for XSLT to convert XML to CHTML for say an
> I-Mode phone
> ?
Yes, use
<xsl:output method="html"
encoding="Shift_JIS"
doctype-public="-//W3C//DTD Compact HTML 1.0 Draft//EN" />
I'm not sure if the I-mode icons in the [#xF89F-#xF9AF] range can be output
as characters or do need to be character entity references, but other than
that, there shouldn't be problems.
Cheers,
Jarno
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list