You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Drasko Kokic <dr...@yahoo.com> on 2001/07/26 14:26:11 UTC

[C2b1] ComponentExceptionUnnamedSelector

Hi there,

I am trying to use the browser selector like this:
================ sitemap =========================
   <map:match pattern="overview">
    <map:generate src="demo/cdata-page.xml"/>
    <map:transform src="demo/pepsi-to-lkc.ss"/>
    <map:select type="browser">
     <map:when test="explorer">
      <map:transform src="demo/overview-to-html.ss"/>
     </map:when>
     <map:when test="netscape">
      <map:transform
src="demo/overview-to-html-ns.ss"/>
     </map:when>
     <map:otherwise>
      <map:transform
src="demo/overview-to-html-ns.ss"/>
     </map:otherwise>
    </map:select>
    <map:serialize/>
   </map:match>
================ sitemap =========================

and am getting the following error on both browsers(ns
and ie):

Error creating the
resourceorg.apache.avalon.framework.component.ComponentExceptionUnnamedSelector:
ComponentSelector could not find the component for
hint: browser

What could be the problem? Has anybody got this
working?

TIA
Drasko

__________________________________________________
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/

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

To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>


[C2b1] sitemap and subsitemaps

Posted by Drasko Kokic <dr...@yahoo.com>.
Is it possible that in each of the sub sitemaps it is
neccessary to specify the entries for
<map:components>?!?!

Reading the following entries:

  <map:generators default="file"/>
  <map:transformers default="xslt"/>
  <map:readers default="resource"/>
  <map:serializers default="html"/>
  <map:selectors default="browser"/>

I wrongly believed that the definitions for the
specific components are being INHERITED from the main
sitemap.

Could anybody explain, why is it not the case???

TIA
Drasko

--- Drasko Kokic <dr...@yahoo.com> wrote:
> Hi there,
> 
> I am trying to use the browser selector like this:
> ================ sitemap =========================
>    <map:match pattern="overview">
>     <map:generate src="demo/cdata-page.xml"/>
>     <map:transform src="demo/pepsi-to-lkc.ss"/>
>     <map:select type="browser">
>      <map:when test="explorer">
>       <map:transform
> src="demo/overview-to-html.ss"/>
>      </map:when>
>      <map:when test="netscape">
>       <map:transform
> src="demo/overview-to-html-ns.ss"/>
>      </map:when>
>      <map:otherwise>
>       <map:transform
> src="demo/overview-to-html-ns.ss"/>
>      </map:otherwise>
>     </map:select>
>     <map:serialize/>
>    </map:match>
> ================ sitemap =========================
> 
> and am getting the following error on both
> browsers(ns
> and ie):
> 
> Error creating the
>
resourceorg.apache.avalon.framework.component.ComponentExceptionUnnamedSelector:
> ComponentSelector could not find the component for
> hint: browser
> 
> What could be the problem? Has anybody got this
> working?
> 
> TIA
> Drasko
> 
> __________________________________________________
> Do You Yahoo!?
> Make international calls for as low as $.04/minute
> with Yahoo! Messenger
> http://phonecard.yahoo.com/
> 
>
---------------------------------------------------------------------
> Please check that your question has not already been
> answered in the
> FAQ before posting.
> <http://xml.apache.org/cocoon/faqs.html>
> 
> To unsubscribe, e-mail:
> <co...@xml.apache.org>
> For additional commands, e-mail:
> <co...@xml.apache.org>
> 

__________________________________________________
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/

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

To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>