cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joerg Heinicke <joerg.heini...@gmx.de>
Subject Re: wildcards in type attribute not supported?
Date Mon, 09 Jun 2003 13:19:42 GMT
Hello Stefan,

to make it short: no. Pipelines are built independent of the requested 
resource, so the {1} gets not or even could not get evaluated. 
(http://cocoon.apache.org/2.0/userdocs/concepts/sitemap.html)
A solution would be to use Selectors.

Joerg

Stefan Kostopoulos wrote:
> Hi everybody!
> 
> I am trying to use the wildcard matcher to select different 
> transformation types:
> 
> <map:match pattern="*/*.html">
>          <map:generate type="file" src="xml/{2}.xml"/>
>          <map:transform type="{1}" src="xsl/stylesheet.xsl" />
>          <map:serialize type="html"/>
>  </map:match>
> 
> ...but this causes the following error:
> org.apache.avalon.framework.configuration.ConfigurationException:
> Type '{1}' is not defined for 'transform' at file:........
> 
> Are the placeholders not supported in the type attribute or am I missing 
> something?
> 
> If it is not supported is there anybody else who thinks that would be 
> usefull?
> I wanted to test the performance of different XLS Transformers and this 
> type of match
> would make it very easy.
> 
> Regards,
> 
> Stefan


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


Mime
View raw message