cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ferran Urgell" <ferran_urg...@hotmail.com>
Subject Re: writing xml to file
Date Thu, 14 Feb 2002 14:45:29 GMT

In the xsl you can try something like:


<?xml version="1.0"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                              xmlns:sql="http://apache.org/cocoon/SQL/2.0"
         xmlns:redirect="org.apache.xalan.xslt.extensions.Redirect"
         extension-element-prefixes="redirect">

  <xsl:template match="/">
<redirect:write file="../webapps/ROOT/file.txt">

< Here put the xsl sentences........like apply templates.....>


</redirect:write>
</xsl:template>
</xsl:stylesheet>

----- Original Message -----
From: "Bert Van Kets" <bert@visitronics.be>
To: <cocoon-users@xml.apache.org>
Sent: Thursday, February 14, 2002 10:54 AM
Subject: writing xml to file


> I have built a system where I can edit the content of an xml file in a
> browser by using html forms.  Comparing the request object with the
> original XML (by use of ID's and aggregation) lets me contruct the updated
> xml file with the original structure.
> I would like to write this file to disk, well actually overwrite the
> original xml file.
> How do I go about this in Cocoon?
> Thanks,
> Bert
>
>
> ---------------------------------------------------------------------
> 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