SCION icon indicating copy to clipboard operation
SCION copied to clipboard

Ask the w3c scxml WG which XSLT processors they recommend using on their test suite

Open jbeard4 opened this issue 10 years ago • 1 comments

And regenerate error test/scxml-test-framework/test/w3c-ecma/test153.txml.scxml (issue #284)

jbeard4 avatar Nov 23 '14 17:11 jbeard4

We tested xsltproc (libxml) and Xalan (based on Xerces).

Repro:

jbeard4@Jacobs-MacBook-Pro:~/tmp$  java -jar ~/Downloads/xalan-j_2_7_2/xalan.jar -IN  http://www.w3.org/Voice/2013/scxml-irp/153/test153.txml -XSL http://www.w3.org/Voice/2013/scxml-irp/confEcma.xsl
http://www.w3.org/Voice/2013/scxml-irp/confEcma.xsl; Line #289; Column #40; xsl:analyze-string is not allowed in this position in the stylesheet!
<?xml version="1.0" encoding="UTF-8"?><!-- test that foreach goes over the array in the right order.  since the array contains 1 2 3, we compare the current 
value with the previous value, which is stored in var1. The current value should always be larger.  If
it ever isn't, set Var4 to 0, indicating failure --><scxml xmlns="http://www.w3.org/2005/07/scxml" xmlns:conf="http://www.w3.org/2005/scxml-conformance" initial="s0" version="1.0" datamodel="ecmascript">
<datamodel>
  <data id="Var1" expr="0"/> <!-- contains the previous value -->
  <data id="Var2"/> <!-- the item which will contain the current value -->
  <data id="Var3">
    <conf:array123/>
    </data>
  <data id="Var4" expr="1"/> <!-- 1 if success, 0 if failure -->
  </datamodel>

   <state id="s0">
      <onentry>
        <foreach conf:item="2" conf:arrayVar="3">
         <if conf:compareIDVal="1&lt;2">
         <assign location="Var1" expr="Var2"/>
         <else/>
         <!-- values are out of order, record failure -->
         <assign location="Var4" expr="0"/>
         </if>
          </foreach>
        </onentry>

  <!-- check that var1 has its original value  -->
  <transition cond="" target="fail"/>
  <transition target="pass"/>
  </state> 

   <final id="pass"><onentry><log expr="'pass'" label="Outcome"/></onentry></final>
   <final id="fail"><onentry><log expr="'fail'" label="Outcome"/></onentry></final>



</scxml>

jbeard4 avatar Nov 23 '14 17:11 jbeard4