No effect :(

Perhaps we could use source:insert instead, we've tried but we get an XML
output of what we wanted to insert, and no changes on the file :|

There are no working examples on the documentation, just a scratchpad that
we already tested with no results also...

Why are we figuring that altought may appear easy to work with cocoon,
everytime we atempt to do something simple there's always some problem :(
And the documentation never tells all the options and tags available like
the one you just gave us :(

Is there any other transformer to write to a file?

Thanks

Joao Cesar
[EMAIL PROTECTED]

Computer Science Student's @ University of Lisboa, PORTUGAL

----- Original Message -----
From: "Upayavira" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, April 04, 2003 5:02 PM
Subject: Re: SourceWrite error :|


Try adding  overwrite="true" into the <source:write> node. Not sure if that
is it, but it is
worth a try.

Upayavira

On 4 Apr 2003 at 16:53, João César wrote:

>
> Hi, first of all thanks for your prompt answer :)
>
> I've just changed to <source:write src="repository/my.xml"> and the
> error still remains, but after I analyse the XML displayed in the
> browser we see:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <page xmlns:source="http://apache.org/cocoon/source/1.0";>
>    <source:write src="file:/C:/Program Files/Apache Group/Tomcat
> 4.1/webapps/cocoon/pubmed/repository/my.xml" action="none"
> result="failed" serializer="xml">The src attribute doesn't resolve to
> a writeable source and failed to cancel</source:write>
>  </page>
>
> And the file exist's on that computer directory.. Do we need to write
> something on the file for it to become "writable", or can it be empty?
>
> Thanks in advance
>
> Joao Cesar
> [EMAIL PROTECTED]
>
>
>
>
> ----- Original Message -----
> From: "Upayavira" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, April 04, 2003 4:45 PM
> Subject: Re: SourceWrite error :|
>
>
> > > Hi all,
> > >
> > > We're getting this error on sourcewrite transformer:
> > >
> > > "The src attribute doesn't resolve to a writeable source and
> > > failed to cancel " ...
> > >    <source:write src="context://pubmed/repository/my.xml">
> > > ...
> >
> > The source you write to must be 'writable'. Obviously 'context:'
> > does not
> refer to a
> > source that is writable. If you wish to write to a file, try either
> > src="pubmed/repository/my.xml" or
> > src="file:/path/to/context/pubmed/repository/my.xml"
> >
> > This should work as file: is writable.
> >
> > Regards, Upayavira
> >
> >
> > --------------------------------------------------------------------
> > - To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED] For
> additional commands, e-mail: [EMAIL PROTECTED]
>
>



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



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

Reply via email to