You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Jeremy Quinn <je...@media.demon.co.uk> on 2000/08/02 19:58:55 UTC

including with entities

Hi,

When including XML from other files using Entities, Xerces (?) does not
appear to correctly check for changes to the included file, right?

ie. view the URL, edit the included file, view the URL again, and you get
the cached copy.

regards Jeremy
-- 
   ___________________________________________________________________

   Jeremy Quinn                                           Karma Divers
                                                       webSpace Design
                                            HyperMedia Research Centre

   <ma...@mac.com>     		 <http://www.media.demon.co.uk>
    <phone:+44.[0].20.7737.6831>        <pa...@sms.genie.co.uk>

Re: including with entities

Posted by Donald Ball <ba...@webslingerZ.com>.
patched, thanks.

- donald

On Fri, 4 Aug 2000, Jeremy Quinn wrote:

> At 10:19 +0100 03/08/00, Jeremy Quinn wrote:
> >>try xinclude (if you can get it to work!) it _does_ check for freshness of
> >>included resources.
> >
> >I am having problems with both the XInclude processor and the
> >util:include-file taglib.
> 
> I have fixed a bug that arose in the util:include-file logicsheet with my
> particular setup.
> 
> There are two forms of the XSPUtil.relativeFilename() method, one takes a
> Context object, one does not. The LogicSheet was using the version that
> does not supply the Context object, the cause of my null pointer Exception.
> 
> 
> Here is the Diff for the fix.
> 
> Index: xml-cocoon/src/org/apache/cocoon/processor/xsp/library/java/util.xsl
> ===================================================================
> RCS file:
> /home/cvspublic/xml-cocoon/src/org/apache/cocoon/processor/xsp/library/java/util.xsl,v
> retrieving revision 1.17
> diff -r1.17 util.xsl
> 136c136,137
> <                    request
> ---
> >                    request,
> >                    (ServletContext) context
> 
> 
> hope this helps
> 
> regards Jeremy
> 


Re: including with entities

Posted by Jeremy Quinn <je...@media.demon.co.uk>.
At 10:19 +0100 03/08/00, Jeremy Quinn wrote:
>>try xinclude (if you can get it to work!) it _does_ check for freshness of
>>included resources.
>
>I am having problems with both the XInclude processor and the
>util:include-file taglib.

I have fixed a bug that arose in the util:include-file logicsheet with my
particular setup.

There are two forms of the XSPUtil.relativeFilename() method, one takes a
Context object, one does not. The LogicSheet was using the version that
does not supply the Context object, the cause of my null pointer Exception.


Here is the Diff for the fix.

Index: xml-cocoon/src/org/apache/cocoon/processor/xsp/library/java/util.xsl
===================================================================
RCS file:
/home/cvspublic/xml-cocoon/src/org/apache/cocoon/processor/xsp/library/java/util.xsl,v
retrieving revision 1.17
diff -r1.17 util.xsl
136c136,137
<                    request
---
>                    request,
>                    (ServletContext) context


hope this helps

regards Jeremy
-- 
   ___________________________________________________________________

   Jeremy Quinn                                           Karma Divers
                                                       webSpace Design
                                            HyperMedia Research Centre

   <ma...@mac.com>     		 <http://www.media.demon.co.uk>
    <phone:+44.[0].20.7737.6831>        <pa...@sms.genie.co.uk>

Re: including with entities

Posted by Jeremy Quinn <je...@media.demon.co.uk>.
At 23:35 -0400 02/08/00, Donald Ball wrote:
>On Wed, 2 Aug 2000, Jeremy Quinn wrote:
>
>> Hi,
>>
>> When including XML from other files using Entities, Xerces (?) does not
>> appear to correctly check for changes to the included file, right?
>
>i doubt it. it'd be nice if we could get xerces to give us a list of
>resouces upon which the parsed document relies, but...

yes, it would be nice :)

>
>> ie. view the URL, edit the included file, view the URL again, and you get
>> the cached copy.
>
>try xinclude (if you can get it to work!) it _does_ check for freshness of
>included resources.

I am having problems with both the XInclude processor and the
util:include-file taglib.

How weird!

I am sure people must be using these successfully, or we'd have heard about
it by now.

regards Jeremy
-- 
   ___________________________________________________________________

   Jeremy Quinn                                           Karma Divers
                                                       webSpace Design
                                            HyperMedia Research Centre

   <ma...@mac.com>     		 <http://www.media.demon.co.uk>
    <phone:+44.[0].20.7737.6831>        <pa...@sms.genie.co.uk>

Re: including with entities

Posted by Donald Ball <ba...@webslingerZ.com>.
On Wed, 2 Aug 2000, Jeremy Quinn wrote:

> Hi,
> 
> When including XML from other files using Entities, Xerces (?) does not
> appear to correctly check for changes to the included file, right?

i doubt it. it'd be nice if we could get xerces to give us a list of
resouces upon which the parsed document relies, but...

> ie. view the URL, edit the included file, view the URL again, and you get
> the cached copy.

try xinclude (if you can get it to work!) it _does_ check for freshness of
included resources.

- donald