cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Sjöberg <daniel.sjob...@lowetesch.com>
Subject Re: Antwort: no matching stylesheet for: mozilla5 ?
Date Fri, 10 Jan 2003 16:40:14 GMT
Oh, thanks for the quick answer, I forgot to mention a very important
detail... I'm running Cocoon 1.8

So I guess the config is done somewhere else than in a sitemap?

-Daniel


On Fri, 2003-01-10 at 13:29, manfred.weigel@rzb.at wrote:
> 
> 
> 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
> 
> 
> 
> 
> 
> daniel.sjoberg@lowetesch.com am 10.01.2003 15:10:54
> 
> Bitte antworten an cocoon-users@xml.apache.org@inet
> 
> An:      cocoon-users@xml.apache.org
> 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:     <cocoon-users-unsubscribe@xml.apache.org>
> For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>
> 
> 
> 
> 
> 
> 
> 
> 
> 
> ---------------------------------------------------------------------
> 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:     <cocoon-users-unsubscribe@xml.apache.org>
> For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>
> 


---------------------------------------------------------------------
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:     <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>


Mime
View raw message