You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Jörn Heid <he...@fh-heilbronn.de> on 2001/06/12 08:39:57 UTC

Problem with xinclude

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: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>