> From: Geoff Howard [mailto:[EMAIL PROTECTED]]
> 
> Looks like the variable substitution is not available in the type
attribute

Substitution is *not* supported in the type attribute. And this is not
planned to be supported in the future.


Vadim


> - you'd have to confirm that in the source.  Are you sure you want to
use
> "type" - that calls a named generator like "file" or "server-pages"
most of
> which need a src parameter to tell it what to work with.  Do you have
a lot
> of custom generators?
> 
> I'd suspect that what you meant to use was ... <map:generate
src="{1}"/> ...
> 
> That will look for the file matched by **.  If they are xsp files, you
would
> want to do <map:generate type="serverpages" src="{1}"/>
> 
> Geoff Howard
> 
> > -----Original Message-----
> > From: David LAGARDERE [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, June 06, 2002 4:30 AM
> > To: [EMAIL PROTECTED]
> > Subject: Generator type matching
> >
> >
> > Hello.
> >
> > I would like to use a generator depending on my
> > request
> > without having to write a matcher for each :
> >
> > <map:pipeline>
> > <map:match pattern="dynamic/**">
> > <map:generate type="{1}"/>
> > <map:serialize type="xml"/>
> > </map:match>
> > </map:pipeline>
> >
> > Of course, the generator mathing {1} is declared
> > in the generators section.
> >
> > This doesn't work and I get the exception
> > "org.apache.avalon.framework.component.ComponentException:
> > UnnamedSelector: ComponentSelector could not find the
> > component for hint: {1}"
> >
> > Any Idea ?
> >
> > Thanks in advance.
> >
> > David LAGARDERE
> >
> >
> >
> >
> > ___________________________________________________________
> > Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
> > Yahoo! Mail : http://fr.mail.yahoo.com
> >
> >
---------------------------------------------------------------------
> > 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]>
> >
> 
> ---------------------------------------------------------------------
> 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]>



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