cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bert Van Kets <b...@vankets.com>
Subject Re: Parameter passing with Cocoon
Date Tue, 14 May 2002 12:33:15 GMT
Change that to http://www.foo.com/x/y/z/index.html and you can use a 
pipeline matcher like this:

<map:match pattern="/*/*/*/*.html">
   <map:generate src="/docs/{4}.xml"/>
   <map:transform src="/styles/yourtransfomer.xsl">
     <map:parameter name="x" value="{1}"/>
     <map:parameter name="y" value="{2}"/>
     <map:parameter name="z" value="{3}"/>
   </map:transform>
   <map:serialize/>
</map:match>

This will call the index.xml file and send the x, y and z parameters to the 
stylesheet.

If you define the x, y and z parameters in your stylesheet, you can simply 
call them the regular xslt way.

HTH,
Bert

At 03:17 14/05/2002 -0700, you wrote:
>Your second method
>
>http://www.foo.com/index-xyz.html
>
>still forces the designer to know parameters when he/she creates a
>link. But I think first method is useful.
>
>http://www.foo.com/xyz/index.html
>
>May you give me a tip about how to parse these parameters to use in
>XSL stylesheets? Can Cocoon do this for me or do I have to write
>codes for parsing parameters in my XSL?
>
>__________________________________________________
>Do You Yahoo!?
>LAUNCH - Your Yahoo! Music Experience
>http://launch.yahoo.com
>
>---------------------------------------------------------------------
>Please check that your question has not already been answered in the
>FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
>
>To unsubscribe, e-mail: <cocoon-users-unsubscribe@xml.apache.org>
>For additional commands, e-mail: <cocoon-users-help@xml.apache.org>


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

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