Both Alfred and Marco's suggestion worked. Although it's not as elegant as I'd like, at least I know it can do what I want. Placing the parameters into the request allowed me to bypass the fact that generators don't take parameters
I-Lin Kuo, Ann Arbor, MI ----Original Message Follows---- From: "Nathaniel Alfred" <[EMAIL PROTECTED]>
Try this:
<map:match pattern="test/ParamToAgg.xml">
<map:generate src="cocoon:/test/getParam.xml/paramTest=a param value
9876"/>
<map:serialize type="xml"/>
</map:match>
<map:match pattern="test/getParam.xml/*=*">
<map:generate src="myDev/test/dummy.xml"/>
<map:transform src="myDev/xsl/getParam.xsl">
<map:parameter name="{1}" value="{2}"/>
</map:transform>
<map:serialize type="xml"/>
</map:match>HTH, Alfred.
-----Original Message----- From: I-Lin Kuo [mailto:[EMAIL PROTECTED]
Is it possible to pass parameters to an internal pipeline?
This doesn't work for me:
<map:match pattern="test/ParamToAgg.xml">
<map:generate src="cocoon:/test/getParam.xml">
<map:parameter name="paramTest" value="a param value 9876"/>
</map:generate>
<map:serialize type="xml"/>
</map:match>
<map:match pattern="test/getParam.xml">
<map:generate src="myDev/test/dummy.xml"/>
<map:transform src="myDev/xsl/getParam.xsl"/>
<map:serialize type="xml"/>
</map:match>P.S. Just to be sure that I haven't made any dumb mistakes, I've checked that I have a top-level xsl:param in my style sheet getParam.xsl which picks up the parameter from the following pipeline:
<map:match pattern="test/getParam.xml">
<map:generate src="myDev/test/dummy.xml"/>
<map:transform src="myDev/xsl/getParam.xsl">
<map:parameter name="paramTest" value="1234"/>
</map:transform>
<map:serialize type="xml"/>
</map:match>I-Lin Kuo, Ann Arbor, MI
_________________________________________________________________
The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
