cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Giacomo Pati <giac...@apache.org>
Subject Re: [C2] Map passing through multiple levels
Date Wed, 07 Mar 2001 20:05:15 GMT
Klaasen Tom wrote:
> Hi,
>
> I'm trying to pull this off:
>
>    <map:match pattern="wimps/*">
>    	<map:act type="parameter_select">
>    		<parameter name="lang"/>
>    		<parameter name="user"/>
>    		<parameter name="version"/>
>    		<map:match type="doctype" pattern="wepul">
>    	 		<map:generate type="wimps" src="{1}"/>
> 			<map:transform type="xslt"
> src="stylesheets/wimps/simple.xsl"/>
> 			<map:serialize type="html"/>
>      		</map:match>
>     	</map:act>
>    </map:match>
>
> The question whether this "parameter_select" is the way to go aside, I want
> the {1} in <map:generate type="wimps" src="{1}"/> to translate in the *
> from <map:match pattern="wimps/*">. However, this doesn't work (because
> I've got a nested matcher). Is there a way that I can get access to the
> value of the * in this construct? Or do I have to put that {1} in the
> objectModel also and retrieve it in the generate step? That solution
> doesn't seem very attracting to me. Is there something like {../1}?

Exactly! you refer to the matchers pattern by {../1} because a Matcher and 
Actions return a Map and references are implemented similar to XPath back 
references

Giacomo

Mime
View raw message