You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Lionel Crine <cr...@4dconcept.fr> on 2003/07/21 08:54:22 UTC
Use of a wildcard in a generator
Hi,
I'd like to use a wildcard in a generator like this :
is this allowed ?
<map:match pattern="get*">
<map:generate type="Generator{1}" /> --> I think this is not allowed.
<map:transform type="xslt" src="xsl/{1}.xsl" />
<map:serialize type="html" />
</map:match>
Lionel
Lionel CRINE
Société : 4DConcept
22 rue Etienne de Jouy 78353 JOUY EN JOSAS
Tel : 01.34.58.70.70 Fax : 01.39.58.70.70
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: Use of a wildcard in a generator
Posted by Upayavira <uv...@upaya.co.uk>.
On Mon, 21 Jul 2003 10:17:56 +0200, "Lionel Crine" <cr...@4dconcept.fr>
said:
> I'm already using the parameter selector to do that.
>
> By the way,
>
> To use the less resources (memory, ...) from the sitemap. What's the best
> :
>
> Create two <map:match> almost similar or using the parameterselector ?
>From my limited knowledge of the Cocoon internals, I'd say a single
selector is better than multiple matchers. But I could easily be wrong.
Regards, Upayavira
> What's the cleanest ?
>
> Lionel
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: Use of a wildcard in a generator
Posted by Lionel Crine <cr...@4dconcept.fr>.
I'm already using the parameter selector to do that.
By the way,
To use the less resources (memory, ...) from the sitemap. What's the best :
Create two <map:match> almost similar or using the parameterselector ?
What's the cleanest ?
Lionel
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: Use of a wildcard in a generator
Posted by Upayavira <uv...@upaya.co.uk>.
On Mon, 21 Jul 2003 08:54:22 +0200, "Lionel Crine" <cr...@4dconcept.fr>
said:
> Hi,
>
> I'd like to use a wildcard in a generator like this :
> is this allowed ?
Correct. Variable elements are not allowed in the type attribute. To
achieve that sort of control, you could use a ParameterSelector. See:
http://cocoon.apache.org/2.1/userdocs/selectors/parameter-selector.html
This would allow you to cater for a variety of different, but hard coded,
generators.
Regards, Upayavira
> <map:match pattern="get*">
> <map:generate type="Generator{1}" /> --> I think this is not allowed.
> <map:transform type="xslt" src="xsl/{1}.xsl" />
> <map:serialize type="html" />
> </map:match>
>
>
> Lionel
>
> Lionel CRINE
> Société : 4DConcept
> 22 rue Etienne de Jouy 78353 JOUY EN JOSAS
> Tel : 01.34.58.70.70 Fax : 01.39.58.70.70
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org