mogsie / scxmlgui

Automatically exported from code.google.com/p/scxmlgui
0 stars 0 forks source link

Entities are not allowed in conditions #13

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
A condition 'T > 30' should be translated to 'T > 30', but instead a 
org.xml.sax.SAXParseException is thrown. Opening an SCXML with entities does 
work.

Original issue reported on code.google.com by azra...@gmail.com on 4 Sep 2010 at 2:59

GoogleCodeExporter commented 9 years ago
please provide a test case for this issue.

Original comment by fmorbini on 4 Sep 2010 at 3:50

GoogleCodeExporter commented 9 years ago
instead of using '<' or '<=' or '>' or '>=' use respectively lt, le, gt or ge.

Original comment by fmorbini on 4 Sep 2010 at 4:27

GoogleCodeExporter commented 9 years ago
Jusr add <transition cond="T > 30" target="On"/> to any state. It is valid XML. 
It is opened correctly and displayed correctly, but cannot be saved.

Original comment by azra...@gmail.com on 4 Sep 2010 at 4:49

GoogleCodeExporter commented 9 years ago
as a test case, please post the exact text you enter, and where.
your comment #3 is not clear enough.
Are you entering "T > 30" without double quotes in the condition tab of the 
edge editor window?

Original comment by fmorbini on 4 Sep 2010 at 5:19

GoogleCodeExporter commented 9 years ago
Just open the following file and immediately save it.

<?xml version="1.0" encoding="UTF-8"?>
<scxml xmlns="http://www.w3.org/2005/07/scxml" version="1.0" name="Fan2" 
initial="Off" exmode="strict">
    <datamodel>
        <data id="T" expr="10"/>
    </datamodel>
    <state id="Off">
        <onentry>
            <log expr="'OnEntry Off'"/>
        </onentry>
        <transition cond="T > 30" target="On"/>
        <onexit>
            <log expr="'OnExit Off'"/>
        </onexit>
    </state>
    <state id="On">
        <onentry>
            <log expr="'OnEntry On'"/>
        </onentry>
        <transition cond="T < 20" target="Off"/>
        <onexit>
            <log expr="'OnExit On'"/>
        </onexit>
    </state>
</scxml>

Original comment by azra...@gmail.com on 4 Sep 2010 at 6:20

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r69.

Original comment by fmorbini on 6 Sep 2010 at 6:56

GoogleCodeExporter commented 9 years ago
fixed with revision 69.

Original comment by fmorbini on 6 Sep 2010 at 6:56