Hi All,
I have some trouble with a custom transformer that needs to create a DOM
document from SAX events. This transformer (XACMLTransformer) is used
to send a XACML request to a so-called Policy Decision Point PDP (see
http://www.oasis-open.org/committees/tc_home.php?wg_abbrev=xacml for
ROTECTED]
Sent: 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:
>
> '
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
AVA_HOME/lib and javac 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 c
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
; was unexpected
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
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 be
: Thursday, March 01, 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
>
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):
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();
Stri
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):
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 pr
t: Re: 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 transfo
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 wou
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.
Thanks,
Jeff
-
To unsubscribe, e-mail: [EMAIL PROT
I was able to get the transformer working by cutting out the java content
handler.
Thanks for your advice with this.
Gary
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
On Jan 19, 2007, at 5:15 PM, Joerg Heinicke wrote:
When I put LogTransformer before the custom transformer I can see
logging,
but when it is after the custom transformer there is no logging.
I think
this shows there something wrong with my transformer.
Perhaps it was too simple, but
>
> What happens with the decorator? Somewhere it must be set as new content
> handler. Otherwise it would not do anything (also no harm). It would be
> interesting to see if the sax event methods gets called in your
> transformer and later in the decorator. Somewhere they must get lost
> before r
On 19.01.2007 23:03, Gary Larsen wrote:
When I put LogTransformer before the custom transformer I can see logging,
but when it is after the custom transformer there is no logging. I think
this shows there something wrong with my transformer.
Perhaps it was too simple, but acceptable in 2.1.7
> > Initially I wasn't using an updated cocoon.xconf, but the problem still
> > exists. Any ideas how to debug this?
>
> There is a transformer that only logs the sax events: LogTransformer.
>
Thanks for your help.
When I put LogTransformer before the custom tra
On 19.01.2007 22:12, Gary Larsen wrote:
XML Parsing Error: no element found
Location: http://notebook1:8080/netvisn/
Line Number 1, Column 1:
The transformer is processing the sax events but it seems that nothing
is
being delivered back to the pipeline.
It's a parsing error, so I'd guess it'
>
> > XML Parsing Error: no element found
> > Location: http://notebook1:8080/netvisn/
> > Line Number 1, Column 1:
> >
> > The transformer is processing the sax events but it seems that nothing
> is
> > being delivered back to the pipeline.
>
> It's a parsing error, so I'd guess it's not the t
On 19.01.2007 18:58, Gary Larsen wrote:
XML Parsing Error: no element found
Location: http://notebook1:8080/netvisn/
Line Number 1, Column 1:
The transformer is processing the sax events but it seems that nothing is
being delivered back to the pipeline.
It's a parsing error, so I'd guess i
I'm upgrading Cocoon from 2.1.7 to 2.1.10 and having a problem with a custom
Transformer.
This is the error returned in the browser (with XML serializer after the
transformer):
XML Parsing Error: no element found
Location: http://notebook1:8080/netvisn/
Line Number 1, Column 1:
Hi all,
I've tried to use the class StringXMLizable to insert xml data
into the sax stream. When I serialize the stream
without further transformation everything works fine.
When I tried to transform the output stream with xslt stylesheet
( This is StringXMLizable " +
" this
Hi Jeroen,
many thanks. That is exactly what I need.
Best Regards
Frank
Original-Nachricht
Datum: Wed, 06 Dec 2006 17:33:04 +0100
Von: Jeroen Reijn <[EMAIL PROTECTED]>
An: users@cocoon.apache.org
Betreff: Re: Including XML Tags in custom transformer
> Hi Frank,
ing in the example
to be send as SAX.
Best whishes
Frank
Original-Nachricht
Datum: Wed, 06 Dec 2006 15:57:45 +0100
Von: Jeroen Reijn <[EMAIL PROTECTED]>
An: users@cocoon.apache.org
Betreff: Re: Including XML Tags in custom transformer
Hi Frank,
yes this is possible.
ocoon.apache.org
Betreff: Re: Including XML Tags in custom transformer
> Hi Frank,
>
> yes this is possible.
> You need to make sure that the the XML is send as SAX and not as a String.
>
> Your problem lies here: super.characters(externalXML.toCharArray(), 0,
> external
Hi Frank,
yes this is possible.
You need to make sure that the the XML is send as SAX and not as a String.
Your problem lies here: super.characters(externalXML.toCharArray(), 0,
externalXML.length()); You pass the data as a characters into the SAX,
so it won't be XML but text from now on.
As
Dear all,
I'ld like to create my own transformer, that have to
do some work and have also include xml tags, that comes
directly from other libraries. For testing I've created
a method getExternalXMLData that returns some nodes.
When I use the transformer in a pipeline transforming
the simple xm
- 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
-
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
ache.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
> Transform
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]> wr
t; 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 j
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,
> >
> > Reg
>
> > 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
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,
>
> 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
WEB-INF/classes/np
Good Morning,
I have write a simple stupid custom transformer that just keep a tag
and change it in one i like (based on the sample found to the wiki).
I have configured the sitemap.xmap as follow:
===
[...]
[...]
[...]
[...]
===
and then
Geert Josten wrote:
Hi,
I typically use an Ant build file like the following. It assumes
sources are located in a org/ subdir, custom libs are located in lib/,
and that a environment variable named COCOON points to the base of the
Cocoon web application..
Cheers,
Geert
Thank you, thank y
Geert Josten wrote:
Hi,
I typically use an Ant build file like the following. It assumes
sources are located in a org/ subdir, custom libs are located in lib/,
and that a environment variable named COCOON points to the base of the
Cocoon web application..
Cheers,
Geert
Thanks! I'll try t
Hi,
I typically use an Ant build file like the following. It assumes sources are located in a org/
subdir, custom libs are located in lib/, and that a environment variable named COCOON points to the
base of the Cocoon web application..
Cheers,
Geert
Build the cocoon libraries usin
Hello,
I've been wanting to use the ValidationTransformer and
ValidationTransformerReporter described on the wiki at
http://wiki.apache.org/cocoon/ValidationTransformer
The source code is given in some java files but I'm having trouble
compiling them.
In particular, the code has imports for var
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 )
> >
Ben Anderson wrote:
> public void endTransformingElement( String uri,
> String name,
> String raw )
> throws ProcessingException, IOException, SAXException {
> if(XQUERY_TAG.equals(name)) {
>
Hi,
I'm writing a custom transformer which extends AbstractSaxTransformer
(which I think is irrelevant to my question). I think my question is
geared more towards sax or perhaps xerces, but hopefully someone can
help...
public void endTransformingElement( Strin
> 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 bef
Hi all,
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
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 o
sitemap that will do the
following:
1.- with a RequestGenerator, get html
form data as xml
2.- with an XSL transformer, make a nice XML
representation of the request.
3.- with a custom transformer, transform the
XML request into an XML response
4.- with an XSL transformer, represent the
Thanks, the pointer to WriteDOMSessionTransformer was very useful...
- Original Message -
From: "Ralph Goers" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, August 26, 2004 7:34 PM
Subject: Re: Access the HttpSession within transform method of a cust
m the ObjectModel and then get the HttpSession.
Javier Ramos said:
> Hallo,
>
> I am trying to build a custom transformer that will need access to
> session data.
> I would like to know if this is at all possible.
> I thought of using the ReadDOMSession and WriteDOMSess
Hallo,
I am trying to build a custom
transformer that will need access to session data.
I would like to know if this is
at all possible.
I thought of using the
ReadDOMSession and WriteDOMSession transformers, but I want to store in the
session objects which I cannot serialize
lp.
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 an example? I don't fully understand your problem.
The XML file is already parsed
I think that in the ouput SAX stream, it is missing the startDocument() and
endDocument() calls.
> -Mensaje original-
> De: Perez Carmona, David
> Enviado el: martes, 17 de agosto de 2004 14:45
> Para: Cocoon (E-mail)
> Asunto: RV: Custom transformer
>
>
>
>
x not bound error when I execute it. Any 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:
-Mensaje original-
> De: JACOB, ERIC [mailto:[EMAIL 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:
>
> publi
a
prefix not bound error when I execute it. Any 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]
S
4 14:06
> Para: [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
the setConsumer and
write a custom 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 transfo
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
Hi all,
I'm writing a custom transformer that need to parse an entire xml file
before doing something with it. The sitemap should look like that:
So, I want to send foo.xml to a remote server and return the response back
to the pipeline to seriali
On 11.06.2004 21:20, Jeff Potts wrote:
I am a new Cocoon developer and new to SAX. I have
developed my first custom Transformer. The transformer
works great when it is followed by an XML Serializer
but it gets a runtime error when it is followed by an
XSL Transformer.
My transformer queries a back
I am a new Cocoon developer and new to SAX. I have
developed my first custom Transformer. The transformer
works great when it is followed by an XML Serializer
but it gets a runtime error when it is followed by an
XSL Transformer.
My transformer queries a back-end system which returns
XML. I want
sorry about that - I know it's a stupid question and I apologize in advance - have mercy, I'm a newbie
>where do I find the source files of actual implementations of
components and everything?
no need to be so humble :=) We all have to start somewhere.
I mean, so far I've always looked throug
> you can just override setup() in your transformer and take parameters
> from there.
yes, the problem was I completely misunderstood the usage of the Parameterizable
interface, in fact!
now it works, thanks anyway
> Have a look at some existing transformers and see how they do it.
sorry about
you can just override setup() in your transformer and take parameters
from there. Have a look at some existing transformers and see how they
do it.
Francesco Rossi (Milano, Italy) wrote:
... I have trouble passing a parameter to my custom transformer
here is the code to the transformer (which
... I have trouble passing a parameter to my custom transformer
here is the code to the transformer (which is pretty straightforward: it just changes the attribute containing an URL, in elements of some given kinds):
package mypackage.transformation;
import
69 matches
Mail list logo