In 2.1, you can use insert. In 2.0.4, you'll need use XSLT to merge the
data and then
write the whole file back to disc. Make sense?
Yeah... but that way I can do it grabbing the new data in the generator
pipeline, and in the transformer grab the local repository to merge with, or
grab the
Yeah... but that way I can do it grabbing the new data in the
generator pipeline, and in the transformer grab the local repository
to merge with, or grab the local data in the generator, and then grab
the remote data on by xslt... what's easier?
I would use an aggregator:
map:match
PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, April 05, 2003 7:31 PM
Subject: Re: SourceWrite error :|
Yeah... but that way I can do it grabbing the new data in the
generator pipeline, and in the transformer grab the local repository
to merge with, or grab the local data in the generator
I would suggest using an aggregator and avoiding the document() function
within
Cocoon. Cocoon will not know that you have referred to an external
document, and
thus will not take this into account when deciding whether to serve a
cached page or
not. Thus your employeeNames.xml file might
We're thinking that you're a god (lol), because you're just telling us
the problem we just had discovered, so we're thinking that you're a
mindreader :) kidding :)
Gee. Maybe those years of meditation are working in ways I didn't expect!
Actually, we we're empty the temporary internet
Hi all,
We're getting this error on sourcewrite transformer:
The src attribute doesn't resolve to a writeable source and failed to
cancel
The generator src is:
erro.xml:
?xml version=1.0?
page xmlns:source=http://apache.org/cocoon/source/1.0;
source:write
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
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
]
- 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
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
No effect :(
Oh well.
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 :|
No, that is syntax for 2.1 AFAIK, not 2.0.4. You need source:write src=... as
you had.
There are no working examples on the
No, that is syntax for 2.1 AFAIK, not 2.0.4. You need source:write
src=... as
you had.
I've noticed that, because I've seen in some examples that they used other
notation, like source:source to represent that, but in fact, we're using
cocoon 2.0.4 + tomcat 4.1.
Believe me, it does get
Yes, but the error keeps going on.. I'll check that later, and search
a little more deep for help on documentation...
Okay. Check in your $COCOON-HOME/WEB-INF/cocoon.xconf and make sure
you've got this entry:
source-handler logger=core.source-handler
!-- file protocol : this is a
I will test how to do it.
Thanks for your help!!! :)
Joao Cesar
[EMAIL PROTECTED]
- Original Message -
From: Upayavira [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, April 04, 2003 9:57 PM
Subject: Re: SourceWrite error :|
Yes, but the error keeps going on.. I'll check
thnks :)
It worked :)
Great! It is pleasing when logic prevails!
Now I just have one question: I use the source:write tag to write to
the file, and overwriting it, but what if I want to append data to the
existing file ? Can i use the source:insert tag? Or is it another
way to do
15 matches
Mail list logo