cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mark H" <>
Subject RE: Writing Request to File System
Date Tue, 11 Feb 2003 19:58:41 GMT
>Then write it to a file on my TomCat server (I NEED THIS)


<map:transform src="writeSource.xsl">
	<map:parameter name="filename" value="someFilename.xml"/>
<map:transform type="write-source"/>
<map:serialize type="xml"/>


<?xml version="1.0" encoding="iso-8859-1"?>
<xsl:stylesheet version="1.0"
	<xsl:param name="filename"/>
	<xsl:template match="/">
		<source:write create="true">
				<xsl:value-of select="$filename"/>
					<xsl:copy-of select="@*"/>
	<xsl:template match="*">
			<xsl:copy-of select="@*"/>
	<xsl:template match="text()">
		<xsl:value-of select="."/>


-----Original Message-----
From: []
Sent: 11 February 2003 05:31PM
Subject: Writing Request to File System

I'm a newbie.  I have Cocoon running.  I have a stylesheet that can submit
and recieve values from the RequestGenerator.

What I want to do is
Get http RequestGenerator XML (I have that)
Run it though a stylesheet (I have that)
Then write it to a file on my TomCat server (I NEED THIS)
Then redirect the request to an index page (This would be nice)

Right now I can send the output I want to go to the file as a response to
the web client.



Please check that your question  has not already been answered in the
FAQ before posting.     <>

To unsubscribe, e-mail:     <>
For additional commands, e-mail:   <>

View raw message