You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Ryan Agler <ry...@hotmail.com> on 2002/09/16 09:20:16 UTC
RE: Action & Pagination
Try taking out the second match seems to me its redundant and might be
the cause of your problem. Also, inside of an act you have to go up a
level to reference the parameter (../) try this:
<map:match pattern="search-employee(*).html">
<map:act set="processemployee">
<map:parameter name="descriptor"
value="context://richard_webapps/descriptor/vxs_employees-dx.xml"/>
<map:generate type="serverpages"
src="xsp/results-employee.xsp"/>
<map:transform type="paginate"
src="pagesheets/search-employee.pagesheet">
<map:parameter name="page" value="{../1}"/>
</map:transform>
<map:transform src="xsl/employee2.xsl"/>
<map:serialize/>
</map:act>
</map:match>
-----Original Message-----
From: Richard [mailto:richard@voxsant.com]
Sent: Monday, September 16, 2002 3:53 PM
To: C2 Users
Subject: Action & Pagination
Hi Guys,
Can you help me?
Using this sitemap snippet below I can only generate the first page....
I cannot display search-employee(2).html
<map:match pattern="search-employee(*).html">
<map:act set="processemployee">
<map:parameter name="descriptor"
value="context://richard_webapps/descriptor/vxs_employees-dx.xml"/>
<map:match pattern="search-employee(*).html">
<map:generate type="serverpages"
src="xsp/results-employee.xsp"/>
<map:transform type="paginate"
src="pagesheets/search-employee.pagesheet">
<map:parameter name="page" value="{1}"/>
</map:transform>
<map:transform src="xsl/employee2.xsl"/>
<map:serialize/>
</map:match>
</map:act>
</map:match>
Thanks!
Re: Action & Pagination
Posted by Vadim Gritsenko <va...@verizon.net>.
Martin Schimak wrote:
> Hi. You can access the next to last map by prefixing the key with
> "../". As
> an action delivers a Map object, which is stacked on top of the
> previous object,
> you have to use the path-expression in order to access this next to
> last map.
>
> Have a look at
> http://xml.apache.org/cocoon/userdocs/concepts/actions.html
See Also:
http://xml.apache.org/cocoon/faq/faq-sitemap.html#faq-7
Vadim
>> Hi Mr. Martin Schimak,
>>
>> Thanks it is working now...
>>
>> I hope you dont mind... can you tell me why we need to do it this way
>> > > <map:parameter name="page" value="{../1}"/>
>>
>> cause its not written in here...
>> http://xml.apache.org/cocoon/howto/howto-paginator-transformer.html
>>
>> Thanks a lot!
>>
>>
>> ------------------------------------------------------------------------
>>
>>
>> ----- Original Message -----
>> From: "Richard" <richard@voxsant.com <ma...@voxsant.com>>
>> To: <cocoon-users@xml.apache.org <ma...@xml.apache.org>>
>> Sent: Monday, September 16, 2002 4:44 PM
>> Subject: Re: Action & Pagination
>>
>> > Thanks I'll try it
>> >
>> > ----- Original Message -----
>> > From: "Martin Schimak" <cocoon-users@schimak.at
>> <ma...@schimak.at>>
>> > To: <cocoon-users@xml.apache.org
>> <ma...@xml.apache.org>>
>> > Sent: Monday, September 16, 2002 12:41 AM
>> > Subject: Re: Action & Pagination
>> >
>> >
>> > > He meant try <map:parameter name="page" value="{../1}"/>
>> > >
>> > > Martin.
>> > >
>> > > > And what do you mean by the Action thing ( "parameter (../)
>> try " )?
>> > > >
>> > > > ----- Original Message -----
>> > > > *From:* Richard <ma...@voxsant.com>
>> > > > *To:* cocoon-users@xml.apache.org
>> <ma...@xml.apache.org>
>> > <ma...@xml.apache.org>
>> > > > *Sent:* Monday, September 16, 2002 3:26 PM
>> > > > *Subject:* Re: Action & Pagination
>> > > >
>> > > >
>> > > > Hi Ryan,
>> > > >
>> > > > I tried it but still I got the same error....
>> > > >
>> > > > Anyway here's my current sitemap...
>> > > >
>> > > > <map:match pattern="results-employees(*).html">
>> > > > <map:act type="selectemployee">
>> > > > <map:parameter name="descriptor"
>> > > >
>> > > >
>> value="context://richard_webapps/descriptor/vxs_employees-dx.xml"/>
>> > > > <map:generate type="serverpages"
>> > > > src="xsp/results-employee.xsp"/>
>> > > > <map:transform type="paginate"
>> > > > src="pagesheets/results-employees.pagesheet">
>> > > > <map:parameter name="page"
>> > > > value="{1}"/>
>> > > > </map:transform>
>> > > > <map:transform src="xsl/employee2.xsl"/>
>> > > > <map:serialize/>
>> > > > </map:act>
>> > > > </map:match>
>> > > > What could have I done wrong...
>> > > >
>> > > > Thanks again
>> > > >
>> > >
>> >
>> ------------------------------------------------------------------------
>> > > > ----- Original Message -----
>> > > > From: "Ryan Agler" <ryanagler@hotmail.com
>> <ma...@hotmail.com>
>> > > > <ma...@hotmail.com>>
>> > > > To: <cocoon-users@xml.apache.org
>> <ma...@xml.apache.org>
>> > <ma...@xml.apache.org>>
>> > > > Sent: Monday, September 16, 2002 12:20 AM
>> > > > Subject: RE: Action & Pagination
>> > > >
>> > > > > Try taking out the second match - seems to me its
>> redundant and
>> > > > might be
>> > > > > the cause of your problem. Also, inside of an act you
>> have to go
>> > > > up a
>> > > > > level to reference the parameter (../) try this:
>> > > > >
>> > > > >
>> > > > > <map:match pattern="search-employee(*).html">
>> > > > > <map:act set="processemployee">
>> > > > > <map:parameter name="descriptor"
>> > > > >
>> > value="context://richard_webapps/descriptor/vxs_employees-dx.xml"/>
>> > > > > <map:generate type="serverpages"
>> > > > > src="xsp/results-employee.xsp"/>
>> > > > > <map:transform type="paginate"
>> > > > > src="pagesheets/search-employee.pagesheet">
>> > > > > <map:parameter name="page" value="{../1}"/>
>> > > > > </map:transform>
>> > > > > <map:transform src="xsl/employee2.xsl"/>
>> > > > > <map:serialize/>
>> > > > > </map:act>
>> > > > > </map:match>
>> > > > >
>> > > > > -----Original Message-----
>> > > > > From: Richard [mailto:richard@voxsant.com]
>> > > > > Sent: Monday, September 16, 2002 3:53 PM
>> > > > > To: C2 Users
>> > > > > Subject: Action & Pagination
>> > > > >
>> > > > > Hi Guys,
>> > > > >
>> > > > > Can you help me?
>> > > > > Using this sitemap snippet below I can only generate
>> the first
>> > > > page....
>> > > > > I cannot display search-employee(2).html
>> > > > >
>> > > > > <map:match pattern="search-employee(*).html">
>> > > > > <map:act set="processemployee">
>> > > > > <map:parameter name="descriptor"
>> > > > >
>> > value="context://richard_webapps/descriptor/vxs_employees-dx.xml"/>
>> > > > > <map:match pattern="search-employee(*).html">
>> > > > > <map:generate type="serverpages"
>> > > > > src="xsp/results-employee.xsp"/>
>> > > > > <map:transform type="paginate"
>> > > > > src="pagesheets/search-employee.pagesheet">
>> > > > > <map:parameter name="page" value="{1}"/>
>> > > > > </map:transform>
>> > > > > <map:transform src="xsl/employee2.xsl"/>
>> > > > > <map:serialize/>
>> > > > > </map:match>
>> > > > > </map:act>
>> > > > > </map:match>
>> > > > >
>> > > > > Thanks!
>
---------------------------------------------------------------------
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: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>
Re: Action & Pagination
Posted by Martin Schimak <co...@schimak.at>.
Hi. You can access the next to last map by prefixing the key with "../". As
an action delivers a Map object, which is stacked on top of the previous object,
you have to use the path-expression in order to access this next to last map.
Have a look at http://xml.apache.org/cocoon/userdocs/concepts/actions.html
> Hi Mr. Martin Schimak,
>
> Thanks it is working now...
>
> I hope you dont mind... can you tell me why we need to do it this way
> > > <map:parameter name="page" value="{../1}"/>
>
> cause its not written in here...
> http://xml.apache.org/cocoon/howto/howto-paginator-transformer.html
>
> Thanks a lot!
>
>
> ------------------------------------------------------------------------
>
>
> ----- Original Message -----
> From: "Richard" <richard@voxsant.com <ma...@voxsant.com>>
> To: <cocoon-users@xml.apache.org <ma...@xml.apache.org>>
> Sent: Monday, September 16, 2002 4:44 PM
> Subject: Re: Action & Pagination
>
> > Thanks I'll try it
> >
> > ----- Original Message -----
> > From: "Martin Schimak" <cocoon-users@schimak.at
> <ma...@schimak.at>>
> > To: <cocoon-users@xml.apache.org <ma...@xml.apache.org>>
> > Sent: Monday, September 16, 2002 12:41 AM
> > Subject: Re: Action & Pagination
> >
> >
> > > He meant try <map:parameter name="page" value="{../1}"/>
> > >
> > > Martin.
> > >
> > > > And what do you mean by the Action thing ( "parameter (../) try " )?
> > > >
> > > > ----- Original Message -----
> > > > *From:* Richard <ma...@voxsant.com>
> > > > *To:* cocoon-users@xml.apache.org
> <ma...@xml.apache.org>
> > <ma...@xml.apache.org>
> > > > *Sent:* Monday, September 16, 2002 3:26 PM
> > > > *Subject:* Re: Action & Pagination
> > > >
> > > >
> > > > Hi Ryan,
> > > >
> > > > I tried it but still I got the same error....
> > > >
> > > > Anyway here's my current sitemap...
> > > >
> > > > <map:match pattern="results-employees(*).html">
> > > > <map:act type="selectemployee">
> > > > <map:parameter name="descriptor"
> > > >
> > > >
> value="context://richard_webapps/descriptor/vxs_employees-dx.xml"/>
> > > > <map:generate type="serverpages"
> > > > src="xsp/results-employee.xsp"/>
> > > > <map:transform type="paginate"
> > > > src="pagesheets/results-employees.pagesheet">
> > > > <map:parameter name="page"
> > > > value="{1}"/>
> > > > </map:transform>
> > > > <map:transform src="xsl/employee2.xsl"/>
> > > > <map:serialize/>
> > > > </map:act>
> > > > </map:match>
> > > > What could have I done wrong...
> > > >
> > > > Thanks again
> > > >
> > >
> >
> ------------------------------------------------------------------------
> > > > ----- Original Message -----
> > > > From: "Ryan Agler" <ryanagler@hotmail.com
> <ma...@hotmail.com>
> > > > <ma...@hotmail.com>>
> > > > To: <cocoon-users@xml.apache.org
> <ma...@xml.apache.org>
> > <ma...@xml.apache.org>>
> > > > Sent: Monday, September 16, 2002 12:20 AM
> > > > Subject: RE: Action & Pagination
> > > >
> > > > > Try taking out the second match - seems to me its
> redundant and
> > > > might be
> > > > > the cause of your problem. Also, inside of an act you
> have to go
> > > > up a
> > > > > level to reference the parameter (../) try this:
> > > > >
> > > > >
> > > > > <map:match pattern="search-employee(*).html">
> > > > > <map:act set="processemployee">
> > > > > <map:parameter name="descriptor"
> > > > >
> > value="context://richard_webapps/descriptor/vxs_employees-dx.xml"/>
> > > > > <map:generate type="serverpages"
> > > > > src="xsp/results-employee.xsp"/>
> > > > > <map:transform type="paginate"
> > > > > src="pagesheets/search-employee.pagesheet">
> > > > > <map:parameter name="page" value="{../1}"/>
> > > > > </map:transform>
> > > > > <map:transform src="xsl/employee2.xsl"/>
> > > > > <map:serialize/>
> > > > > </map:act>
> > > > > </map:match>
> > > > >
> > > > > -----Original Message-----
> > > > > From: Richard [mailto:richard@voxsant.com]
> > > > > Sent: Monday, September 16, 2002 3:53 PM
> > > > > To: C2 Users
> > > > > Subject: Action & Pagination
> > > > >
> > > > > Hi Guys,
> > > > >
> > > > > Can you help me?
> > > > > Using this sitemap snippet below I can only generate the first
> > > > page....
> > > > > I cannot display search-employee(2).html
> > > > >
> > > > > <map:match pattern="search-employee(*).html">
> > > > > <map:act set="processemployee">
> > > > > <map:parameter name="descriptor"
> > > > >
> > value="context://richard_webapps/descriptor/vxs_employees-dx.xml"/>
> > > > > <map:match pattern="search-employee(*).html">
> > > > > <map:generate type="serverpages"
> > > > > src="xsp/results-employee.xsp"/>
> > > > > <map:transform type="paginate"
> > > > > src="pagesheets/search-employee.pagesheet">
> > > > > <map:parameter name="page" value="{1}"/>
> > > > > </map:transform>
> > > > > <map:transform src="xsl/employee2.xsl"/>
> > > > > <map:serialize/>
> > > > > </map:match>
> > > > > </map:act>
> > > > > </map:match>
> > > > >
> > > > > Thanks!
> > > > >
> > > >
> > >
> > >
> > >
> > > ---------------------------------------------------------------------
> > > 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
> <ma...@xml.apache.org>>
> > > For additional commands, e-mail:
> <cocoon-users-help@xml.apache.org <ma...@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
> <ma...@xml.apache.org>>
> > For additional commands, e-mail: <cocoon-users-help@xml.apache.org
> <ma...@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: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>
Re: Action & Pagination
Posted by Richard <ri...@voxsant.com>.
Hi Mr. Martin Schimak,
Thanks it is working now...
I hope you dont mind... can you tell me why we need to do it this way
> > <map:parameter name="page" value="{../1}"/>
cause its not written in here...
http://xml.apache.org/cocoon/howto/howto-paginator-transformer.html
Thanks a lot!
--------------------------------------------------------------------------------
----- Original Message -----
From: "Richard" <ri...@voxsant.com>
To: <co...@xml.apache.org>
Sent: Monday, September 16, 2002 4:44 PM
Subject: Re: Action & Pagination
> Thanks I'll try it
>
> ----- Original Message -----
> From: "Martin Schimak" <co...@schimak.at>
> To: <co...@xml.apache.org>
> Sent: Monday, September 16, 2002 12:41 AM
> Subject: Re: Action & Pagination
>
>
> > He meant try <map:parameter name="page" value="{../1}"/>
> >
> > Martin.
> >
> > > And what do you mean by the Action thing ( "parameter (../) try " )?
> > >
> > > ----- Original Message -----
> > > *From:* Richard <ma...@voxsant.com>
> > > *To:* cocoon-users@xml.apache.org
> <ma...@xml.apache.org>
> > > *Sent:* Monday, September 16, 2002 3:26 PM
> > > *Subject:* Re: Action & Pagination
> > >
> > >
> > > Hi Ryan,
> > >
> > > I tried it but still I got the same error....
> > >
> > > Anyway here's my current sitemap...
> > >
> > > <map:match pattern="results-employees(*).html">
> > > <map:act type="selectemployee">
> > > <map:parameter name="descriptor"
> > >
> > > value="context://richard_webapps/descriptor/vxs_employees-dx.xml"/>
> > > <map:generate type="serverpages"
> > > src="xsp/results-employee.xsp"/>
> > > <map:transform type="paginate"
> > > src="pagesheets/results-employees.pagesheet">
> > > <map:parameter name="page"
> > > value="{1}"/>
> > > </map:transform>
> > > <map:transform src="xsl/employee2.xsl"/>
> > > <map:serialize/>
> > > </map:act>
> > > </map:match>
> > > What could have I done wrong...
> > >
> > > Thanks again
> > >
> >
> ------------------------------------------------------------------------
> > > ----- Original Message -----
> > > From: "Ryan Agler" <ryanagler@hotmail.com
> > > <ma...@hotmail.com>>
> > > To: <cocoon-users@xml.apache.org
> <ma...@xml.apache.org>>
> > > Sent: Monday, September 16, 2002 12:20 AM
> > > Subject: RE: Action & Pagination
> > >
> > > > Try taking out the second match - seems to me its redundant and
> > > might be
> > > > the cause of your problem. Also, inside of an act you have to go
> > > up a
> > > > level to reference the parameter (../) try this:
> > > >
> > > >
> > > > <map:match pattern="search-employee(*).html">
> > > > <map:act set="processemployee">
> > > > <map:parameter name="descriptor"
> > > >
> value="context://richard_webapps/descriptor/vxs_employees-dx.xml"/>
> > > > <map:generate type="serverpages"
> > > > src="xsp/results-employee.xsp"/>
> > > > <map:transform type="paginate"
> > > > src="pagesheets/search-employee.pagesheet">
> > > > <map:parameter name="page" value="{../1}"/>
> > > > </map:transform>
> > > > <map:transform src="xsl/employee2.xsl"/>
> > > > <map:serialize/>
> > > > </map:act>
> > > > </map:match>
> > > >
> > > > -----Original Message-----
> > > > From: Richard [mailto:richard@voxsant.com]
> > > > Sent: Monday, September 16, 2002 3:53 PM
> > > > To: C2 Users
> > > > Subject: Action & Pagination
> > > >
> > > > Hi Guys,
> > > >
> > > > Can you help me?
> > > > Using this sitemap snippet below I can only generate the first
> > > page....
> > > > I cannot display search-employee(2).html
> > > >
> > > > <map:match pattern="search-employee(*).html">
> > > > <map:act set="processemployee">
> > > > <map:parameter name="descriptor"
> > > >
> value="context://richard_webapps/descriptor/vxs_employees-dx.xml"/>
> > > > <map:match pattern="search-employee(*).html">
> > > > <map:generate type="serverpages"
> > > > src="xsp/results-employee.xsp"/>
> > > > <map:transform type="paginate"
> > > > src="pagesheets/search-employee.pagesheet">
> > > > <map:parameter name="page" value="{1}"/>
> > > > </map:transform>
> > > > <map:transform src="xsl/employee2.xsl"/>
> > > > <map:serialize/>
> > > > </map:match>
> > > > </map:act>
> > > > </map:match>
> > > >
> > > > Thanks!
> > > >
> > >
> >
> >
> >
> > ---------------------------------------------------------------------
> > 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: <co...@xml.apache.org>
> > For additional commands, e-mail: <co...@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: <co...@xml.apache.org>
> For additional commands, e-mail: <co...@xml.apache.org>
>
>
>
Re: Action & Pagination
Posted by Richard <ri...@voxsant.com>.
Thanks I'll try it
----- Original Message -----
From: "Martin Schimak" <co...@schimak.at>
To: <co...@xml.apache.org>
Sent: Monday, September 16, 2002 12:41 AM
Subject: Re: Action & Pagination
> He meant try <map:parameter name="page" value="{../1}"/>
>
> Martin.
>
> > And what do you mean by the Action thing ( "parameter (../) try " )?
> >
> > ----- Original Message -----
> > *From:* Richard <ma...@voxsant.com>
> > *To:* cocoon-users@xml.apache.org
<ma...@xml.apache.org>
> > *Sent:* Monday, September 16, 2002 3:26 PM
> > *Subject:* Re: Action & Pagination
> >
> >
> > Hi Ryan,
> >
> > I tried it but still I got the same error....
> >
> > Anyway here's my current sitemap...
> >
> > <map:match pattern="results-employees(*).html">
> > <map:act type="selectemployee">
> > <map:parameter name="descriptor"
> >
> > value="context://richard_webapps/descriptor/vxs_employees-dx.xml"/>
> > <map:generate type="serverpages"
> > src="xsp/results-employee.xsp"/>
> > <map:transform type="paginate"
> > src="pagesheets/results-employees.pagesheet">
> > <map:parameter name="page"
> > value="{1}"/>
> > </map:transform>
> > <map:transform src="xsl/employee2.xsl"/>
> > <map:serialize/>
> > </map:act>
> > </map:match>
> > What could have I done wrong...
> >
> > Thanks again
> >
>
------------------------------------------------------------------------
> > ----- Original Message -----
> > From: "Ryan Agler" <ryanagler@hotmail.com
> > <ma...@hotmail.com>>
> > To: <cocoon-users@xml.apache.org
<ma...@xml.apache.org>>
> > Sent: Monday, September 16, 2002 12:20 AM
> > Subject: RE: Action & Pagination
> >
> > > Try taking out the second match - seems to me its redundant and
> > might be
> > > the cause of your problem. Also, inside of an act you have to go
> > up a
> > > level to reference the parameter (../) try this:
> > >
> > >
> > > <map:match pattern="search-employee(*).html">
> > > <map:act set="processemployee">
> > > <map:parameter name="descriptor"
> > >
value="context://richard_webapps/descriptor/vxs_employees-dx.xml"/>
> > > <map:generate type="serverpages"
> > > src="xsp/results-employee.xsp"/>
> > > <map:transform type="paginate"
> > > src="pagesheets/search-employee.pagesheet">
> > > <map:parameter name="page" value="{../1}"/>
> > > </map:transform>
> > > <map:transform src="xsl/employee2.xsl"/>
> > > <map:serialize/>
> > > </map:act>
> > > </map:match>
> > >
> > > -----Original Message-----
> > > From: Richard [mailto:richard@voxsant.com]
> > > Sent: Monday, September 16, 2002 3:53 PM
> > > To: C2 Users
> > > Subject: Action & Pagination
> > >
> > > Hi Guys,
> > >
> > > Can you help me?
> > > Using this sitemap snippet below I can only generate the first
> > page....
> > > I cannot display search-employee(2).html
> > >
> > > <map:match pattern="search-employee(*).html">
> > > <map:act set="processemployee">
> > > <map:parameter name="descriptor"
> > >
value="context://richard_webapps/descriptor/vxs_employees-dx.xml"/>
> > > <map:match pattern="search-employee(*).html">
> > > <map:generate type="serverpages"
> > > src="xsp/results-employee.xsp"/>
> > > <map:transform type="paginate"
> > > src="pagesheets/search-employee.pagesheet">
> > > <map:parameter name="page" value="{1}"/>
> > > </map:transform>
> > > <map:transform src="xsl/employee2.xsl"/>
> > > <map:serialize/>
> > > </map:match>
> > > </map:act>
> > > </map:match>
> > >
> > > Thanks!
> > >
> >
>
>
>
> ---------------------------------------------------------------------
> 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: <co...@xml.apache.org>
> For additional commands, e-mail: <co...@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: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>
Re: Action & Pagination
Posted by Martin Schimak <co...@schimak.at>.
He meant try <map:parameter name="page" value="{../1}"/>
Martin.
> And what do you mean by the Action thing ( "parameter (../) try " )?
>
> ----- Original Message -----
> *From:* Richard <ma...@voxsant.com>
> *To:* cocoon-users@xml.apache.org <ma...@xml.apache.org>
> *Sent:* Monday, September 16, 2002 3:26 PM
> *Subject:* Re: Action & Pagination
>
>
> Hi Ryan,
>
> I tried it but still I got the same error....
>
> Anyway here's my current sitemap...
>
> <map:match pattern="results-employees(*).html">
> <map:act type="selectemployee">
> <map:parameter name="descriptor"
>
> value="context://richard_webapps/descriptor/vxs_employees-dx.xml"/>
> <map:generate type="serverpages"
> src="xsp/results-employee.xsp"/>
> <map:transform type="paginate"
> src="pagesheets/results-employees.pagesheet">
> <map:parameter name="page"
> value="{1}"/>
> </map:transform>
> <map:transform src="xsl/employee2.xsl"/>
> <map:serialize/>
> </map:act>
> </map:match>
> What could have I done wrong...
>
> Thanks again
>
> ------------------------------------------------------------------------
> ----- Original Message -----
> From: "Ryan Agler" <ryanagler@hotmail.com
> <ma...@hotmail.com>>
> To: <cocoon-users@xml.apache.org <ma...@xml.apache.org>>
> Sent: Monday, September 16, 2002 12:20 AM
> Subject: RE: Action & Pagination
>
> > Try taking out the second match - seems to me its redundant and
> might be
> > the cause of your problem. Also, inside of an act you have to go
> up a
> > level to reference the parameter (../) try this:
> >
> >
> > <map:match pattern="search-employee(*).html">
> > <map:act set="processemployee">
> > <map:parameter name="descriptor"
> > value="context://richard_webapps/descriptor/vxs_employees-dx.xml"/>
> > <map:generate type="serverpages"
> > src="xsp/results-employee.xsp"/>
> > <map:transform type="paginate"
> > src="pagesheets/search-employee.pagesheet">
> > <map:parameter name="page" value="{../1}"/>
> > </map:transform>
> > <map:transform src="xsl/employee2.xsl"/>
> > <map:serialize/>
> > </map:act>
> > </map:match>
> >
> > -----Original Message-----
> > From: Richard [mailto:richard@voxsant.com]
> > Sent: Monday, September 16, 2002 3:53 PM
> > To: C2 Users
> > Subject: Action & Pagination
> >
> > Hi Guys,
> >
> > Can you help me?
> > Using this sitemap snippet below I can only generate the first
> page....
> > I cannot display search-employee(2).html
> >
> > <map:match pattern="search-employee(*).html">
> > <map:act set="processemployee">
> > <map:parameter name="descriptor"
> > value="context://richard_webapps/descriptor/vxs_employees-dx.xml"/>
> > <map:match pattern="search-employee(*).html">
> > <map:generate type="serverpages"
> > src="xsp/results-employee.xsp"/>
> > <map:transform type="paginate"
> > src="pagesheets/search-employee.pagesheet">
> > <map:parameter name="page" value="{1}"/>
> > </map:transform>
> > <map:transform src="xsl/employee2.xsl"/>
> > <map:serialize/>
> > </map:match>
> > </map:act>
> > </map:match>
> >
> > Thanks!
> >
>
---------------------------------------------------------------------
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: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>
Re: Action & Pagination
Posted by Richard <ri...@voxsant.com>.
And what do you mean by the Action thing ( "parameter (../) try " )?
----- Original Message -----
From: Richard
To: cocoon-users@xml.apache.org
Sent: Monday, September 16, 2002 3:26 PM
Subject: Re: Action & Pagination
Hi Ryan,
I tried it but still I got the same error....
Anyway here's my current sitemap...
<map:match pattern="results-employees(*).html">
<map:act type="selectemployee">
<map:parameter name="descriptor"
value="context://richard_webapps/descriptor/vxs_employees-dx.xml"/>
<map:generate type="serverpages" src="xsp/results-employee.xsp"/>
<map:transform type="paginate" src="pagesheets/results-employees.pagesheet">
<map:parameter name="page" value="{1}"/>
</map:transform>
<map:transform src="xsl/employee2.xsl"/>
<map:serialize/>
</map:act>
</map:match>
What could have I done wrong...
Thanks again
------------------------------------------------------------------------------
----- Original Message -----
From: "Ryan Agler" <ry...@hotmail.com>
To: <co...@xml.apache.org>
Sent: Monday, September 16, 2002 12:20 AM
Subject: RE: Action & Pagination
> Try taking out the second match - seems to me its redundant and might be
> the cause of your problem. Also, inside of an act you have to go up a
> level to reference the parameter (../) try this:
>
>
> <map:match pattern="search-employee(*).html">
> <map:act set="processemployee">
> <map:parameter name="descriptor"
> value="context://richard_webapps/descriptor/vxs_employees-dx.xml"/>
> <map:generate type="serverpages"
> src="xsp/results-employee.xsp"/>
> <map:transform type="paginate"
> src="pagesheets/search-employee.pagesheet">
> <map:parameter name="page" value="{../1}"/>
> </map:transform>
> <map:transform src="xsl/employee2.xsl"/>
> <map:serialize/>
> </map:act>
> </map:match>
>
> -----Original Message-----
> From: Richard [mailto:richard@voxsant.com]
> Sent: Monday, September 16, 2002 3:53 PM
> To: C2 Users
> Subject: Action & Pagination
>
> Hi Guys,
>
> Can you help me?
> Using this sitemap snippet below I can only generate the first page....
> I cannot display search-employee(2).html
>
> <map:match pattern="search-employee(*).html">
> <map:act set="processemployee">
> <map:parameter name="descriptor"
> value="context://richard_webapps/descriptor/vxs_employees-dx.xml"/>
> <map:match pattern="search-employee(*).html">
> <map:generate type="serverpages"
> src="xsp/results-employee.xsp"/>
> <map:transform type="paginate"
> src="pagesheets/search-employee.pagesheet">
> <map:parameter name="page" value="{1}"/>
> </map:transform>
> <map:transform src="xsl/employee2.xsl"/>
> <map:serialize/>
> </map:match>
> </map:act>
> </map:match>
>
> Thanks!
>
Re: Action & Pagination
Posted by Richard <ri...@voxsant.com>.
Hi Ryan,
I tried it but still I got the same error....
Anyway here's my current sitemap...
<map:match pattern="results-employees(*).html">
<map:act type="selectemployee">
<map:parameter name="descriptor"
value="context://richard_webapps/descriptor/vxs_employees-dx.xml"/>
<map:generate type="serverpages" src="xsp/results-employee.xsp"/>
<map:transform type="paginate" src="pagesheets/results-employees.pagesheet">
<map:parameter name="page" value="{1}"/>
</map:transform>
<map:transform src="xsl/employee2.xsl"/>
<map:serialize/>
</map:act>
</map:match>
What could have I done wrong...
Thanks again
--------------------------------------------------------------------------------
----- Original Message -----
From: "Ryan Agler" <ry...@hotmail.com>
To: <co...@xml.apache.org>
Sent: Monday, September 16, 2002 12:20 AM
Subject: RE: Action & Pagination
> Try taking out the second match - seems to me its redundant and might be
> the cause of your problem. Also, inside of an act you have to go up a
> level to reference the parameter (../) try this:
>
>
> <map:match pattern="search-employee(*).html">
> <map:act set="processemployee">
> <map:parameter name="descriptor"
> value="context://richard_webapps/descriptor/vxs_employees-dx.xml"/>
> <map:generate type="serverpages"
> src="xsp/results-employee.xsp"/>
> <map:transform type="paginate"
> src="pagesheets/search-employee.pagesheet">
> <map:parameter name="page" value="{../1}"/>
> </map:transform>
> <map:transform src="xsl/employee2.xsl"/>
> <map:serialize/>
> </map:act>
> </map:match>
>
> -----Original Message-----
> From: Richard [mailto:richard@voxsant.com]
> Sent: Monday, September 16, 2002 3:53 PM
> To: C2 Users
> Subject: Action & Pagination
>
> Hi Guys,
>
> Can you help me?
> Using this sitemap snippet below I can only generate the first page....
> I cannot display search-employee(2).html
>
> <map:match pattern="search-employee(*).html">
> <map:act set="processemployee">
> <map:parameter name="descriptor"
> value="context://richard_webapps/descriptor/vxs_employees-dx.xml"/>
> <map:match pattern="search-employee(*).html">
> <map:generate type="serverpages"
> src="xsp/results-employee.xsp"/>
> <map:transform type="paginate"
> src="pagesheets/search-employee.pagesheet">
> <map:parameter name="page" value="{1}"/>
> </map:transform>
> <map:transform src="xsl/employee2.xsl"/>
> <map:serialize/>
> </map:match>
> </map:act>
> </map:match>
>
> Thanks!
>
Re: Action & Pagination
Posted by Richard <ri...@voxsant.com>.
Thanks
----- Original Message -----
From: "Ryan Agler" <ry...@hotmail.com>
To: <co...@xml.apache.org>
Sent: Monday, September 16, 2002 12:20 AM
Subject: RE: Action & Pagination
> Try taking out the second match - seems to me its redundant and might be
> the cause of your problem. Also, inside of an act you have to go up a
> level to reference the parameter (../) try this:
>
>
> <map:match pattern="search-employee(*).html">
> <map:act set="processemployee">
> <map:parameter name="descriptor"
> value="context://richard_webapps/descriptor/vxs_employees-dx.xml"/>
> <map:generate type="serverpages"
> src="xsp/results-employee.xsp"/>
> <map:transform type="paginate"
> src="pagesheets/search-employee.pagesheet">
> <map:parameter name="page" value="{../1}"/>
> </map:transform>
> <map:transform src="xsl/employee2.xsl"/>
> <map:serialize/>
> </map:act>
> </map:match>
>
> -----Original Message-----
> From: Richard [mailto:richard@voxsant.com]
> Sent: Monday, September 16, 2002 3:53 PM
> To: C2 Users
> Subject: Action & Pagination
>
> Hi Guys,
>
> Can you help me?
> Using this sitemap snippet below I can only generate the first page....
> I cannot display search-employee(2).html
>
> <map:match pattern="search-employee(*).html">
> <map:act set="processemployee">
> <map:parameter name="descriptor"
> value="context://richard_webapps/descriptor/vxs_employees-dx.xml"/>
> <map:match pattern="search-employee(*).html">
> <map:generate type="serverpages"
> src="xsp/results-employee.xsp"/>
> <map:transform type="paginate"
> src="pagesheets/search-employee.pagesheet">
> <map:parameter name="page" value="{1}"/>
> </map:transform>
> <map:transform src="xsl/employee2.xsl"/>
> <map:serialize/>
> </map:match>
> </map:act>
> </map:match>
>
> Thanks!
>
---------------------------------------------------------------------
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: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>