You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Stephan Niedermeier <s....@projektinter.net> on 2003/05/02 11:57:11 UTC

Using XSP inner aggregation

Hello,

i've tried to parse a xsp file with the map:part element as follows:

<map:aggregate>
    <map:part type="serverpages" src="/xsp/myFile.xsp"/>
</map:aggregate>

But the xsp would not be parsed. Any ideas?

My Cocoon Version is 2.0.4.

Thank you.

Regards
Stephan

Re: Can I do this?

Posted by Olivier Billard <ob...@rennes.jouve.fr>.
You can't test the request parameters like this.
You must use a specific request parameters selector or use you parameter as
is :

--
Olivier


----- Original Message ----- 
From: "joni santoso" <st...@plasa.com>
To: <co...@xml.apache.org>
Sent: Monday, May 05, 2003 10:04 AM
Subject: Re: Can I do this?


> I wanna use that way :)
>
> if it supports / and . why doesn't it support  ? [gee it
> happened to end with ? :)].
>
> btw, is it also possible to use something :
> .../view,,15,,may,,2003,,politics,,world
> or ..../view,,0,,may,,2003,,health.
>
> I sometimes find sites using this syntax.
>
> On Mon, 5 May 2003 10:18:57 +0300 (EEST)
>   Stavros Kounis <go...@osmosis.gr> wrote:
> >
> >
> >why dont try somethink like
> >
> >http://..//viewPage.about
> >
> >-- stavros
> >On Mon, 5 May 2003, joni santoso wrote:
> >
> >> Hi,
> >>
> >> I am trying to do this with cocoon :
> >> http://..../viewPage?about or http://.../viewPage?cv
> >>etc.
> >>
> >> here is the code for my pipeline:
> >>
> >>     <map:match pattern="viewPage?*">
> >>       <map:generate src="{1}.xml"/>
> >>       <map:transform src="{1}.xsl" type="xslt"/>
> >>       <map:serialize type="html"/>
> >>     </map:match>
> >>
> >> but it keeps producing error :(.
> >>
> >> Is it possible to do this?
> >>
> >> thx
> >>
> >>
> >> Cocoon 2 - Resource not found
> >>
>
>> -------------------------------------------------------------------------
-------
> >>
> >> type resource-not-found
> >>
> >> message Resource not found
> >>
> >> description The requested URI "/mc/view" was not found.
> >>
> >> sender org.apache.cocoon.servlet.CocoonServlet
> >>
> >> source Cocoon servlet
> >>
> >> request-uri
> >>
> >> /mc/view
> >>
> >> path-info
> >>
> >> view
> >>
============================================================================
===============
> >> "TELKOMNet Instan memberikan diskon 40% untuk akses
> >>malam hari dari pukul 23.00 sampai 06.00.
> >> Berlaku untuk wilayah Jawa Timur mulai 1 Mei 2003 sampai
> >>30 Juni 2003."
> >>
============================================================================
===============
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail:
> >>cocoon-users-unsubscribe@xml.apache.org
> >> For additional commands, e-mail:
> >>cocoon-users-help@xml.apache.org
> >>
> >>
> >
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail:
> >cocoon-users-unsubscribe@xml.apache.org
> >For additional commands, e-mail:
> >cocoon-users-help@xml.apache.org
> >
>
> Regards,
>
> Joni
>
============================================================================
===============
> "TELKOMNet Instan memberikan diskon 40% untuk akses malam hari dari pukul
23.00 sampai 06.00.
> Berlaku untuk wilayah Jawa Timur mulai 1 Mei 2003 sampai 30 Juni 2003."
>
============================================================================
===============
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: cocoon-users-help@xml.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org


Re: Can I do this?

Posted by joni santoso <st...@plasa.com>.
I wanna use that way :) 

if it supports / and . why doesn't it support  ? [gee it 
happened to end with ? :)].

btw, is it also possible to use something : 
.../view,,15,,may,,2003,,politics,,world
or ..../view,,0,,may,,2003,,health.

I sometimes find sites using this syntax.

On Mon, 5 May 2003 10:18:57 +0300 (EEST)
  Stavros Kounis <go...@osmosis.gr> wrote:
