cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bentley, Tim" <>
Subject FW: [C2] Patch for util.xsl
Date Fri, 18 May 2001 00:29:54 GMT
Not sure whether this is useful to you, but thought I'd forward it here as well.  Still can't
actually get <util:include> to work (see my posts on Users if you're interested), but
at least my page compiles with this patch :-)


Tim Bentley

-----Original Message-----
From: Tim Bentley []On Behalf Of Bentley, Tim
Sent: Friday, 18 May 2001 10:02
To: ''
Subject: [C2] Patch for util.xsl

Ok -

<util:include-file> uses the io.FileReader class, which wasn't included anywhere.  Added
an include for it:

Index: util.xsl
RCS file: /home/cvspublic/xml-cocoon2/src/org/apache/cocoon/components/language/markup/xsp/java/util.xsl,v
retrieving revision
diff -u -r1.1.1.1 util.xsl
--- util.xsl    2001/05/09 20:49:55
+++ util.xsl    2001/05/17 23:54:22
@@ -69,6 +69,7 @@
+               <xsp:include></xsp:include>


That gets my page to compile, but the file still isn't getting included.  I can't test this
at the moment, but I seem to recall that in C1 files that didn't exist generated an error
- with the C2 version I can put any old filename in and the behaviour is the same - nothing

I also get compile errors if I try to use the name attribute instead of the <util:name>

<util:inlude-uri> seems to be working fine, contrary to my previous post.


Tim Bentley

> -----Original Message-----
> From: Bentley, Tim 
> Sent: Thursday, 17 May 2001 18:41
> To: Cocoon-Users (E-mail)
> Subject: [C2] Problem with <util:include-file>
> Not sure whether I'm doing something wrong, but I have been 
> converting some
> C1 stuff that uses <util:include-file> over to C2, and have 
> been having
> problems.
> Has anyone successfully used either <util:include-file> or
> <util:include-uri> with C2?  Are there any tricks or traps 
> which make it
> different to C1?
> Regards,
> Tim Bentley
> ---------------------------------------------------------------------
> Please check that your question has not already been answered in the
> FAQ before posting. <>
> To unsubscribe, e-mail: <>
> For additional commands, e-mail: <>

To unsubscribe, e-mail:
For additional commands, email:

View raw message