Hi tgarijo,
My apologies, but I'm a bit unclear, are you asking a question or
making a statement?
Am I to understand you'd like to get the submitted xml, but also access
some additional parameters?
We can't mix 2 generators, only one generator per pipeline.
If this is the case, maybe something like this would work for you
<map:generate type="stream">
<map:parameter name="form-name" value="myFormFieldName"/>
</map:generator>
<map:transform src="myxsl.xsl">
<map:parameter name="alpha" value="{request-param:alpha}"/>
<map:parameter name="beta" value="{request-param:beta}"/>
</map:transform>
and then in your xslt access those parameters using <xsl:param
name="alpha"/> at the very top.
Cheers.
tgarijo wrote:
Hi Shahriar...
This work very well, thanks
It's posible to add <map:generate type="request"/> before or after
<map:generate type="stream">.
The idea its that the file xml into the request. But i dont like how
parameter.
Thanks
Shahriar Aghajani-2 wrote:
Hi,
Try something like this:
<map:match pattern="url-form-sends-to.xml">
<map:generate type="stream">
<map:parameter name="form-name" value="myFormFieldName"/>
</map:generate>
<map:transform src="my-xslt.xsl"/>
<map:serialize type="xml"/>
</map:match>
I think you're looking for the "stream" generator.
Cheers,
Shahriar.
tgarijo wrote:
Hello I am new to cocoon.
I would like to know how to process this.
I get an xml document by post, I want to process in a pineline.
transform with XSL and with an answer to another xml.
I would be worth the same <match: pattern> for multiple documents than
sending to my url?
I could give some examples.
Greetings
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]