Re: [SCXML] Incorrect and incomplete test 330 for ecmascript

I've updated confECMA.xsl.

- Jim
On 2/11/2015 5:17 PM, Ate Douma wrote:
> Hi,
>
> While 'cloning' a style sheet to generate scxml tests for a custom 
> language, I discovered the confEcma.xsl template for 
> "//@conf:eventFieldsAreBound" is incomplete/incorrect:
>
>   <!-- returns true if all the required fields of _event are bound -->
>   <xsl:template match="//@conf:eventFieldsAreBound">
>     <xsl:attribute name="cond">'name' in _event &amp;&amp; 'type' in 
> _event &amp;&amp; 'sendid' in _event &amp;&amp; 'origin' in _event 
> &amp;&amp; 'invokeid' &amp;&amp; 'data' in _event</xsl:attribute>
>   </xsl:template>
>
> should be:
>
>   <!-- returns true if all the required fields of _event are bound -->
>   <xsl:template match="//@conf:eventFieldsAreBound">
>     <xsl:attribute name="cond">'name' in _event &amp;&amp; 'type' in 
> _event &amp;&amp; 'sendid' in _event &amp;&amp; 'origin' in _event 
> &amp;&amp; 'origintype' in _event &amp;&amp; 'invokeid' in _event 
> &amp;&amp; 'data' in _event</xsl:attribute>
>   </xsl:template>
>
> The above template is (only) used in test 330.
>
> For the record, the same template in confXpath.xsl is correct.
>
> Regards, Ate
>

Received on Thursday, 12 February 2015 13:55:29 UTC