On Monday 31 March 2003 01:35 pm, Christian Jaeger wrote: I'm not sure I understand the 'by' part... Order is unimportant in taglib inputs, the parameters are supplied by name (at least with TaglibHelper, there are other possiblities).
If you want to supply the OUTPUT of one tag to another, you would just use <xsp:expr>... Most taglibs should 'do the right thing' already though, so <othertaglib:value/> as a child of a tag which is an argument to one of your taglibs should supply the output of <othertaglib:value/> as an input to your tag. You are correct that attributes cannot be dynamic, there is no real way to do that I guess, though perhaps you could build a taglib that generated code which interpreted attribute values and returned the results. I suspect its just not something anyone ever needed. Anyway, I THINK your example will work if you're EXPORT_TAGLIBS has an entry like: foofetcher(@select) in which case you should end up with an array ref as your 1st and only input parameter, which points to an array of strings, though I'd test that. You might also want to try out foofetcher(%select) which gives you the whole thing as a hashref (though in that case you may need to wrap your select tags inside a single parent tag within foofetcher to get everything to work right.). > It would be cool if one could do something like: > > <sometaglib:foofetcher> > <sometaglib:select by="foo"><othertaglib:value/></sometaglib:select> > <sometaglib:select by="bar">Bleh</sometaglib:select> > <sometaglib:select > by="foo"><othertaglib:othervalue/></sometaglib:select> > </sometaglib:foofetcher> > > i.e. declare a list of inputs (with possibly dynamic values), and get > those inputs in the same order as func's arguments. > > Currently we get a syntax error in the TaglibHelper-generated perl code. > Only > <sometaglib:select by="bar" value="Bleh"/> > seems to be supported, but that does not allow dynamic values, right? > > Christian. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] -- Tod G. Harter Giant Electronic Brain --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
