<?xml version="1.0"?> <page xmlns:xi="http://www.w3.org/2001/XInclude"> <title>XInclude xml:base demo</title> <content> This is a test of the xml:base support. <hr/> <dummy xml:base="cocoon:/dir1/dir2/dir3/">
<xi:include href="../../../test3.xml"/>
<dummy xml:base="cocoon://samples/woody/">
<xi:include href="cars"/>
</dummy><xi:include href="../../../test3.xml"/>
</dummy> </content> </page>
And it works. Maybe you are only missing a trailing / after cocoon://sitemap_item ==> cocoon://sitemap_item/.
Joerg
iyy wrote:
try using cocoon://sitemap_item in xml:base
my samples work as well. but if i place cocoon://abc and in href="rest of url" it fails. ----- Original Message ----- From: "Joerg Heinicke" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, October 20, 2003 3:13 PM Subject: Re: tomcat4 : cocoon 2.1.3 dev : xiclude failed: one solution
Does the xmlbase sample at http://127.0.0.1:8888/samples/aggregation/xmlbase.html work for you?
It does for me, so I guess it's not a problem with xml:base in general.
Joerg
iyy wrote:
i found that if i moved what is mentioned in xml:base to href then
xincludes
work without any problem..
xml:base used to work without any problem in cocoon 2.1 dev version..
----- Original Message ----- From: "Andrzej Jan Taramina" <[EMAIL PROTECTED]> To: "iyy" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Saturday, October 18, 2003 7:59 PM Subject: Re: tomcat4 : cocoon 2.1.3 dev : xiclude failed
Error message is :
org.apache.cocoon.ProcessingException: Failed to execute pipeline.: java.lang.NullPointerException
But if I xincluded a static file , it works.. Above resource is dynamic
xml
from our sitemap.
Look in the logs....usually you'll find more detailed info there on what caused the transformation problem.
Andrzej Jan Taramina
-- System Development VIRBUS AG Fon +49(0)341-979-7419 Fax +49(0)341-979-7409 [EMAIL PROTECTED] www.virbus.de
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
