|
From: SourceForge.net <no...@so...> - 2004-11-15 18:20:52
|
Read and respond to this message at: https://sourceforge.net/forum/message.php?msg_id=2853237 By: beanmf I am getting "Invalid particle derivation by restriction" errors when using Microsoft VisualStuido.Net to create a typed dataset from the core schema. I believe that our AnIML core is not valid and here is the evidence. "When generating code from a schema you may get the error 'Invalid particle derivation by restriction'. This may be due to the use of an XSD that does not conform to the W3C Schema Standard Section 4.4. Derivation by restriction does not allow you to add or omit elements (unless they are optional in the base type), it simply allows you to restrict their valid values e.g. set a default value or set type="string" where previously no type was specified. Some popular XML tools do not comply with the XSD standard as they do not mark such schema as invalid. " The actual documentation that describes this requirement for derivation by restriction can be found here. http://www.w3.org/TR/2001/REC-xmlschema-0-20010502/#DerivByRestrict where it clearly states (with examples), "Notice that types derived by restriction must repeat all the components of the base type definition that are to be included in the derived type: " The AnIML core fails this requirement in two places: the complex type TemplateType derives from ExperimentStepType by restriction. The complex type VectorValueType derives from ParameterValueType by restriction. ______________________________________________________________________ You are receiving this email because you elected to monitor this forum. To stop monitoring this forum, login to SourceForge.net and visit: https://sourceforge.net/forum/unmonitor.php?forum_id=262129 |