Originally this implementation checked recursion based on RELAX NG-inspired
algorithm explained at http://www.thaiopensource.com/relaxng/simplify.html.
This works only for "simple" syntax, which premises that every <element> is
defined under top-level <define> element. XML Schema doesn't follow this
and could result in infinite loop like reported.
The latest REC-xmlschema-1 denotes the explicit rule on illegal recursion
on 3.8.6 (Model Group Correct) as:
2 Circular groups are disallowed. That is, within the {particles} of a group there must not be at any depth a particle whose {term} is the group itself.
... so, I simply replaced the checker with simple Stack.
(oh, and for old Stack I haven't bothered to replace non-generic collection
everywhere. XSD is as dead as System.Collection.)
This set of .gitattributes was automatically generated from the list of files
that GIT tried to normalize when I enabled automatic EOL conversion.
With this set of attributes, we prevent automated EOL conversion on files that
we know will cause trouble down the road.
* XmlSchemaValidator.cs : XmlValueGetter actually needs string value
to validate against a restricted simple type (beyond ParseValue()).
Fixed bug #339934.
* XsdValidatingReaderTests.cs : added test for #339934.
in Test/System.Xml.Schema/standalone_tests:
* Makefile : now we try both default and 2.0 profile tests (i.e.
"make run-test" and "make PROFILE=net_2_0").
For 2.0, use XmlReader.Create().
svn path=/trunk/mcs/; revision=89432
* xsdtest.cs :
It has been running some extra instance validation and reporting
errors where a schema is invalid and therefore no instance
validation could be done.
Now --reportsuccess works fine for tests that should fail (reports
"OK" when it successfully failed).
svn path=/trunk/mcs/; revision=63040
* XmlSchemaSequence.cs : when a subcomponent is not optional
(minOccurs!=0) then it should clean previous components up.
Really fixed bug #76865.
* XmlSchemaTests.cs :
Additional schema component to finish #76865 test.
* Makefile : Use MONO_PATH. Remove extraneous make variables.
svn path=/trunk/mcs/; revision=53748
* XmlValueGetter.cs, XmlSchemaValidator.cs, XmlSchemaException.cs,
XmlSchemaAttribute.cs : Updated API to match 2.0 RTM. Most of the
changes are related to XmlValueGetter change.
* XsdValidatingReader.cs, XmlSchemaValidatingReader.cs,
XsdIdentityState.cs :
Dependent changes caused by XmlValueGetter changes.
* xsdtest.cs : updated to match 2.0 RTM API.
svn path=/trunk/mcs/; revision=52650
* xsdtest.cs : added --v2 option that uses XmlReader.Create()
instead of XmlValidatingReader.
* XmlFilterReader.cs : don't expect XmlReaderSettings of its source.
* XmlSchemaValidatingReader.cs : xsi:* attributes are now handled via
XmlSchemaValidator.ValidateElement().
Removed some obsolete overrides.
* XmlReader.cs :
Create() should assure NameTable!=null on creating XmlTextReader.
Now use XmlSchemaValidatingReader for all xsd validation.
* XmlTextReader2.cs :
Don't use input reader's Settings. It is null.
* XmlReaderSettings.cs : added XmlResolver.
* XmlSchemaSet.cs : set default resolver. Clear components before
recompilation.
* XmlSchemaValidator.cs :
SourceUri is System.Uri.
GetUnspecifiedDefaultAttributes() is allowed only when it is inside
start tag.
Added AddSchema().
Added duplicate attribute check.
Added ValidateElement() that takes xsi:* parameters.
(http://lab.msdn.microsoft.com/productfeedback/viewfeedback.aspx?feedbackId=7fc38ea1-c306-4fb7-8631-0e174b0ff3c6)
HandleXsiNil() now just takes string parameter.
svn path=/trunk/mcs/; revision=37782
* xsdtest.cs : improved significantly. Enabled reporting to file,
immediate stop on exception, xml reporting, and so on.
Run mono xsdtest.exe --help for details.
* Makefile : now "make test" becomes "make run-test" and it generates
TestResult.xml (of my own format).
* README : updated info.
svn path=/trunk/mcs/; revision=37548
* Makefile : made "make test" independent of "make" so that extraneous
archive extraction won't be run every time (for automated tests).
svn path=/trunk/mcs/; revision=23706
* Added set of Post Schema Compilation Information tests, i.e.
xs-psci-compare.cs and psci-ms-all.zip.
* Makefile: Added test-psci target.
* README: Added notes on PSCI tests (however it is not for today's
implementation, but for the very near future with bunch of fixes)
svn path=/trunk/mcs/; revision=22290