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

RE: Is XML to CHTML Transformation possible ?

Subject: RE: Is XML to CHTML Transformation possible ?
From: "Brian O'Neill" <brian.oneill@xxxxxxxxxxx>
Date: Wed, 28 Feb 2001 15:07:47 -0000
chtml dtd
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@xxxxxxxxxxxxxx]
Sent: 28 February 2001 14:49
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: RE:  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


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.