[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: cutlass <cutlass@xxxxxxxxxxx>
Date: Wed, 28 Feb 2001 15:29:29 +0000
chtml redirect
Brian O'Neill wrote:

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 ) ?

off-topic, this ? is a browser detection issue


usually u can use look for one of the supplied browser vars with javascript or env var with apache lets say, otherwise this has been gone over man times
check out


http://hotwired.lycos.com/webmonkey/99/02/index2a.html

but remember that in essence look at the http_accept var because if it is a wap fone it will have text/vnd.wap.wml somewhere in it.

a) get any of the http vars that a browser supplys http_accept and http_user_agent comes to mind
b) check for a string such as "Navigator' Mozilla, etc and redirect to correct directory/file for that client


cheers, jim


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.