Thank you very much to respond me : )

Did you made changes in your "xmap" or "xconf" files ?

Could you check the existence  of cocoon/WEB-INF/classes/org/apache/xalan/xslt/extensions directory ?
The XSLT/EXTENSIONS part don't match in my system.

I just want to write a single sentence in a text file to start.

Could you tell me wich Xalan version you use, mine is perhaps differente (xalan-2.2.0-D13.jar) ?



Xavier




Ferran Urgell wrote:
[EMAIL PROTECTED]">
Ok, I don't know what is ... but here you have a piece of my xsl file, with the xsl, I'm writing into file on hard disk...
Please send me the xml...and more details....
 
<?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:output method="html" encoding="UTF-8"/>
<xsl:template match="content">
<redirect:write file="../webapps/ROOT/lab/arbre/labescriurexml.txt">
<MENU1>
<TREE_SCRIPT> 1.01
<HEAD>
</HEAD>
<BODY>
<MENU>text=LABORATORIS
<xsl:apply-templates/>
</MENU>
</BODY>
</TREE_SCRIPT>
</MENU1>
 
</redirect:write>
</xsl:template>
 
Regards...
Ferran Urgell
----- Original Message -----
Sent: Wednesday, February 20, 2002 4:37 PM
Subject: Re: writing xml to file

Hello,

I'm new to cocoon

I want to write an xml file on hard disk. So I've tried what you said. It didn't run.
I have modify your piece of  XSL to fit my configuration because, i've found a Redirect class in Xalan.jar with a different path. It still don't run.

Could you say me what i have forgot, please.

Thank you : Xavier


<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet     xmlns:xsl= "http://www.w3.org/1999/XSL/Transform" version="1.0"
            xmlns:redirect="org.apache.xalan.lib.redirect" extension-element-prefixes="redirect">

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

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

</redirect:write>



Ferran Urgell wrote:
[EMAIL PROTECTED]" type="cite">
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" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
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: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>



---------------------------------------------------------------------
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: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>



--------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. To unsubscribe, e-mail: For additional commands, e-mail:



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

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>



Reply via email to