cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yury Mikhienko <Yury.Mikhie...@mobicomk.ru>
Subject Re: Showing plain text files with cocoon
Date Thu, 08 Jan 2004 15:55:05 GMT
On Thu, 8 Jan 2004 16:47:31 +0100 (MET)
"Stephanie Zohner" <stephanie.zohner@gmx.at> wrote:

> Hi all,
> 
> Does anybody know how to show plain text files with cocoon?
> 
> For example:
> 
> <a href="logfile.log">Link to Logfile</a>
> 
> Should open a new browser window with the plain text log file as its
> content. How can I do this with Cocoon.
> 
> I tried to use the resource reader, like this:
> 
> <map:match pattern="*.log">
> <map:read type="resource" src="{1}.log" mime-type="text/plain"/>
> </map:match>
> 
try

<map:match pattern="*.log">
 <map:read src="{1}.log" mime-type="text/plain"/>
</map:match>

-- 
 
Best regards,
Yury Mikhienko.
IT ERP group head, ZAO "Mobikom-Kavkaz"
tel: (8632) 704188

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


Mime
View raw message