Hi all,
I'm trying to use XPathDirectoryGenerator but as soon as I insert a xslt-transformer into the pipeline I get a runtime error.
I have already consulted the mailing list archive and other cocoon related sites - but without success.
I'm using cocoon 2.1.5 under Windows XP and I start it via "coocon servlet".
I have created a small demo application to reproduce the runtime error (at least on my system):
Create a directory (here named "gatest") in the default webapp- directory and put the following two files into it:
sitemap.xmap ------------
<?xml version="1.0" encoding="UTF-8"?> <map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0">
<map:components> </map:components>
<map:views> </map:views>
<map:pipelines> <map:pipeline>
<map:match pattern="index.xml"> <map:generate type="xpathdirectory" src="file:///q:/webapp/demo/"> <map:parameter name="depth" value="2"/> <map:parameter name="xmlfiles" value="appinfo\.xml$"/> <map:parameter name="xpath" value="/"/> </map:generate> <map:serialize type="xml"/> </map:match>
<map:match pattern="index.html"> <map:generate type="xpathdirectory" src="file:///q:/webapp/demo/"> <map:parameter name="depth" value="2"/> <map:parameter name="xmlfiles" value="appinfo\.xml$"/> <map:parameter name="xpath" value="/"/> </map:generate> <map:transform src="context://gatest/dir2listofapps.xsl"/> <map:serialize type="xhtml"/> </map:match>
</map:pipeline> </map:pipelines> </map:sitemap>
dir2listofapps.xsl ------------------
<?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:dir="http://apache.org/cocoon/directory/2.0">
<xsl:template match="/"> <html> <head> <title>list of applications</title> </head> <body> <h1>list of applications</h1> </body> </html> </xsl:template>
</xsl:stylesheet>
The error message I get in this example is:
org.apache.cocoon.ProcessingException: Failed to execute pipeline.: java.lang.RuntimeException
Any help on this topic is appreciated very much. If you need further input please feel free to ask.
Thanx in advance, Gerald -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]