Re: Writing a custom transformer

2002-10-11 Thread Vadim Gritsenko

simo kauranen wrote:

Now I've written and compiled a transformer. I put the
.class file where I found the other transformer .class
files (not under tomcat) and defined the transformer
in the sitemap (and restarted tomcat). I got
ClassNotFoundException. 

Could someone tell where I should put the .class file
that cocoon would find it?


tomcat/webapps/cocoon/WEB-INF/classes/my/package/MyTransformer.class

Vadim


Simo K.
  





-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:   [EMAIL PROTECTED]




RE: Writing a custom transformer

2002-10-10 Thread Piroumian Konstantin

 From: simo kauranen [mailto:[EMAIL PROTECTED]] 
 
 Hi,
 
 Maybe I'm a little dumb but I can't figure out from
 the source codes how I should write my own
 transformer. Several questions remain:
 
 Which functions should a transformer implement?

Transformer is an implementation of a SAX ContentHandler and inherits all
the methods like: startDocument(), startElement(), ..., endElement(),
endDocument(). (For the complete list see SAX2 specification or the
AbstractSAXTrasnformer).

You decide depending on the task you want to solve with your transformer
which ones to override to get the needed result.

The rest of the methods that usually are present, like: configure(),
setup(), recycle(), dispose() are lifecycle interfaces implementations from
Avalon. See http://jakarta.apache.org/avalon for details.

Konstantin

 
 Which function takes in the SAX stream and which emits
 it forward and how? 
 
 Where the changes to the SAX are made? I went through
 among others the TraxTransformer source code but I
 couldn't find the line where the xslt transformation
 was made?
 
 Are loggers necessary for a transformer?
 
 Could someone help with these? Thanks!
 
 
 Simo K.
 
 
 __
 Do You Yahoo!?
 Everything you'll ever need on one web page
 from News and Sport to Email and Music Charts http://uk.my.yahoo.com
 
 -
 Please check that your question  has not already been answered in the
 FAQ before posting. http://xml.apache.org/cocoon/faq/index.html
 
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail:   [EMAIL PROTECTED]
 

-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:   [EMAIL PROTECTED]




RE: Writing a custom transformer

2002-10-10 Thread simo kauranen

Now I've written and compiled a transformer. I put the
.class file where I found the other transformer .class
files (not under tomcat) and defined the transformer
in the sitemap (and restarted tomcat). I got
ClassNotFoundException. 

Could someone tell where I should put the .class file
that cocoon would find it?

Simo K.

__
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com

-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:   [EMAIL PROTECTED]




RE: Writing a custom Transformer?

2002-10-09 Thread Piroumian Konstantin

 From: simo kauranen [mailto:[EMAIL PROTECTED]] 
 
 Hi,
 
 Does anyone happen to know where I could find a simple
 and thorough example of writing a custom transformer.
 I've searched all over the net but haven't found
 anything detailed enough.

Take a look at the Cocoon transformers' source:
org.apache.cocoon.transformation.*;
Not that they are all simple, but you'll get the idea.

Konstantin

 
 Thanks for tips!
 
 Simo K.
 
 __
 Do You Yahoo!?
 Everything you'll ever need on one web page
 from News and Sport to Email and Music Charts http://uk.my.yahoo.com
 
 -
 Please check that your question  has not already been answered in the
 FAQ before posting. http://xml.apache.org/cocoon/faq/index.html
 
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail:   [EMAIL PROTECTED]
 

-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:   [EMAIL PROTECTED]