RE: SourceWritingTransformer

2004-01-12 Thread Lars Huttar
I assume you have looked at the examples at cocoon/docs/userdocs/components/transformers/sourcewriting-transformer.html Here's what we use (under Cocoon 2.1.2). In the sitemap: ... ...

RE: SourceWritingTransformer

2004-01-12 Thread Varalakshmi Kollipara
:[EMAIL PROTECTED] Sent: Monday, January 12, 2004 3:04 PM To: [EMAIL PROTECTED] Cc: Varalakshmi Kollipara Subject: RE: SourceWritingTransformer I assume you have looked at the examples at cocoon/docs/userdocs/components/transformers/sourcewriting-transformer.html Here's what we use (under C

Re: SourceWritingTransformer

2004-01-13 Thread Upayavira
[EMAIL PROTECTED] Sent: Monday, January 12, 2004 3:04 PM To: [EMAIL PROTECTED] Cc: Varalakshmi Kollipara Subject: RE: SourceWritingTransformer I assume you have looked at the examples at cocoon/docs/userdocs/components/transformers/sourcewriting-transformer.html Here's what we use (under C

RE: SourceWritingTransformer

2004-01-13 Thread Varalakshmi Kollipara
Thank you. -Original Message- From: Upayavira [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 13, 2004 2:28 AM To: [EMAIL PROTECTED] Subject: Re: SourceWritingTransformer Varalakshmi Kollipara wrote: >Hi thank you for the reply. I am able to work with Source Writing >Transforme

Re: SourceWritingTransformer

2005-04-06 Thread Sylvain Wallez
David Merrilees wrote: Has anyone got a working example of SourceWritingTransformer? I can't get a peep out of it. Rather than using a transformer, you really should consider using the flowscript and the PipelineUtil class, or the copy-source action. Pipelines are meant to producing content an

Re: SourceWritingTransformer

2005-04-06 Thread Jens Reufsteck
The following works for me. It actually picks some information out of the session (put there by the authentication framework) and writes it out to a file called "writeTest.{sessionid}" (used for authentification in a different cocoon-independent environment). The xsl-Transformer just collects

Re: SourceWritingTransformer

2005-04-06 Thread Antonio Gallardo
On Mie, 6 de Abril de 2005, 9:43, Sylvain Wallez dijo: > David Merrilees wrote: > >>Has anyone got a working example of SourceWritingTransformer? I can't >>get a peep out of it. >> >> > > Rather than using a transformer, you really should consider using the > flowscript and the PipelineUtil class,

Re: SourceWritingTransformer

2005-04-07 Thread Michael Wechner
Antonio Gallardo wrote: On Mie, 6 de Abril de 2005, 9:43, Sylvain Wallez dijo: David Merrilees wrote: Has anyone got a working example of SourceWritingTransformer? I can't get a peep out of it. Apache Lenya uses it for saving the content of the various editors (at least within 1.2),

Re: SourceWritingTransformer

2005-04-07 Thread Michael Wechner
Michael Wechner wrote: Antonio Gallardo wrote: On Mie, 6 de Abril de 2005, 9:43, Sylvain Wallez dijo: David Merrilees wrote: Has anyone got a working example of SourceWritingTransformer? I can't get a peep out of it. Apache Lenya uses it for saving the content of the various editors (a

Re: SourceWritingTransformer

2005-04-07 Thread Lars Huttar
Michael Wechner wrote: Antonio Gallardo wrote: On Mie, 6 de Abril de 2005, 9:43, Sylvain Wallez dijo: Rather than using a transformer, you really should consider using the flowscript and the PipelineUtil class, or the copy-source action. is there a more concrete example on this? I second this

Re: SourceWritingTransformer

2005-04-08 Thread Lars Huttar
Lars Huttar wrote: Michael Wechner wrote: Antonio Gallardo wrote: On Mie, 6 de Abril de 2005, 9:43, Sylvain Wallez dijo: Rather than using a transformer, you really should consider using the flowscript and the PipelineUtil class, or the copy-source action. is there a more concrete example on t

Re: SourceWritingTransformer

2005-04-11 Thread Geert Josten
Rather than using a transformer, you really should consider using the flowscript and the PipelineUtil class, or the copy-source action. is there a more concrete example on this? I second this question, Sylvain. A big advantage of transformers is that they can take a dynamically-generated list of s

Re: SourceWritingTransformer error

2003-08-14 Thread Ferenc Kiraly
Upayavira wrote: The source writing transformer in 2.0.x is different from that in 2.1. Use something like the following in 2.0.x: Looking at the source file SourceWritingTransformer.java I must strongly disagree. http://apache.org/cocoon/source/1.0"; overwrite="true"> Regards, Upay

Re: SourceWritingTransformer error

2003-08-22 Thread Matthieu
Both side are true ... in cocoon 2.0.4 the syntax is http://apache.org/cocoon/source/1.0"; overwrite="true"> It's not what is explained on cocoon 2.0 documentation but the exemples in scratchpad show this (see mount/editor/tests and particulary file make-page.xsl) this version of

Re: SourceWritingTransformer Problem

2004-08-25 Thread Andreas Hartmann
JACOB, ERIC wrote: Hi, It seems that I cannot use the SourceWritingTransformer to write document that is in use by the pipeline. I get the following error: org.apache.cocoon.ProcessingException: Failed to execute pipeline.: java.lang.RuntimeException: org.apache.cocoon.ProcessingException: Could no

Re: SourceWritingTransformer Problem

2004-08-25 Thread Jorg Heymans
there is a way of doing this in flow if you're interested. var resolver = cocoon.getComponent(Packages.org.apache.excalibur.source.SourceResolver.ROLE); var source = resolver.resolveURI("URI for your modifiable source"); var outputstream = source.getOutputStream(); cocoon.processPipelineTo("page",

RE: SourceWritingTransformer Problem

2004-08-25 Thread JACOB, ERIC
'm reading from. Thanks, Eric -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Andreas Hartmann Sent: Wednesday, August 25, 2004 10:25 AM To: [EMAIL PROTECTED] Subject: Re: SourceWritingTransformer Problem JACOB, ERIC wrote: > Hi, > > It see

Re: SourceWritingTransformer results in NPE!

2003-11-08 Thread David Geleyn
--- Joerg Heinicke <[EMAIL PROTECTED]> wrote: > I don't know about the SourceWritingTransformer and > its usage, but a NPE is > never the users fault in general. If you can provide > more info like a stack > trace, it will be easier for us to investigate. > > Joerg > > David Geleyn wrote: > >

Re: SourceWritingTransformer results in NPE!

2003-11-09 Thread Joerg Heinicke
This is a NPE in Xalan and we can't do much on it. Can you test whether the expected Xalan version is in use and whether it's a recent one? http://xml.apache.org/xalan-j/faq.html#environmentcheck Joerg On 08.11.2003 12:52, David Geleyn wrote: --- Joerg Heinicke <[EMAIL PROTECTED]> wrote: I d

Re: SourceWritingTransformer results in NullPointerException... My mistake?

2003-11-07 Thread Joerg Heinicke
I don't know about the SourceWritingTransformer and its usage, but a NPE is never the users fault in general. If you can provide more info like a stack trace, it will be easier for us to investigate. Joerg David Geleyn wrote: Hi, I'm trying to replace an attribute with the source writing trans

re: SourceWritingTransformer to save jpeg/png to filesystem

2003-11-28 Thread jim basilakis
Hi, Does anyone know how to save a png/jpg generated by .svg file onto the file system. I have been hinted before to use SourceWritingTransformer but does this apply to images as well as simple files? If so, what would I need to do? Would something like this work... Thanks in advan

Re: SourceWritingTransformer to save jpeg/png to filesystem

2003-11-29 Thread Upayavira
jim basilakis wrote: Hi, Does anyone know how to save a png/jpg generated by .svg file onto the file system. I have been hinted before to use SourceWritingTransformer but does this apply to images as well as simple files? If so, what would I need to do? Would something like this work...

Re: SourceWritingTransformer to save jpeg/png to filesystem

2003-11-29 Thread Sebastian Klamar
* jim basilakis [2003-11-29 06:05 +0100] wrote: > Does anyone know how to save a png/jpg generated by .svg file onto the > file system. I have been hinted before to use SourceWritingTransformer Another hint from me: If it's not important to write the images to file system you can also use the pair

RE: SourceWritingTransformer to save jpeg/png to filesystem

2003-12-01 Thread jim basilakis
. Thanks again, Jim -Original Message- From: Upayavira [mailto:[EMAIL PROTECTED] Sent: Saturday, 29 November 2003 6:46 PM To: [EMAIL PROTECTED] Subject: Re: SourceWritingTransformer to save jpeg/png to filesystem jim basilakis wrote: >Hi, > >Does anyone know how to save a p

Re: SourceWritingTransformer not creating file until end of pipeline?

2003-12-01 Thread Upayavira
Hugh, Looking into the source of the SWT, I can see that the source is written as soon as the end tag has been received, which is the soonest that it is possible for it to be written. Note, however, that any nodes in the XML stream that precede the stuff, will already have been passed on to

Re: SourceWritingTransformer not creating file until end of pipeline?

2003-12-01 Thread Hugh Field-Richards
Many thanks for this ... "mea culpa" as I had the write-source after the bit that does the updating DB in the generated file. Hugh F-R On Monday, December 1, 2003, at 12:05 pm, Upayavira wrote: Hugh, Looking into the source of the SWT, I can see that the source is written as soon as the end t