>
>
>why dont try somethink like
>
>http://..//viewPage.about
>
>-- stavros
>On Mon, 5 May 2003, joni santoso wrote:
>
>> Hi,
>>
>> I am trying to do this with cocoon :
>> http://..../viewPage?about or http://.../viewPage?cv 
>>etc.
>>
>> here is the code for my pipeline:
>>
>>     <map:match pattern="viewPage?*">
>>       <map:generate src="{1}.xml"/>
>>       <map:transform src="{1}.xsl" type="xslt"/>
>>       <map:serialize type="html"/>
>>     </map:match>
>>
>> but it keeps producing error :(.
>>
>> Is it possible to do this?
>>
>> thx
>>
>>
>> Cocoon 2 - Resource not found
>>
>> --------------------------------------------------------------------------------
>>
>> type resource-not-found
>>
>> message Resource not found
>>
>> description The requested URI "/mc/view" was not found.
>>
>> sender org.apache.cocoon.servlet.CocoonServlet
>>
>> source Cocoon servlet
>>
>> request-uri
>>
>> /mc/view
>>
>> path-info
>>
>> view
>> ===========================================================================================
>> "TELKOMNet Instan memberikan diskon 40% untuk akses 
>>malam hari dari pukul 23.00 sampai 06.00.
>> Berlaku untuk wilayah Jawa Timur mulai 1 Mei 2003 sampai 
>>30 Juni 2003."
>> ===========================================================================================
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: 
>>cocoon-users-unsubscribe@xml.apache.org
>> For additional commands, e-mail: 
>>cocoon-users-help@xml.apache.org
>>
>>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: 
>cocoon-users-unsubscribe@xml.apache.org
>For additional commands, e-mail: 
>cocoon-users-help@xml.apache.org
>

Regards,

Joni
===========================================================================================
"TELKOMNet Instan memberikan diskon 40% untuk akses malam hari dari pukul 23.00 sampai 06.00.
Berlaku untuk wilayah Jawa Timur mulai 1 Mei 2003 sampai 30 Juni 2003."
===========================================================================================

---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org


Re: Can I do this?

Posted by Stavros Kounis <go...@osmosis.gr>.

why dont try somethink like

http://..//viewPage.about

-- stavros
On Mon, 5 May 2003, joni santoso wrote:

> Hi,
>
> I am trying to do this with cocoon :
> http://..../viewPage?about or http://.../viewPage?cv etc.
>
> here is the code for my pipeline:
>
>     <map:match pattern="viewPage?*">
>       <map:generate src="{1}.xml"/>
>       <map:transform src="{1}.xsl" type="xslt"/>
>       <map:serialize type="html"/>
>     </map:match>
>
> but it keeps producing error :(.
>
> Is it possible to do this?
>
> thx
>
>
> Cocoon 2 - Resource not found
>
> --------------------------------------------------------------------------------
>
> type resource-not-found
>
> message Resource not found
>
> description The requested URI "/mc/view" was not found.
>
> sender org.apache.cocoon.servlet.CocoonServlet
>
> source Cocoon servlet
>
> request-uri
>
> /mc/view
>
> path-info
>
> view
> ===========================================================================================
> "TELKOMNet Instan memberikan diskon 40% untuk akses malam hari dari pukul 23.00 sampai 06.00.
> Berlaku untuk wilayah Jawa Timur mulai 1 Mei 2003 sampai 30 Juni 2003."
> ===========================================================================================
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: cocoon-users-help@xml.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org


Can I do this?

Posted by joni santoso <st...@plasa.com>.
Hi,

I am trying to do this with cocoon : 
http://..../viewPage?about or http://.../viewPage?cv etc.

here is the code for my pipeline:

    <map:match pattern="viewPage?*">
      <map:generate src="{1}.xml"/>
      <map:transform src="{1}.xsl" type="xslt"/>
      <map:serialize type="html"/>
    </map:match>

but it keeps producing error :(.

Is it possible to do this?

thx


Cocoon 2 - Resource not found

--------------------------------------------------------------------------------

type resource-not-found

message Resource not found

description The requested URI "/mc/view" was not found.

sender org.apache.cocoon.servlet.CocoonServlet

source Cocoon servlet

request-uri

/mc/view

path-info

view
===========================================================================================
"TELKOMNet Instan memberikan diskon 40% untuk akses malam hari dari pukul 23.00 sampai 06.00.
Berlaku untuk wilayah Jawa Timur mulai 1 Mei 2003 sampai 30 Juni 2003."
===========================================================================================

---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org


Re: Using XSP inner aggregation

Posted by Geoff Howard <co...@leverageweb.com>.
What are you trying to do?  "Aggregating" only one
part doesn't really make sense.  Does this xsp
execute correctly from a map:generate?  Also, I don't
think the type attribute is supported on map:part.
You need to use the cocoon: pseudo-protocol to
reference another pipeline.  See the section on
aggregating at:
http://xml.apache.org/cocoon/userdocs/concepts/sitemap.html

HTH,
Geoff Howard

At 05:57 AM 5/2/2003, you wrote:
>Hello,
>
>i've tried to parse a xsp file with the map:part element as follows:
>
><map:aggregate>
>     <map:part type="serverpages" src="/xsp/myFile.xsp"/>
></map:aggregate>
>
>But the xsp would not be parsed. Any ideas?
>
>My Cocoon Version is 2.0.4.
>
>Thank you.
>
>Regards
>Stephan


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org