W3C home > Mailing lists > Public > www-voice@w3.org > January to March 2013

Re: Problem with validation schema

From: Jim Barnett <Jim.Barnett@genesyslab.com>
Date: Wed, 16 Jan 2013 19:00:56 +0000
To: "www-voice@w3.org" <www-voice@w3.org>
Message-ID: <57A15FAF9E58F841B2B1651FFE16D28101822A@GENSJZMBX03.msg.int.genesyslab.com>
This problem with xsd.exe has been reported before (I've included the details of the previous error report below, in case you're interested).  It seems to be particular to the Microsoft processor.  Other schema processors don't seem to be bothered by this sort of circular inclusion.  I use xerces to validate, and have never had any problems.    I would recommend using another processor if you can.

On the issue of a .Net open-source version, I don't know of one.  However Spiderbrain SCXML ( http://pyscxml.spyderbrain.com/ ) is written in Python, and I believe it is possible to get Python to execute in a .Net environment.


-          Jim

The previous problem was:

Currently, one cannot generate classes with Microsoft's xsd.exe (version 2.0) against scxml schema:

<output>
>xsd /c scxml-module-core.xsd /n:scxml
Microsoft (R) Xml Schemas/DataTypes support utility
[Microsoft (R) .NET Framework, Version 2.0.50727.3038]
Copyright (C) Microsoft Corporation. All rights reserved.
Error: Error generating classes for schema 'scxml-module-core'.
- Group 'scxml.core.executablecontent' from targetNamespace='' has invalid definition: Circular group reference.

<end of output>

Types are generated fine if you comment out line 57 in scxml-module-core.xsd:

<!-- core executable content model -->
<xsd:group name="scxml.core.executablecontent">
<xsd:choice>
<xsd:group ref="scxml.extra.content"/>
<xsd:element ref="raise"/>
>>>> <!-- xsd:element ref="if"/ -->
<xsd:element ref="log"/>
</xsd:choice>
</xsd:group>
Received on Wednesday, 16 January 2013 19:01:27 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 16 January 2013 19:01:32 GMT