cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "SeungwookJung" <>
Subject Selector problem
Date Mon, 17 Sep 2001 11:50:53 GMT
I have selector problem.
I want to select transform by client type, but I met following error
UnnamedSelector: ComponentSelector could not find the component for hint: browser
org.apache.avalon.framework.component.ComponentException: UnnamedSelector: ComponentSelector
could not find the component for hint: browser

My sitemap is following

  <map:selectors default="browser">
   <map:selector name="browser" src="org.apache.cocoon.selection.BrowserSelectorFactory">
    <!-- # 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"/>
   <map:selector name="coded" src="org.apache.cocoon.selection.CodedSelectorFactory"/>
   <map:selector name="parameter" src="org.apache.cocoon.selection.ParameterSelectorFactory"/>
   <map:match pattern="phone.xml">
       <map:generate src="docs/phone.xml"/> 
             <map:select type="browser">
                    <map:when test="wap">
                      <map:transform src="stylesheets/phone2wap.xsl"/>
                      <map:serialize type="wap"/>
                      <map:transform src="stylesheets/phone2html.xsl"/>
                      <map:serialize type="html"/>

Anybody know that is problem, please tell me. 

View raw message