Subject: RE: [xsl] Is XML to CHTML Transformation possible ? From: "Brian O'Neill" <brian.oneill@xxxxxxxxxxx> Date: Wed, 28 Feb 2001 15:07:47 -0000 |
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: [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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] Is XML to CHTML Transform, Jarno Elovirta | Thread | Re: [xsl] Is XML to CHTML Transform, cutlass |
RE: [xsl] Latest version of MSXML?, Andrew Welch | Date | [xsl] MSXML3 with IE5.5, Samuzeau Pascal |
Month |