Re: Problem with validation schema

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 UTC