Hi Daniel!

That looks like a missing stylesheet on the appserver. When you use
selectors in the sitemap, eg one  for
mozilla5, and inside your matcher is an invalid xsl resource referenced,
then cocoon is not able to process this request correctly, except there is
an otherwise option set.
It looks fine using IE6.0!

<map:selector name="browser" src=
"org.apache.cocoon.selection.BrowserSelector">
    <!-- # NOTE: The appearance indicates the search order. This is very
important since
         #       some words may be found in more than one browser
description. (MSIE is
         #       presented as "Mozilla/4.0 (Compatible; MSIE 4.01; ...")
    -->
    <browser name="explorer" useragent="MSIE"/>
    <browser name="pocketexplorer" useragent="MSPIE"/>
    <browser name="handweb" useragent="HandHTTP"/>
    <browser name="avantgo" useragent="AvantGo"/>
    <browser name="imode" useragent="DoCoMo"/>
    <browser name="opera" useragent="Opera"/>
    <browser name="lynx" useragent="Lynx"/>
    <browser name="java" useragent="Java"/>
    <browser name="wap" useragent="Nokia"/>
    <browser name="wap" useragent="UP"/>
    <browser name="wap" useragent="Wapalizer"/>
    <browser name="mozilla5" useragent="Mozilla/5"/>
    <browser name="mozilla5" useragent="Netscape6/"/>
    <browser name="netscape" useragent="Mozilla"/>
    <browser name="wap" useragent="WinWAP-PRO/3.1 (3.1.6.192)"/>
</map:selector>

....

<map:match pattern="">
   <map:select type="browser">
      <map:when test="explorer">
     <map:redirect-to uri="/start"/>
    </map:when>
      <map:otherwise>
       <map:redirect-to uri="/wap"/>
      </map:otherwise>
   </map:select>
</map:match>

This would enable IE to view the result of the redirect, but all other
Browsers would be handled by the otherwise redirect!

regards
manfred





[EMAIL PROTECTED] am 10.01.2003 15:10:54

Bitte antworten an [EMAIL PROTECTED]@inet

An:      [EMAIL PROTECTED]
Kopie:
Thema:   no matching stylesheet for: mozilla5 ?


Hello I get the following error:

--->
Error found handling the request.

org.apache.cocoon.processor.ProcessorException: Could not associate
stylesheet to document:  no matching stylesheet for: mozilla5
 at
org.apache.cocoon.processor.xslt.XSLTProcessor.getResource(XSLTProcessor.java:250)
 at
org.apache.cocoon.processor.xslt.XSLTProcessor.process(XSLTProcessor.java:116)
 at org.apache.cocoon.Engine.handle(Engine.java:405)
 at org.apache.cocoon.Cocoon.service(Cocoon.java:173)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
 at
org.apache.jserv.JServConnection.processRequest(JServConnection.java:314)
 at org.apache.jserv.JServConnection.run(JServConnection.java:188)
 at java.lang.Thread.run(Thread.java:536)
<---

while requesting the following url:

http://www.saabsverige.com/main/SE/sv/model_gallery_95.xml

with:

Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2b) Gecko/20021029
Phoenix/0.4

The os/browsers section of our cocoon.properties looks like this:

-->

platform.0 = mac=Mac
platform.1 = win=Win

browser.0 = explorer=MSIE
browser.1 = pocketexplorer=MSPIE
browser.2 = handweb=HandHTTP
browser.3 = avantgo=AvantGo
browser.4 = imode=DoCoMo
browser.5 = opera=Opera
browser.6 = lynx=Lynx
browser.7 = java=Java
browser.8 = wap=Nokia
browser.9 = wap=UP
browser.10 = wap=Wapalizer
browser.11 = mozilla5=Mozilla/5
browser.12 = mozilla5=Netscape6/
browser.13 = netscape=Mozilla

<--

Is there any one who knows the solution to this?

Regards!

-Daniel



---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>









---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>

Reply via email to