cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yves Vindevogel <yves.vindevo...@implements.be>
Subject Fwd: Example
Date Wed, 18 Dec 2002 10:41:02 GMT
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: yves.vindevogel@implements.be  --  www.implements.be

Quote: The winner never says participating is more important than winning.
Mime
View raw message