I'm looking for something: 1) more lightweight 2) uses xml markup syntax 3) is oriented around process/workflow -- gluing separate components together, but client components, not distributed components.
Going the Javascript route doesn't make a lot of sense to me because MyXaml can already do runtime execution of C#, VB, and J#. I'm looking for something that acts like a lightweight Interpreter Pattern within the context of the xml syntax. Something like (off-the-cuff): <function name="Login"> <OpenDialog name="LoginDlg"/> <if DlgResult="OK"> <ValidateLogin args="1:{username} 2:{password}"/> <if ValResult="true"> <CloseDialog name="LoginDlg"/> <else> <ShowError>Invalid login. Try again.</ShowError> </else> </if> </if> </function> Where OpenDialog, CloseDialog, ValidateLogin, CloseDialog are methods defined in the application, and things like DlgResult and ValResult are data that application manages in a data pool. As the example illustrates, the script would use reflection to invoke application specific methods. Using method attributes, you could provide additional information, for example exposing only methods with an appropriate "XmlScriptable" attribute. Probably a separate definition table would define which classes were instantiated that provided the supporting methods. This would allow you to extend/modify the application by changing the class being instantiated. The nifty thing about this is that the scripting engine becomes a Mediator Pattern and allows methods to remain completely decoupled from one another--no object entanglement! With such an implementation, "in the field" changes are a lot easier too--no code recompilation, etc. And since your building on (theoretically) proven working methods, the high level scripting calls are a lot more reliable than writing custom solutions for every application. It's sort of like Lego's. You build an application from provably correct building blocks. Marc -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Charles Goodwin Sent: Tuesday, April 20, 2004 9:30 PM To: [EMAIL PROTECTED] Subject: Re: [xul-talk] I'm looking for an xml based scripting language On Tue, 2004-04-20 at 21:23 -0400, Marc Clifton wrote: > Has anyone done anything like this or could point me in the right > direction? We use Javascript to great effect. -- - Charlie Charles Goodwin <[EMAIL PROTECTED]> Online @ www.charlietech.com ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ xul-talk mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xul-talk ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ xul-talk mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xul-talk