cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bentley, Tim" <TIM.BENT...@ca.com>
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 :-)


Regards,


Tim Bentley

-----Original Message-----
From: Tim Bentley [mailto:timbo@pegacat.com]On Behalf Of Bentley, Tim
Sent: Friday, 18 May 2001 10:02
To: 'cocoon-users@xml.apache.org'
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 1.1.1.1
diff -u -r1.1.1.1 util.xsl
--- util.xsl    2001/05/09 20:49:55     1.1.1.1
+++ util.xsl    2001/05/17 23:54:22
@@ -69,6 +69,7 @@
         <xsp:include>java.util.Date</xsp:include>
         <xsp:include>java.text.SimpleDateFormat</xsp:include>
         <xsp:include>org.apache.cocoon.components.language.markup.xsp.XSPUtil</xsp:include>
+               <xsp:include>java.io.FileReader</xsp:include>
       </xsp:structure>

       <xsl:apply-templates/>

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
happens.

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

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


Regards,


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. <http://xml.apache.org/cocoon/faqs.html>
> 
> To unsubscribe, e-mail: <cocoon-users-unsubscribe@xml.apache.org>
> For additional commands, e-mail: <cocoon-users-help@xml.apache.org>
> 

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


Mime
View raw message