Comments in line... ...ant
On Fri, Jun 27, 2008 at 9:56 PM, Jean-Sebastien Delfino < [EMAIL PROTECTED]> wrote: > Ramkumar R wrote: > >> Thanks Simon, I understand the purpose here. >> >> On 6/24/08, Simon Laws <[EMAIL PROTECTED]> wrote: >> >>> On Tue, Jun 24, 2008 at 11:54 AM, Ramkumar R <[EMAIL PROTECTED]> >>> wrote: >>> >>> The schema for ScriptImplementation >>>> >>> (tuscany-sca-implementation-script.xsd) >>> >>>> has this.... >>>> >>>> <element name="implementation.script" type="t:ScriptImplementation"/> >>>> <complexType name="ScriptImplementation"> >>>> <complexContent mixed="true"> >>>> <extension base="sca:Implementation"> >>>> >>>> here *mixed="true"* attributes specifies to allow character data to >>>> >>> appear >>> >>>> between the child elements of this complexType element. >>>> >>>> Do we really need this for ScriptImplementation? If so, like to know at >>>> what >>>> scenarios we would use this? >>>> >>>> -- >>>> Thanks & Regards, >>>> Ramkumar Ramalingam >>>> >>>> Hi Ram >>> >>> I think the intention was to allow the text of the script to appear >>> in-line >>> within the implementation.script element in the text of the .composite >>> file. >>> I don't believe this is actually implemented yet though. >>> >> It is implemented, theres a testcase showing it in the extension, JavaScripInlineHelloWorld.composite, and its documented on the website page at http://tuscany.apache.org/sca-java-implementationscript.html > >>> Regards >>> >>> Simon >>> >> > and I'm not sure that it's a good idea as it'll introduce confusion between > an implementation (the script) and an instance of that implementation (the > component), preventing that script asset to be reused by another component. > > The website page does have a note pointing out inline scripts may not always be appropriate, they do make simple things real easy though so it can be a useful convenience. Several other projects that support script lanagauges in a similar way to Tuscany also provide both approaches with some also documenting similar cautions. ...ant
