nebomuk / scxmlgui

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

resulting scxml doesn't pass the xsd validation #26

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Your resulting file doesn't respect the rules present in the xsd files given by 
w3c (they can be found at http://www.w3.org/2011/04/SCXML/).
For example you forget the version number.

Original issue reported on code.google.com by laure.jo...@gmail.com on 30 Jun 2011 at 9:06

GoogleCodeExporter commented 9 years ago
i don't know how important this is. Please comment on how important is this 
issue for you.

For example i support the src attribute for states, but that is not anymore 
valid.
Also, the syntax:
<send event="'some-random-label'"></send>
is valid for the Commons SCXML interpreter but apparently invalid for the scxml 
xsd.

(i don't know much on how to use xsd files to validate an xml file, so i may 
not have setup properly the xml parser. Feel free to submit a code fragment 
that you used to validate a file)

Original comment by fmorbini on 2 Jul 2011 at 12:02

GoogleCodeExporter commented 9 years ago
For my part I don't use events and data model of SCXML so I didn't see any of 
these problem. The two differences I ran into were the id attribute in scxml 
element and the version number. They are not very important attributes so I 
change my generated scxml files to remove the id and add the version. 
I verify my SCXML file with QT QXmlSchema which verify that the XML input file 
is compliant to a given XSD file.

Original comment by laure.jo...@gmail.com on 7 Jul 2011 at 3:29

GoogleCodeExporter commented 9 years ago
committed a fix for the 2 issues you reported.

Original comment by fmorbini on 13 Jul 2011 at 11:07