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
: 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
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
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
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();
@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
, 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
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
-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
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
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
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
: 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
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,
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.
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
@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
[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
: 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
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
- 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
/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
Ben Anderson wrote:
public void endTransformingElement( String uri,
String name,
String raw )
throws ProcessingException, IOException, SAXException {
if(XQUERY_TAG.equals(name)) {
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 )
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,
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
: [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
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
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
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
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
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
32 matches
Mail list logo