cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vadim Gritsenko" <vgritse...@hns.com>
Subject RE: Nobody Knows HOW TO SAVE STREAM ON DISK!!
Date Mon, 10 Sep 2001 19:28:49 GMT
> -----Original Message-----
> From: cib [mailto:c.cib@laposte.net]
> Sent: Monday, September 10, 2001 2:30 PM
> To: Cocoon User Mail List
> Subject: Nobody Knows HOW TO SAVE STREAM ON DISK!!
> 
> 
> Hi,
> I've been sending message everywhere and reading any book on jsp,
> and nowhere it's told how I can get an xsp to record, or update a file.
> It's crazy!!
> 
> I 've got an xsp which creates or recreate an xsl each time database is
> changed.
> But how can I save this stream from the xsp on my disk, on my server, so
> that this xsl can be used on requests to transform my xml files.

Why don't you just use this XSL without saving to disk:
   <!-- generates XSL -->
   <map:match pattern="xsl-source">
    <map:generate src="stylesheets/simple-page2html.xsl"/>
    <map:serialize type="xml"/>
   </map:match>
   <!-- uses generated XSL -->
   <map:match pattern="xsl-cocoon">
    <map:generate src="docs/hello-page.xml"/>
    <map:transform src="cocoon:/xsl-source"/>
    <map:serialize/>
   </map:match>

Vadim

> 
> Please, java is chinese to me, but i really need to record the file to my
> disk for my app to work at last.
> 
> Cib
> 
> France, Bordeaux, xml and gay pride.
> 
> 
> ---------------------------------------------------------------------
> 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>
> 
> 

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


Mime
View raw message