Ross Gardler wrote:
I'm using the XPathDirectoryGenerator and I am having a little trouble
with it giving a RuntimeException (partial stack trace at end of this
mail). The strange thing is that if I use save the output of the
XPathGenerator in a file it works.
My sitemap has:
<map:match pattern="resume.aggregate.xml">
<map:generate type="xpathdirectory"
src="{project:content.xdocs}/team/resume">
<map:parameter name="include" value=".*.xml$"/>
<map:parameter name="xpath" value="/"/>
</map:generate>
-X-
<map:serialize type="xml"/>
</map:match>
This gives the response I expect. Then I have:
Since I have been using Cocoon (2.1.5) I have never succeeded
in creating a working pipeline with XPathDirectoryGenerator.
The only working configuration was the one shown above: XPath-
DirectoryGenerator being followed directly by the XML seriali-
zer. As soon as I have inserted any transformation at -X- a
runtime error was reported.
I have investigated some time in finding out [1], what was wrong,
but at that time it looked like I was the only one experiencing
such troubles. All my Cocoon installations on several computers
showed this behaviour.
Finally I have created a workaround using the DirectoryGenerator
in combination with CInclude.
Gerald
[1] http://marc.theaimsgroup.com/?l=xml-cocoon-users&m=109111055413204&w=2
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]