* [bcl] Build some assemblies with -warnaserror
This ensures that we keep the build warning free.
We'll only opt-in a few assemblies that already have zero warnings.
We also only apply this when using csc as mcs might raise different warnings.
For now just opt-in assemblies in the net_4_x profile.
It is not simply replacement because we have to workaround dynamic codegen
for Xamarin.iOS.
Also there were several tests failing with MS implementation (e.g. for
W3C DOM conformance), so we had to disable them.
There is one regression that rather needs to be fixed in Reflection.Emit.
Also, some WCF tests fail with this implementation. They need to be
investigated, reviewed and appropriately fixed.
"some scenario" I mean:
- There is a sequence with more than one elements in xsd,
- The second element is nillable and its type has content elements, and
- The corresponding XML element specifies xsi:nil='true'
Then it resulted in a validation error as if it were missing the required
content.
Since XmlAtomicValue is pretty much hidden in the implementation, there is
almost no way to verify how it should work. So the changes are all based on
assumption. Yet I added a test based on bug #12469.
There is still problem on processing *invalid* inputs. They have to be
rejected, but they pass.
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 is not complete but it meets our current validation needs
(better than NIE). The missing stuff is still marked as
[MonoTODO] and [Cattegory("NotWorking")].
Namespaces in nested external schemas have to be validated against
immediately-containing schema. If there is a schema A with urn:x
targetNamespace imports a schema B with urn:y targetNamespace which
in turn includes another schema C, then C must be validated its namespace
against B, not A.
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.
* XmlSchemaComplexType.cs : quick fix for bug #584664. Fill base
content type particles in prior to filling its own.
* XmlSchemaValidatorTests.cs : added test for bug #584664.
* 584664b.xsd, 584664a.xml, 584664b.xml, 584664a.xsd: new test files
by Florian Haag.
svn path=/trunk/mcs/; revision=153559
* XmlAtomicValue.cs: handle Decimal here to process xs:decimal as
a valid base type for simple types. patch by Luke Ravitch,
Fixed bug #557452.
* XmlSchemaValidatorTests.cs : added test for bug #557452, by
Luke Ravitch.
svn path=/trunk/mcs/; revision=150280
* XmlSchemaSet.cs : when adding a schema with "", it seems treated
as if it were null. Fixed bug #571650.
* XmlSchemaSetTests.cs : added test for bug #571650.
svn path=/trunk/mcs/; revision=150187
* XmlSchemaAssertion.cs, XmlSchemaTests.cs : migrate from Assertion
to Assert (it still uses XmlSchemaAssertion as the base class,
but XmlSchemaAssertion is not based on Assertion anymore).
svn path=/trunk/mcs/; revision=136714
* XmlAtomicValue.cs : support more type conversion. fixed bug #501666.
* XmlSchemaValidatorTests.cs : added test for bug #501666.
svn path=/trunk/mcs/; revision=133903
* XmlSchemaValidator.cs : quick fix for bug #496205. Reset xsi:type
and endelement.
* XmlSchemaValidatorTests.cs : added test for bug #496192 and #496205.
* 496192.xml, 496192.xsd : new test files.
svn path=/trunk/mcs/; revision=132351
* XmlSchemaValidator.cs : when xsi:nil is true, do not validate
text string. Fixed bug #469713.
* XsdValidatingReader.cs : when xsi:nil is true, do not validate
text string.
* XmlSchemaValidatorTests.cs : added test for bug #469713.
svn path=/trunk/mcs/; revision=125069
* XmlSchema.cs, XmlSchemaSet.cs : move substitutionGroup processing
from validation phase to post-subset-collection phase. It caused
inconsistent substitutionGroup processing among import and
schemaSet.Schemas(). Fixed possible XBRL schema processing.
* XmlSchemaSetTests.cs : added test for Compile() after "duplicating"
call to Add() for such schemas that also have xs:import of the
same schema that causes errors on processing substitutionGroup.
svn path=/trunk/mcs/; revision=121509
* XmlSchemaValidator.cs : do not try to validate CloseStartElement
when it should be skipped. Fixed bug #422581.
* XmlSchemaValidatorTests.cs : added test for bug #422581.
* 422581.xsd, 422581.xml : new files.
svn path=/trunk/mcs/; revision=112583
* XmlSchema.cs : fixed bug #397612, patch by James Fitzsimons.
in ProcessExternal(), Make xs:import without schemaLocation work
fine as if it were with schemaLocation.
2008-06-06 James Fitzsimons <[email protected]>
* XmlSchemaTests.cs: added test for bug #397612.
* XmlSchemaAssertion.cs : make sure to close schema XmlReader.
2008-06-06 Atsushi Enomoto <[email protected]>
* importNamespaceTest.xsd, xsdimporttest.xml, importedNamespace.xsd:
new test files.
svn path=/trunk/mcs/; revision=105144
* XmlSchema.cs : Changed GetResolvedUri to return Uri in correct case
to make compatible with the Microsoft.NET framework.
* XmlSchemaTests.cs: added test to support change to
GetResolvedUri to return Uri in correct case
to make compatible with the Microsoft.NET framework.
2008-06-06 Atsushi Enomoto <[email protected]>
* resolveUriSchema.xsd : (actually I've incorrectly added it before
the actual test checkin) Fixed schemaLocation.
svn path=/trunk/mcs/; revision=105141
* XmlSchema.cs : Do recursively process xs:include inside included
schemas. Fixed bug #361818.
* XmlSchemaTests.cs: added test for bug #361818.
* 361818.xsd, 361818-2.xsd, 361818-3.xsd : new test files.
* Makefile : extra distfiles (361818*.xsd).
svn path=/trunk/mcs/; revision=96159