Consider implementing not a generator, but a Source. Source have more
wider application area than generators.

Regarding your question, take a look at the XMLDBSource and
XMLDBGenerator - this is the connector to the any XML:DB compliant
database, you can use this as a starting point.

> When accessing this page I get a :
> UnnamedSelector: ComponentSelector could not find the component for
hint: exist
> From Cocoon.

Stacktrace provide also lots of information for a developer. Send in
message with the stacktrace next time. Also, take a look at the Cocoon
logs.

Vadim

-----Original Message-----
From: Christofer Dutz [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, February 12, 2002 6:17 PM
To: [EMAIL PROTECTED]
Subject: Creating An eXist Generator for Cocoon

Hi, 
 
I am quite new to this side of the Cocoon project ( usually I was just
using Cocoon ), so please be patient.
 
A few weeks ago I joined the group developing the eXist Xml-Database and
because of my experience with Cocoon I was assigned the task of
integrating eXist into Cocoon. After finishing all work for being able
to start/stop/access eXist locally ( not over HTTP or RPC ), I have
started creating a new Generator called
“org.apache.cocoon.generation.ExistGenerator” ( If I am not allowed to
place the class there … please tell me. I just thought that it belonged
there ). 
After finishing a first prototype of the generator, I wanted to test it.
So I added following part to the Sitemap where the generators are
defined :
<map:generator name="exist"
src="org.apache.cocoon.generation.ExistGenerator"/> 
This didn’t seem to cause any problems … so I added a simple match in
the standard sample pipeline ( I am using a totally fresh installation
of Tomcat and Cocoon 2 ) “
<map:match pattern="exist">
       <map:generate type="exist" src="xPathExpression"/>
       <map:serialize/>
</map:match>
When accessing this page I get a :
UnnamedSelector: ComponentSelector could not find the component for
hint: exist
>From Cocoon. 
Does this mean that the class couldn’t be found, or could there be a
problem with the class itself ? 
My Generator extends the AbstractGenerator class. I hope this is the
right way. If not, could someone please send me a small tutorial with
the steps needed to create a new Generator ? 
 
Thanx in advance, 
 
Christofer Dutz
C-Ware IT-Service
Inh. Christofer Dutz
Goethestr. 18
64372 Ober-Ramstadt
www.c-ware.de
 


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

Reply via email to