I do have a problem with XInclude as a transformer (see below).
Besides the problem does anybody know if I can use aggregation for that? I
want to generate one xml file from two xml files (none of the must be a
XSP)...
I used the following in the sitemap:
<map:transformer name="xinclude"
src="org.apache.cocoon.transformation.XIncludeTransformer"/>
..
<map:match pattern="**.xml">
<map:generate src="{1}.xml"/>
<map:transform type="xinclude"/>
<map:transform src="xsl/page.xsl"/>
<map:serialize/>
</map:match>
and the following xml file
<page xmlns:xinclude="http://www.w3.org/1999/XML/xinclude">
<xinclude:include xinclude:parse="xml" xinclude:href="../menu.xml"/>
...
I got the following error (in WEB-INF/logs):
ile:/d:/www/N3K/public/company/about_us.xml
ERROR 8962 [cocoon ] (tcpConnection-6802-0): FileGenerator.generate()
java.util.EmptyStackException
at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1048)
at org.apache.cocoon.components.parser.JaxpParser.parse(JaxpParser.java:72)
at
org.apache.cocoon.generation.FileGenerator.generate(FileGenerator.java:115)
at
org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEv
entPipeline.java:220)
at
org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingS
treamPipeline.java:344)
and in the browser
"resource-not-found"
Any idea?
JOERN_HEID
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>