On Mar 25, 2008, at 12:31 AM, shai200 wrote:
This doesn't work for me for some reason. I get an error (see end of
this
message).
<snip/>
And my sitemap entry is:
<map:match pattern="xmlaction">
<map:act type="xml-injection">
<map:generate>
<map:parameter name="param"
value="{paramAction}"/>
</map:generate>
Generator must have src attribute pointing to source document it
should use. For example, following would work:
<map:generate type="jx" src="pages/result.jx">
<map:parameter name="param" value="{paramAction}"/>
</map:generate>
Vadim
</map:act>
<map:transform src="demo/welcome.xslt"/>
<map:serialize type="xhtml"/>
</map:match>
The error I get is as follows:
<snip/>
Caused by: java.net.MalformedURLException: Invalid System ID
at
org
.apache
.cocoon
.components
.source.CocoonSourceResolver.resolveURI(CocoonSourceResolver.java:109)
at
org
.apache
.cocoon
.components
.source.CocoonSourceResolver.resolveURI(CocoonSourceResolver.java:182)
at
org.apache.cocoon.generation.FileGenerator.setup(FileGenerator.java:
108)
at
org
.apache
.cocoon
.components
.pipeline
.AbstractProcessingPipeline
.setupPipeline(AbstractProcessingPipeline.java:341)
... 58 more
Joerg Heinicke wrote:
On 17.03.2008 19:48, shai200 wrote:
From the first glance at the Cocoon Core 2.2 documentation
(http://cocoon.apache.org/2.2/core-modules/core/
2.2/1270_1_1.html), it is
unclear whether a String result of an Action (or perhaps a value
passed
through the Map and Action returns) can be used to inject as the XML
content
generated by the generator, down the pipeline.
If this is possible, how would I go about it?
Yes, it is:
<map:act>
<map:generate>
<map:parameter name="param" value="{paramAction}"/>
</map:generate>
</map:act>
'paramAction' has to be an entry in the map returned by the action.
Joerg
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]