> From: William Brogden [mailto:[EMAIL PROTECTED]]
> 
> > -----Original Message-----
> > From: Vadim Gritsenko [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, April 15, 2002 2:30 PM
> > To: [EMAIL PROTECTED]
> > Subject: RE: ScriptGenerator problem
> >
> >
> > > From: William Brogden [mailto:[EMAIL PROTECTED]]
> > >
> > >
> > > I am attempting to add Python script processing capability to the
> > > ScriptGenerator using jython.
> > >
> > > I placed jython.jar in the cocoon/WEB-INF/lib directory
> > > Cocoon version is 2.0.1 dated 2/26/02
> > > Erased the work directory before starting
> > >
> > > Here is my modified "script" generator entry in sitemap.xmap:
> > >
> > > <map:generator name="script"
> > > src="org.apache.cocoon.generation.ScriptGenerator"
> > >     logger="sitemap.generator.script" label="content,data" >
> > >     <add-languages>
> > >       <language name="python"
> > src="org.python.util.PythonInterpreter">
> > >         <extension map:value="py"/>
> >
> > map:value is neither supported nor valid construct anymore. Try
this:
> >
> >   <extension>py</extension>
> >
> >
> > Vadim
> 
> Ah - that is the nomenclature that appears in the Javadocs for
> org.apache.cocoon.generation.ScriptGenerator so I used it.
> 
> On further fooling around I find that ScriptGenerator seems
> to come already configured for Python and you can access the
> docs/samples/scripts/hello.py file.
> 
> But where in the world does that configuration occur? Is it
> built in to BSF?

Kind of:

BSFManager.getLangFromFilename() does the trick.

Vadim

 
> WBB
> 


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

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

Reply via email to