On Mon, 31 Mar 2003, Christian Jaeger wrote:
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?
Seems like you want the * param type here.
I'll suggest that to my colleague. We want to be able to specify a list of articles, either by selecting one of them by exact name, or by requesting a list of the most recent ones, or by search argument, and so on. And those selections should (at least that's what would be cool) be intermix-able freely. Example (which would return a list of stories (or their xml contents, respecively) like (Somestory, Secondstory, firststoryoftoday, secondstoryoftoday, thirdstoryoftoday, Otherstory)):
<article:frontcontent section="news">
<article:select>
<by_name>Somestory-e</by_name>
<by_name>Secondstory-e</by_name>
<by_sameday_max><info:nstories/></by_sameday_max>
<by_name>Otherstory-e</by_name>
</article:select>
</article:frontcontent section="news">Not sure the above would work though, would maybe have to be:
<article:frontcontent section="news">
<article:select>
<by><type>name</type><value>Somestory-e</value></by>
<by><type>name></type><value>Secondstory-e</value></by> <by><type>sameday_max</type><value><info:nstories/></value></by>
<by><type>name</type><value>Otherstory-e</value></by>
</article:select>
</article:frontcontent section="news">(Hmm, starts to be wordy)
Christian.
-- <!-- Matt --> <:->get a SMart net</:-> Spam trap - do not mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
