Joerg Heinicke wrote:
Marc Portier wrote:

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


Ah, nice idea I didn't think of.

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


Hmm, much of the code on this page is wrong or at least misleading:

<map:resource name="generate-data-xml">
<map:generate type="myCSVGenerator" src="http://csv-server.domain/getData"/>
</map:resource>


<map:resource name="generate-data-svg">
<map:call resource="generate-data-xml"/>
<map:transform src="xsl/datafilter.xsl"/>
<map:transform src="xsl/data2svg.xsl"/> </map:resource>


A <map:call resource=""/> is a one way ticket. The processing does not return to the calling pipeline. Or do I miss anything?


I think it does... (at least it did at the time of writing since I tested the code out)


resources are pieces of pipelines that take up roles
see also the accompanied page at
http://wiki.cocoondev.org/Wiki.jsp?page=ResourceNaming


regards, -marc=


Joerg

-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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]


-- Marc Portier http://outerthought.org/ Outerthought - Open Source, Java & XML Competence Support Center Read my weblog at http://radio.weblogs.com/0116284/ [EMAIL PROTECTED] [EMAIL PROTECTED]


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to