This is an example how to pass parameters from a link (request parameters) to an XSL and use it there as parameter It should use a valid XPATH
This is for Lenya ....
Pipeline:
<map:match pattern="products.html">
<map:generate src="products.xml"/>
<map:transform src="tables.xsl">
<map:parameter
name="use-request-parameters" value="true"/>
</map:transform>
<map:serialize type="html"/>
</map:match>
In attach the two files you need. There are some issues with how you pass the
Xpath, but use this as a starter ....
Usage:
http://yourserver/products.html?xpath=ProductID=16
http://yourserver/products.html?xpath=SupplierID=4
--
Kind regards,
Yves Vindevogel
Implements
Kortrijkstraat 2 bus 1 -- 9700 Oudenaarde -- Belgium
Phone/Fax: +32 (55) 45.74.73 -- Mobile: +32 (478) 80.82.91
Mail: [EMAIL PROTECTED] -- www.implements.be
Quote: The winner never says participating is more important than winning.
products.xml
Description: Binary data
tables.xsl
Description: Binary data
--------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html> To unsubscribe, e-mail: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>
