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