cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joerg Heinicke <jheini...@virbus.de>
Subject Re: tomcat4 : cocoon 2.1.3 dev : xiclude failed: one solution
Date Tue, 21 Oct 2003 11:38:29 GMT
I change the xmlbase sample xml to the following:

<?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" <jheinicke@virbus.de>
> To: <users@cocoon.apache.org>
> 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" <andrzej@chaeron.com>
>>>To: "iyy" <iyy@apparelxml.net>
>>>Cc: <users@cocoon.apache.org>
>>>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
joerg.heinicke@virbus.de
www.virbus.de


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message