You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Kevin Sonney <ke...@webslingerz.com> on 2000/08/19 21:26:20 UTC
Browser specific styleing - for WAP
I'm still mucking about with getting WAP content served. I've managed to
get browser-specific styles to work, with the secption of wap. If I
include the following block :
<?xml version="1.0"?>
<?xml-stylesheet href="index-wap.xsl" type="text/xsl" media="wap"?>
<?xml-stylesheet href="index-ns.xsl" type="text/xsl" media="netscape"?>
<?xml-stylesheet href="index.xsl" type="text/xsl"?>
<?cocoon-process type="xslt"?>
<!-- XML Data Here -->
in my stylesheet, I get the default stylesheet when I try to access the
data with a wap browser (YoSpace and wApua at the moment, but eventually,
I'll want to hit it with UP and my phone).
Has anyone seen a condition where one browser-specific style works and
annother doesn't? All listed files exist, and are accessable Cocoon. If I
make my default and *ONLY* stylesheet the wap one, everything works fine.
Thoughts, anyone?
--
+-------------------------------------------+
| Kevin Sonney kevin@webslingerZ.com |
| Systems Programmer www.webslingerZ.com |
+-------------------------------------------+
Re: Browser specific styleing - for WAP
Posted by Kevin Sonney <ke...@webslingerz.com>.
On Mon, 21 Aug 2000, I-Chung Young wrote:
> Have you tried put the <?cocoon-process ...?> before
> <?xml-stylesheet ...?>? We have been working on cocoon
> and WML for almost 3 months now.
Did that, and it seemed to help a lot.
For the record, some extra browser strings for wap testing :
browser.14 = wap=wApua.pl
browser.15 = wap=YOSPACE
--
+-------------------------------------------+
| Kevin Sonney kevin@webslingerZ.com |
| Systems Programmer www.webslingerZ.com |
+-------------------------------------------+
Re: Browser specific styleing - for WAP
Posted by I-Chung Young <ic...@puma.mt.att.com>.
Hi,
Have you tried put the <?cocoon-process ...?> before
<?xml-stylesheet ...?>? We have been working on cocoon
and WML for almost 3 months now.
Another possibility is your browser uses some name in
USER_AGENT that is not handled in cocoon.properties file.
If that is the case, you need to check what value is passed
by your browser and find the unique string that could
identify the user-agent and put it in the section near
the end of cocoon.properies. Something like
browser.7 = wap=YoSpace
Hope this helps.
------------
I-Chung Young
ichung@puma.mt.att.com
On Sat, 19 Aug 2000, Kevin Sonney wrote:
> I'm still mucking about with getting WAP content served. I've managed to
> get browser-specific styles to work, with the secption of wap. If I
> include the following block :
>
> <?xml version="1.0"?>
> <?xml-stylesheet href="index-wap.xsl" type="text/xsl" media="wap"?>
> <?xml-stylesheet href="index-ns.xsl" type="text/xsl" media="netscape"?>
> <?xml-stylesheet href="index.xsl" type="text/xsl"?>
> <?cocoon-process type="xslt"?>
> <!-- XML Data Here -->
>
> in my stylesheet, I get the default stylesheet when I try to access the
> data with a wap browser (YoSpace and wApua at the moment, but eventually,
> I'll want to hit it with UP and my phone).
>
> Has anyone seen a condition where one browser-specific style works and
> annother doesn't? All listed files exist, and are accessable Cocoon. If I
> make my default and *ONLY* stylesheet the wap one, everything works fine.
>
> Thoughts, anyone?
>
> --
> +-------------------------------------------+
> | Kevin Sonney kevin@webslingerZ.com |
> | Systems Programmer www.webslingerZ.com |
> +-------------------------------------------+
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: cocoon-users-help@xml.apache.org
>
>