On 07/11/2011 12:35, Andre Juffer wrote:
Hi Francesco,
yes, that's right, I saw that file. It is the one I was referring to,
as a matter of fact.
Line 188 is
<map:generate src="sax-pipeline/{map:1}.xml" />
I have similar lines in my pipeline.
The difference is that I now have:
<map:match pattern="create/image/creator/*">
<map:generate type="new-image">
<map:parameter name="creatorId" value="{map:1}" />
...
Thus, I am trying to pass a parameter to the Generator. When checking
the parameter in the Generator, it is always null. In fact, there are
many parameters available to the Generator (not set by me) and the
'creatorId' is the only one that is null.
What happens if you use one of standard generators - like the XML
generator in the first example? I mean:
<map:match pattern="create/image/creator/*">
<map:generate src="sax-pipeline/{map:1}.xml" />
You should now get an exception for something missing: is it
"sax-pipeline/3276800.xml" or "sax-pipeline/null.xml"?
The request that I was using
http://localhost:8888/img/create/image/creator/3276800?filename=/tmp/3276800-tribc-eap-areal-view.jpg
should however give a value of 3276800 for creatorId.
--
Francesco Chicchiriccò
Apache Cocoon Committer and PMC Member
http://people.apache.org/~ilgrosso/
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]