You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@lenya.apache.org by sharif islam <sh...@gmail.com> on 2006/04/04 18:31:14 UTC
pipeline anatomy example
Can someone provide a better example for the anatomy of pipeline?
(http://lenya.apache.org/1_2_x/tutorial/anatomy_of_the_pipeline.html)
I know this is something pretty basic, but I am having problems
understanding this, especially with the idea of asterisk.
1. <map:pipeline>
2. <!--/lenyabody-{rendertype}/{publication-id}/{area}/{doctype}/{url}-->
3. <map:match pattern="lenyabody-*/*/*/*/**">
4. <map:aggregate element="cmsbody">
5. <map:part src="cocoon://navigation/{2}/{3}/breadcrumb/{5}.xml"/>
6. <map:part src="cocoon://navigation/{2}/{3}/tabs/{5}.xml"/>
7. <map:part src="cocoon://navigation/{2}/{3}/menu/{5}.xml"/>
8. <map:part src="cocoon://navigation/{2}/{3}/search/{5}.xml"/>
9. <map:part
src="cocoon:/lenya-document-{1}/{3}/{4}/{page-envelope:document-path}"/>>
10.</map:aggregate>
"See all those {2}'s, {3}'s, and {5}'s? Each one of those points to
the value for that numbered asterisk in the matcher. So, whatever
happened to have been in the second asterisk in the matcher, we use
that in place of {2}. Simple, no?"
Thanks.
--sharif
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org
Re: pipeline anatomy example
Posted by Michael Wechner <mi...@wyona.com>.
sharif islam wrote:
>On 4/4/06, Michael Wechner <mi...@wyona.com> wrote:
>
>
>>sharif islam wrote:
>>
>>
>>
>>>Can someone provide a better example for the anatomy of pipeline?
>>>
>>>
>>>
>>>
>>you mean the general concept of a "pipeline"
>>
>>match Request
>>generate Data
>>transform Data
>>serialize/return Data
>>
>>
>
>I understand the general concept. But having problem with
>something like this <map:part
>src="cocoon://navigation/{2}/{3}/breadcrumb/{5}.xml"/>
>and transforming it to the actual file path in my head.
>
>
this is retrieving the breadcrumb path from the general
navigation framework of the Lenya core.
HTH
Michi
>--sharif
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
>For additional commands, e-mail: user-help@lenya.apache.org
>
>
>
>
--
Michael Wechner
Wyona - Open Source Content Management - Apache Lenya
http://www.wyona.com http://lenya.apache.org
michael.wechner@wyona.com michi@apache.org
+41 44 272 91 61
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org
Re: pipeline anatomy example
Posted by Thorsten Scherler <th...@wyona.com>.
El mar, 04-04-2006 a las 14:30 -0500, sharif islam escribió:
> On 4/4/06, Michael Wechner <mi...@wyona.com> wrote:
> > sharif islam wrote:
> >
> > >Can someone provide a better example for the anatomy of pipeline?
> > >
> > >
> >
> > you mean the general concept of a "pipeline"
> >
> > match Request
> > generate Data
> > transform Data
> > serialize/return Data
>
> I understand the general concept. But having problem with
> something like this <map:part
> src="cocoon://navigation/{2}/{3}/breadcrumb/{5}.xml"/>
> and transforming it to the actual file path in my head.
You can find
<!--/lenyabody-{rendertype}/{publication-id}/{area}/{doctype}/{url}-->
Meaning that src="cocoon://navigation/{2}/{3}/breadcrumb/{5}.xml" for
e.g. http://lenya.zones.apache.org:9999/default/authoring/index.html is
resolved to:
{2} = default
{3} = authoring
{5} = index
HTH
salu2
--
Thorsten Scherler
COO Spain
Wyona Inc. - Open Source Content Management - Apache Lenya
http://www.wyona.com http://lenya.apache.org
thorsten.scherler@wyona.com thorsten@apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org
Re: pipeline anatomy example
Posted by sharif islam <sh...@gmail.com>.
On 4/4/06, Michael Wechner <mi...@wyona.com> wrote:
> sharif islam wrote:
>
> >Can someone provide a better example for the anatomy of pipeline?
> >
> >
>
> you mean the general concept of a "pipeline"
>
> match Request
> generate Data
> transform Data
> serialize/return Data
I understand the general concept. But having problem with
something like this <map:part
src="cocoon://navigation/{2}/{3}/breadcrumb/{5}.xml"/>
and transforming it to the actual file path in my head.
--sharif
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org
Re: pipeline anatomy example
Posted by Michael Wechner <mi...@wyona.com>.
sharif islam wrote:
>Can someone provide a better example for the anatomy of pipeline?
>
>
you mean the general concept of a "pipeline"
match Request
generate Data
transform Data
serialize/return Data
?
Michi
>(http://lenya.apache.org/1_2_x/tutorial/anatomy_of_the_pipeline.html)
>I know this is something pretty basic, but I am having problems
>understanding this, especially with the idea of asterisk.
>
>1. <map:pipeline>
> 2. <!--/lenyabody-{rendertype}/{publication-id}/{area}/{doctype}/{url}-->
> 3. <map:match pattern="lenyabody-*/*/*/*/**">
> 4. <map:aggregate element="cmsbody">
> 5. <map:part src="cocoon://navigation/{2}/{3}/breadcrumb/{5}.xml"/>
> 6. <map:part src="cocoon://navigation/{2}/{3}/tabs/{5}.xml"/>
> 7. <map:part src="cocoon://navigation/{2}/{3}/menu/{5}.xml"/>
> 8. <map:part src="cocoon://navigation/{2}/{3}/search/{5}.xml"/>
> 9. <map:part
>src="cocoon:/lenya-document-{1}/{3}/{4}/{page-envelope:document-path}"/>>
> 10.</map:aggregate>
>
>"See all those {2}'s, {3}'s, and {5}'s? Each one of those points to
>the value for that numbered asterisk in the matcher. So, whatever
>happened to have been in the second asterisk in the matcher, we use
>that in place of {2}. Simple, no?"
>Thanks.
>
>--sharif
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
>For additional commands, e-mail: user-help@lenya.apache.org
>
>
>
>
--
Michael Wechner
Wyona - Open Source Content Management - Apache Lenya
http://www.wyona.com http://lenya.apache.org
michael.wechner@wyona.com michi@apache.org
+41 44 272 91 61
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org
Re: pipeline anatomy example
Posted by Thorsten Scherler <th...@wyona.com>.
El mar, 04-04-2006 a las 11:31 -0500, sharif islam escribió:
> Can someone provide a better example for the anatomy of pipeline?
> (http://lenya.apache.org/1_2_x/tutorial/anatomy_of_the_pipeline.html)
> I know this is something pretty basic, but I am having problems
> understanding this, especially with the idea of asterisk.
>
> 1. <map:pipeline>
> 2. <!--/lenyabody-{rendertype}/{publication-id}/{area}/{doctype}/{url}-->
> 3. <map:match pattern="lenyabody-*/*/*/*/**">
> 4. <map:aggregate element="cmsbody">
> 5. <map:part src="cocoon://navigation/{2}/{3}/breadcrumb/{5}.xml"/>
> 6. <map:part src="cocoon://navigation/{2}/{3}/tabs/{5}.xml"/>
> 7. <map:part src="cocoon://navigation/{2}/{3}/menu/{5}.xml"/>
> 8. <map:part src="cocoon://navigation/{2}/{3}/search/{5}.xml"/>
> 9. <map:part
> src="cocoon:/lenya-document-{1}/{3}/{4}/{page-envelope:document-path}"/>>
> 10.</map:aggregate>
>
> "See all those {2}'s, {3}'s, and {5}'s? Each one of those points to
> the value for that numbered asterisk in the matcher. So, whatever
> happened to have been in the second asterisk in the matcher, we use
> that in place of {2}. Simple, no?"
> Thanks.
http://cocoon.apache.org/2.1/userdocs/concepts/sitemap.html
http://cocoon.apache.org/2.1/userdocs/concepts/matchers_selectors.html
In this documents you can find information about the *.
HTH
salu2
--
Thorsten Scherler
COO Spain
Wyona Inc. - Open Source Content Management - Apache Lenya
http://www.wyona.com http://lenya.apache.org
thorsten.scherler@wyona.com thorsten@apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org