cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marc Portier <...@outerthought.org>
Subject Re: <map:serialize type="{1}"/>
Date Sat, 26 Jul 2003 07:32:09 GMT
I think Resources might do it as well,
matter off taste what you'll prefer probably...

<map:resource name="serialize-typeX">
   <serialize type="typeX"/>
</map:resource>

# and more for each type...


and then have <map:call resource="serialize-{1}" /> in your pipe


see for more at 
http://wiki.cocoondev.org/Wiki.jsp?page=CleanerSiteMapsThroughResources

-marc=


Joerg Heinicke wrote:
> In short: no. Selector is the right way to go.
> 
> Joerg
> 
> Rams├ęs Morales wrote:
> 
>> Hi.
>>
>> I would like to do sitemap substitution to the type attribute of the
>> serializer from the wildcard matcher. I get this error:
>>
>> Type '{1}' is not defined for 'serialize'
>>
>> That means I can't select dynamically the serializer with this syntax?:
>>
>> <map:serialize type="{1}"/>
>>
>> I solved the problem using a selector, but I would really like to do it
>> with {1}. Is it possible?
>>
>> Thanks for your help.
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
> 

-- 
Marc Portier                            http://outerthought.org/
Outerthought - Open Source, Java & XML Competence Support Center
Read my weblog at              http://radio.weblogs.com/0116284/
mpo@outerthought.org                              mpo@apache.org


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


Mime
View raw message