Oscar Picasso wrote:
Tee hee. You should have been able to do that by specifying a serializer
for the SourceWritingTransformer to have used.
That was my first idea. However in my case the SourceWritingTransformer has
features that I don't need, and lacks features that I need.
So the parsed xml elements are not the same.
For example I have <source>some-source-url</source> and
<target>some-target-url</target>.
If you want to load a source, you could use the xinclude or cinclude
transformers to get that into the pipeline, then do SWT. Otherwise, I'd
say, if you come up with features that the SWT lacks, consider providing
a patch to add them. Let us know here what features you'd like it to have,
(other questions already answered...)
Regards, Upayavira
Hmm. Basically, the URLSource can handle FTP, but not writable. So, you
need to add something like:
<component-instance
class="org.apache.excalibur.source.impl.FTPSourceFactory" name="ftp"/>
into your cocoon.xconf, before the similar definition of the URLSource,
which has name="*"
Does that make sense?
It makes a lot of sense. I am now able to get a FTPSource. I get however a
"sun.net.ftp.FtpLoginException: Not logged in".
It sounds like it's a user/password problem. But I have not been able to find
out how to set them. I have tried many things like:
SourceParameters params = new SourceParameters();
params.setParameter("user", "anonymous");
params.setParameter("password", "");
Map map = new HashMap();
map.put(SourceResolver.URI_PARAMETERS, params);
targetSrc = resolver.resolveURI("/pub/all/binary-file", "ftp://myftp-server",
map);
and many other things. But I get always the same Exception.
Any idea?
Thanks for your input.
__________________________________
Do you Yahoo!?
New and Improved Yahoo! Mail - Send 10MB messages!
http://promotions.yahoo.com/new_mail
---------------------------------------------------------------------
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]