Re: Custom Transformer

2007-03-01 Thread Grzegorz Kossakowski
Schmitz, Jeffrey A napisał(a): Is there a simple implementation of a Custom Transformer using AbstractSAXTransformer anywhere? Would love to see just a Hello World program, but can't seem to find one. The most simple transformer I can think of is StripNamespacesTransformer[1]. It would be

RE: Custom Transformer

2007-03-01 Thread Schmitz, Jeffrey A
: Custom Transformer Schmitz, Jeffrey A napisał(a): Is there a simple implementation of a Custom Transformer using AbstractSAXTransformer anywhere? Would love to see just a Hello World program, but can't seem to find one. The most simple transformer I can think

Re: Custom Transformer

2007-03-01 Thread Grzegorz Kossakowski
Schmitz, Jeffrey A napisał(a): OK (you asked for it), basically I have some xml that needs to be massaged first by a simple xslt before being fed into my transformer, and then once my transformer is done, I need to result to be massaged again with another xslt. My transformer relies on some

RE: Custom Transformer

2007-03-01 Thread Schmitz, Jeffrey A
StringXMLizable(content); xmlStr.toSAX(contentHandler); } } -Original Message- From: Grzegorz Kossakowski [mailto:[EMAIL PROTECTED] Sent: Thursday, March 01, 2007 9:22 AM To: users@cocoon.apache.org Subject: Re: Custom Transformer Schmitz, Jeffrey

Re: Custom Transformer

2007-03-01 Thread Grzegorz Kossakowski
Schmitz, Jeffrey A napisał(a): Thanks! So something like this (did I get the SaxBuffer stuff right?): public class Mytrans extends AbstractTransformer implements CacheableProcessingComponent { XMLConsumer tempConsumer; SaxBuffer mySaxConsumer = new SaxBuffer();

RE: Custom Transformer

2007-03-01 Thread Schmitz, Jeffrey A
@cocoon.apache.org Subject: Re: Custom Transformer Schmitz, Jeffrey A napisał(a): Thanks! So something like this (did I get the SaxBuffer stuff right?): public class Mytrans extends AbstractTransformer implements CacheableProcessingComponent { XMLConsumer tempConsumer

RE: Custom Transformer

2007-03-01 Thread Schmitz, Jeffrey A
, 2007 10:36 AM To: users@cocoon.apache.org Subject: Re: Custom Transformer Schmitz, Jeffrey A napisał(a): Thanks! So something like this (did I get the SaxBuffer stuff right?): public class Mytrans extends AbstractTransformer implements CacheableProcessingComponent

Re: Custom Transformer

2007-03-01 Thread Grzegorz Kossakowski
Schmitz, Jeffrey A napisał(a): I think it's pretty close (see below), but I'm getting the following exception when running from Tomcat: java.lang.NoClassDefFoundError: org/apache/cocoon/caching/CacheableProcessingComponent I was going to build and install the latest from Cocoon but I can't

RE: Custom Transformer

2007-03-01 Thread Schmitz, Jeffrey A
-Original Message- From: Grzegorz Kossakowski [mailto:[EMAIL PROTECTED] Sent: Thursday, March 01, 2007 1:07 PM To: users@cocoon.apache.org Subject: Re: Custom Transformer Schmitz, Jeffrey A napisał(a): I think it's pretty close (see below), but I'm getting the following exception when

RE: Custom Transformer

2007-03-01 Thread Schmitz, Jeffrey A
OK, got the build to work, I was using double quotes. I'll have to set it up and try with my transformer. Jeff -Original Message- From: Schmitz, Jeffrey A Sent: Thursday, March 01, 2007 1:17 PM To: users@cocoon.apache.org Subject: RE: Custom Transformer Here's what I did to try

RE: Custom Transformer

2007-03-01 Thread Schmitz, Jeffrey A
is in JAVA_HOME/bin Thanks, Jeff -Original Message- From: Grzegorz Kossakowski [mailto:[EMAIL PROTECTED] Sent: Thursday, March 01, 2007 1:07 PM To: users@cocoon.apache.org Subject: Re: Custom Transformer Schmitz, Jeffrey A napisał(a): I think it's pretty close (see below), but I'm getting

Re: Custom Transformer

2007-03-01 Thread Grzegorz Kossakowski
Schmitz, Jeffrey A napisał(a): Sorry to be a pain, but the build still isn't working. What exactly does the JAVA_HOME need to be set to? I'm setting it to: 'C:\Program Files\Java\jdk1.5.0_07' But it says it can't find tools.jar, or the javac compiler. The folder does exist, and tools.jar is

RE: Custom Transformer

2007-03-01 Thread Schmitz, Jeffrey A
: Thursday, March 01, 2007 2:01 PM To: users@cocoon.apache.org Subject: Re: Custom Transformer Schmitz, Jeffrey A napisał(a): Sorry to be a pain, but the build still isn't working. What exactly does the JAVA_HOME need to be set to? I'm setting it to: 'C:\Program Files\Java\jdk1.5.0_07' But it says

Re: Custom Transformer Problems

2006-08-02 Thread Omar Adobati
On 8/1/06, Ard Schrijvers [EMAIL PROTECTED] wrote: In WEB-INF/lib you put your jars. copy your TransformerTest.class in WEB-INF/classes/nptl/test/TransformerTest.class, restart your cocoon app. That should do the job, Regards Ard Now it works good, but I have to put my classes, or my JARs,

RE: Custom Transformer Problems

2006-08-02 Thread Ard Schrijvers
In WEB-INF/lib you put your jars. copy your TransformerTest.class in WEB-INF/classes/nptl/test/TransformerTest.class, restart your cocoon app. That should do the job, Regards Ard Now it works good, but I have to put my classes, or my JARs, into the $COCOON_HOME/WEB-INF folder.

Re: Custom Transformer Problems

2006-08-02 Thread Omar Adobati
I still tried your solution, but it didn't work... On 8/2/06, Ard Schrijvers [EMAIL PROTECTED] wrote: In WEB-INF/lib you put your jars. copy your TransformerTest.class in WEB-INF/classes/nptl/test/TransformerTest.class, restart your cocoon app. That should do the job, Regards Ard

RE: Custom Transformer Problems

2006-08-02 Thread Jasha Joachimsthal
@cocoon.apache.org Subject: Re: Custom Transformer Problems I still tried your solution, but it didn't work... On 8/2/06, Ard Schrijvers [EMAIL PROTECTED] wrote: In WEB-INF/lib you put your jars. copy your TransformerTest.class in WEB-INF/classes/nptl/test/TransformerTest.class

Re: Custom Transformer Problems

2006-08-02 Thread Omar Adobati
[mailto:[EMAIL PROTECTED] Sent: woensdag 2 augustus 2006 11:41 To: users@cocoon.apache.org Subject: Re: Custom Transformer Problems I still tried your solution, but it didn't work... On 8/2/06, Ard Schrijvers [EMAIL PROTECTED] wrote: In WEB-INF/lib you put your jars. copy your

Re: Custom Transformer Problems

2006-08-02 Thread Jeroen Reijn
: Custom Transformer Problems I still tried your solution, but it didn't work... On 8/2/06, Ard Schrijvers [EMAIL PROTECTED] wrote: In WEB-INF/lib you put your jars. copy your TransformerTest.class in WEB-INF/classes/nptl/test/TransformerTest.class, restart your cocoon app

Re: Custom Transformer Problems

2006-08-02 Thread Omar Adobati
On 8/2/06, Jeroen Reijn [EMAIL PROTECTED] wrote: Just a couple of more questions: - were did you put the .jar file now? The jar file now is into the $COCOON_HOME/WEB-INF/lib folder - does your jar file contain the right structure? yes, it contain the right structure... it works - does it

Re: Custom Transformer Problems

2006-08-02 Thread Jeroen Reijn
- does it give you any errors? no, errors... if I put it into $COCOON_HOME/myApp/WEB-INF/lib folder it doen't work... no errors back That this doesn't work is correct. I think it has something to do with that Cocoon by itself is an appliction with it's own WEB-INF folder. Reijn

RE: Custom Transformer Problems

2006-08-01 Thread Ard Schrijvers
/snip and then I create the WEB-INF/lib folder and just copied into it the class TransformerTest.class using the folder structure nptl/test/ (so it results as WEB-INF/lib/nptl/test/TransformerTest.class). In WEB-INF/lib you put your jars. copy your TransformerTest.class in

RE: custom transformer

2005-03-08 Thread Conal Tuohy
Ben Anderson wrote: public void endTransformingElement( String uri, String name, String raw ) throws ProcessingException, IOException, SAXException { if(XQUERY_TAG.equals(name)) {

Re: custom transformer

2005-03-08 Thread Ben Anderson
beautiful - thanks! On Wed, 9 Mar 2005 15:00:18 +1300, Conal Tuohy [EMAIL PROTECTED] wrote: Ben Anderson wrote: public void endTransformingElement( String uri, String name, String raw )

RE: Custom transformer - ho to get in / out Document from previous ransfromations

2004-09-09 Thread Huber, Daniel
I am writing a custom transformer that needs to extract some fragments from previous transformation steps in the running pipeline. Does anyone know how to access, from a sitemap component, the input / output to the transform method of the transformers that were applied before? Hi Javier,

Re: Custom transformer as a singleton

2004-08-26 Thread Ralph Goers
I don't believe there is any need for a custom transformer. Option 1 - use pipeline aggregation and use a custom generator to convert your object to XML. I am doing that today with betwixt. Option 2 - use flowscript or java flow. Use cocoon forms. Use the forms binding framework. I believe option

RE: Custom transformer

2004-08-17 Thread Perez Carmona, David
: [EMAIL PROTECTED] Asunto: RE: Custom transformer The problem is not really the error... I just need some suggestions on how I could parse an entire xml file (generate by the xml generator) before doing some action with it (I don't care about what is inside the xml document

RE: Custom transformer

2004-08-16 Thread Perez Carmona, David
PROTECTED] Enviado el: lunes, 16 de agosto de 2004 15:29 Para: Perez Carmona, David Asunto: Re: Custom transformer Sorry, maybe I used the wrong term... Here an example: public class CustomTransformer extends AbstractSAXTransformer { protected Properties format; public

RE: Custom transformer

2004-08-13 Thread JACOB, ERIC
ideas? What happends if I have more than one namespace? Thanks for your help. Eric -Original Message- From: Perez Carmona, David [mailto:[EMAIL PROTECTED] Sent: Thursday, August 12, 2004 3:00 AM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: Custom transformer Can you put

RE: Custom transformer

2004-08-12 Thread Perez Carmona, David
PROTECTED] Asunto: RE: Custom transformer The problem is not really the error... I just need some suggestions on how I could parse an entire xml file (generate by the xml generator) before doing some action with it (I don't care about what is inside the xml document, I just want to sent

RE: Custom transformer

2004-08-11 Thread Perez Carmona, David
Could you please provide the full call stack? -Mensaje original- De: JACOB, ERIC [mailto:[EMAIL PROTECTED] Enviado el: martes, 10 de agosto de 2004 21:47 Para: [EMAIL PROTECTED] Asunto: Custom transformer Hi all, I'm writing a custom transformer that need to parse an entire

RE: Custom transformer

2004-08-11 Thread JACOB, ERIC
contentHandler, but maybe it exists a better way... Thanks for your help, Eric -Original Message- From: Perez Carmona, David [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 11, 2004 2:36 AM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: Custom transformer Could you please provide