You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Rick Tessner <ri...@dingle.myra.com> on 2000/11/08 18:14:03 UTC

Re: C2 : sitemaps: pipelines, views, etc questions

On Wed, 08 Nov 2000 07:26:59 +0100, Giacomo Pati wrote:

>   <map:match type="regexp" pattern="[~([^/]*)/(.*)">
>
>results in "{1}" beeing the user, and "{2}" beeing the resource in the
>users URI space.

Hmmm ... I tried that, but I just get errors back from Cocoon. Actually, 
tried <map:match type="regexp" pattern="^~([^/]*)/(.*)"> (replaced first
"[" with "^"), and here's what I get back:

Error creating the resource
  error occurred during evaluation of expression "/home/{1}/public_xml/{2}.xml"
  at position 7 Index: 0, Size: 0

details
from
source  org.apache.cocoon.sitemap.PatternException
description
     org.apache.cocoon.sitemap.PatternException: error occurred during
     evaluation of expression "/home/{1}/public_xml/{2}.xml" at
     position 7 Index: 0, Size: 0
extra info
     org.apache.cocoon.sitemap.PatternException: error occurred during
     evaluation of expression "/home/{1}/public_xml/{2}.xml" at position 7
     Index: 0, Size: 0
        at java.lang.Throwable.fillInStackTrace(Native Method)
        at java.lang.Throwable.fillInStackTrace(Compiled Code)
        at java.lang.Throwable.<init>(Compiled Code)
        at java.lang.Exception.<init>(Compiled Code)
        at org.apache.cocoon.sitemap.PatternException.<init>
(PatternException.java:25)
        at org.apache.cocoon.sitemap.AbstractSitemap.substitute(Compiled Code)
        at _dsk01._jakarta_tomcat_4_0_m3._webapps._cocoon._sitemap_xmap.process
(_sitemap_xmap.java:1134)
      .
      .
      .

Any ideas on this one?  

>>   1.  What is the use of defining multiple pipelines? Are they
>>       only useful if using views?
>
>Every pipeline can have its own <handle-errors> tag and thus its own
>error page.

Makes more sense now!  Thanks!

>>   2.  How are views best (I know, relative term ...) used?  Or better,
>>       are people using them out there?  If so, for what?
>
>Views at the moment AFAIK are only used from the command line part of C2
>
>>   3.  Ditto for resources ...
>
>Resources are kinda macros for a set of components
>(Transformers/Serializers) which you can refer to from various points in
>the pipelines with <map:rediect-to resourec="..."/>

Ah!  Very useful, that.  Thanks again!

-- 
Rick Tessner	rick@myra.com
MYRA Systems Corp. Fone: (250) 381 1335 x125  Phax: (250) 381 1304
                   Cell: (250) 885 9452

"Hmmm.  They have the Internet on computers now!"