Namespace, Custom Transformer

2007-09-30 Thread Andre Juffer
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

RE: Custom Transformer

2007-03-01 Thread Schmitz, Jeffrey A
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: > > '

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
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

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

RE: Custom Transformer

2007-03-01 Thread Schmitz, Jeffrey A
; 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

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 be

RE: Custom Transformer

2007-03-01 Thread Schmitz, Jeffrey A
: 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 >

RE: Custom Transformer

2007-03-01 Thread Schmitz, Jeffrey A
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): 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

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): 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

RE: Custom Transformer

2007-03-01 Thread Schmitz, Jeffrey A
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

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 wou

Custom Transformer

2007-03-01 Thread Schmitz, Jeffrey 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. Thanks, Jeff - To unsubscribe, e-mail: [EMAIL PROT

RE: Problem in custom Transformer (migrating to 2.1.10)

2007-01-23 Thread Gary Larsen
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]

Re: Problem in custom Transformer (migrating to 2.1.10)

2007-01-19 Thread Steven D. Majewski
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

RE: Problem in custom Transformer (migrating to 2.1.10)

2007-01-19 Thread Gary Larsen
> > 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

Re: Problem in custom Transformer (migrating to 2.1.10)

2007-01-19 Thread Joerg Heinicke
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

RE: Problem in custom Transformer (migrating to 2.1.10)

2007-01-19 Thread Gary Larsen
> > 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

Re: Problem in custom Transformer (migrating to 2.1.10)

2007-01-19 Thread Joerg Heinicke
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'

RE: Problem in custom Transformer (migrating to 2.1.10)

2007-01-19 Thread Gary Larsen
> > > 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

Re: Problem in custom Transformer (migrating to 2.1.10)

2007-01-19 Thread Joerg Heinicke
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

Problem in custom Transformer (migrating to 2.1.10)

2007-01-19 Thread Gary Larsen
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:

Use of StringXMLizable in a custom transformer

2006-12-20 Thread Frank Rocholl
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

Re: Re: Including XML Tags in custom transformer

2006-12-07 Thread Frank Rocholl
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,

Re: Including XML Tags in custom transformer

2006-12-06 Thread Jeroen Reijn
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.

Re: Including XML Tags in custom transformer

2006-12-06 Thread Frank Rocholl
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

Re: Including XML Tags in custom transformer

2006-12-06 Thread Jeroen Reijn
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

Including XML Tags in custom transformer

2006-12-06 Thread Frank Rocholl
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

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-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
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

Re: Custom Transformer Problems

2006-08-02 Thread Omar Adobati
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

RE: Custom Transformer Problems

2006-08-02 Thread Jasha Joachimsthal
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

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, > > > > Reg

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

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-01 Thread Ard Schrijvers
> > 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

Custom Transformer Problems

2006-08-01 Thread Omar Adobati
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

Re: compiling a custom transformer

2005-06-10 Thread Lars Huttar
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

Re: compiling a custom transformer

2005-06-10 Thread Lars Huttar
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

Re: compiling a custom transformer

2005-06-10 Thread Geert Josten
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

compiling a custom transformer

2005-06-09 Thread Lars Huttar
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

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

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)) { >

custom transformer

2005-03-08 Thread Ben Anderson
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

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 bef

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

2004-09-09 Thread Javier Ramos
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

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 o

Custom transformer as a singleton

2004-08-26 Thread Javier Ramos
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

Re: Access the HttpSession within transform method of a custom transformer

2004-08-26 Thread Javier Ramos
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

Re: Access the HttpSession within transform method of a custom transformer

2004-08-26 Thread Ralph Goers
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

Access the HttpSession within transform method of a custom transformer

2004-08-26 Thread Javier Ramos
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

Re: RV: Custom transformer

2004-08-25 Thread Lionel Crine
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

RE: Custom transformer

2004-08-17 Thread Perez Carmona, David
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 > > > >

RV: Custom transformer

2004-08-17 Thread Perez Carmona, David
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:

RE: Custom transformer

2004-08-16 Thread Perez Carmona, David
-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

RE: Custom transformer

2004-08-13 Thread JACOB, ERIC
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

RE: Custom transformer

2004-08-12 Thread Perez Carmona, David
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

RE: Custom transformer

2004-08-11 Thread JACOB, ERIC
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

RE: Custom transformer

2004-08-10 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

2004-08-10 Thread JACOB, ERIC
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

Re: Runtime error when custom transformer followed by XSL transform

2004-06-12 Thread Joerg Heinicke
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

Runtime error when custom transformer followed by XSL transform

2004-06-11 Thread Jeff Potts
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

Re: trouble passing parameter to custom transformer

2004-03-15 Thread Jorg Heymans
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

Re: trouble passing parameter to custom transformer

2004-03-14 Thread Francesco Rossi \(Milano\, Italy\)
> 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

Re: trouble passing parameter to custom transformer

2004-03-13 Thread Jorg Heymans
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

trouble passing parameter to custom transformer

2004-03-13 Thread Francesco Rossi \(Milano\, Italy\)
... 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