* XmlDocument.cs : do not create XmlSchemaInfo instance every time
it validates a node.
* XmlSchemaValidator.cs : limit validity initialization. In some
cases it failed to set Invalid.
svn path=/trunk/mcs/; revision=158867
* 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
* XmlSchemaComplexType.cs : validate base type first and then
validate particle. Patch by Jonas Larsson, fixed bug #502251.
svn path=/trunk/mcs/; revision=150194
* 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
* XmlSchemaUtil.cs, BuiltInDatatype.cs, XmlSchemaComplexType.cs:
Introduced new MS compatibility option by environment variable,
for bug #502115.
svn path=/trunk/mcs/; revision=134397
* XmlSchemaGroupRef.cs : when getting optimized particle, reset was
incomplete. Patch by Jonas Larsson. Fixed bug #502168.
2009-05-07 Jonas Larsson <[email protected]>
* XmlSchemaValidatorTests.cs : added test for bug #501666.
svn path=/trunk/mcs/; revision=134396
* XmlSchemaComplexType.cs : make complex content type work like .NET
does. Patch by Jonas Larsson. Fixed bug #501814.
* XmlValidatingReaderTests.cs : test for bug #501814 by Jonas
Larsson.
svn path=/trunk/mcs/; revision=133908
* XmlSchemaComplexType.cs : do not forget to clear attributes
before Compile(). Patch by Jonas Larsson. Fixed bug #501763.
* XsdValidatingReaderTest.cs : test for bug #501763 by Jonas Larsson.
svn path=/trunk/mcs/; revision=133905
* 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
* XmlQualifiedName.cs : added Parse() overload that is used for
xsd validation.
* XmlSchemaValidator.cs, BuiltInDatatype.cs, XmlAtomicValue.cs:
use xsd-supported version of XmlQualifiedName.Parse().
Fixed bug #496205.
svn path=/trunk/mcs/; revision=132347
* XmlSchemaValidator.cs : check identities for untyped attributes.
Attribute keyfield test must adjust depth, or it never matches.
Missing braces for IgnoreIdentity test.
svn path=/trunk/mcs/; revision=129464
* BuiltInDatatype.cs, XmlSchemaDatatype.cs : some equality comparison
failed because it anyType is not used as singleton.
svn path=/trunk/mcs/; revision=129440
* 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
* XsdValidatingReader.cs : skip text validation under xs:any.
Fixed part of bug #449512.
* XmlSchemaValidator.cs : skip text validation under xs:any.
* XmlValidatingReaderTests.cs : added test for validating mixed
element under xs:any.
svn path=/trunk/mcs/; revision=121093
* 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
* XsdWildcard.cs : block extra compilation and made compilation reset.
This somehow fixed bug #360541.
* XmlSchemaAny.cs : block extra compilation in anyTypeContent.
* XmlSchemasTests.cs : new test file (for bug #360541).
* System.Xml_test.dll.sources: added XmlSchemasTests.cs.
svn path=/trunk/mcs/; revision=96115
* XmlSchemaValidator.cs : added couple of null argument check.
Do not depend on XmlSchemaInfo to retrieve attribute value (it
could be null).
Do not practically validate attribute when it is not in validating
state (i.e. inside xs:any). Fixed bug #358408.
* XmlSchemaValidatorTests.cs : new. Test for bug #358408.
* 358408.xsd : new test file.
* System.Xml_test.dll.sources : added XmlSchemaValidatorTests.cs.
* Makefile : extra distfiles (358408.xsd).
svn path=/trunk/mcs/; revision=94729
* 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
* XmlSchemaSimpleTypeRestriction.cs : implemented value-space
comparison for enumerations. Actually it is hybrid (it also
tries literal-space comparison first). Fixed bug #322457 and
#322458.
When there is a literal-space match, sometimes you cannot try to
get TypedValue even if it is valid due to double.Parse() overflow.
svn path=/trunk/mcs/; revision=88894
* XmlSchemaComplexType.cs,
XmlSchemaComplexContentRestriction.cs :
in Validate(), every descendant item in complexType must be first
validated before getting GetOptimizedParticle(), or it could result
in wrong content particle. Fixed bug #82010.
* XsdValidatingReaderTests.cs : test for bug #82010.
* 82010.xsd, 82010.xml : new test files.
* Makefile : extra distfiles (82010.xml/.xsd).
svn path=/trunk/mcs/; revision=83272
* XmlSchemaValidator.cs : another extra whitespace rejection.
Fixed another issue reported on bug #82183.
* XsdValidatingReaderTests.cs : another test posted on bug #82183.
svn path=/trunk/mcs/; revision=83264
* XmlSchemaValidator.cs : do not reject whitespaces in elementOnly
content model. Fixed bug #82183.
* XsdValidatingReader.cs : reject more whitespaces in empty model
element.
svn path=/trunk/mcs/; revision=82652
* XsdValidatingReader.cs : Process empty and element-only contents
differently along with the spec 3.4.4 Element Locally Valid (Complex
Type) 2.3 (and 2.1 respectively). Itchy specification indeed.
This demanded not a few internal changes. Fixed bug #82099.
* XmlSchemaValidator.cs : dependent changes to
XsdParticleValidationState. Changed ValidateWhitespace() to do
the same as we do in XsdValidatingReader.
* XsdValidatingReaderTests.cs : added test for bug #82099.
svn path=/trunk/mcs/; revision=82098
* XmlSchema.cs XmlSchemaGroup.cs XmlSchemaAny.cs XmlSchemaElement.cs
XmlSchemaNotation.cs XmlSchemaComplexType.cs
XmlSchemaAttributeGroup.cs XmlSchemaSimpleType.cs
XmlSchemaIdentityConstraint.cs XmlSchemaAnyAttribute.cs
XmlSchemaRedefine.cs XmlSchemaAttribute.cs :
avoid incorrect compilation of included schemas, fixed bug #81360.
more fix for wrong targetNamespace propagation within current
processing model. Replaced ParentIsSchema field with a property.
* XsdValidatingReaderTests.cs : added test for bug #81360.
* 81360.xsd, 81360inc1.xsd, 81360inc2.xsd : new test files.
* Makefile : added distfiles.
svn path=/trunk/mcs/; revision=76184
* XmlSchemaIdentityConstraint.cs : give conflicting component in
the error message.
* XmlSchemaElement.cs : When resolving "ref" and "substitutionGroup",
It should use XmlSchema.FindElement() instead of XmlSchema.Elements
so that it does not miss external components.
* XmlSchemaSet.cs, XmlSchema.cs : now in one XmlSchemaSet
compilation, make sure to not handle the same schema twice even
at the schema level.
svn path=/trunk/mcs/; revision=69293
* XmlSchemaValidator.cs : it must also be fixed for method signature
change.
* XmlSchemaSimpleTypeRestriction.cs : on .NET 2.0, use
IXmlNamespaceResolver for XmlSchemaValidator.
* XsdValidatingReaderTests.cs : the previous test raises different
exception in 2.0.
svn path=/trunk/mcs/; revision=67032
* XsdValidatingReader.cs : Fixed bug #79650. Enumeration facet was
not validated for attributes. Also, simple type restriction should
require namespace manager to resolve QNames.
* XmlSchemaSimpleTypeRestriction.cs : for facet validation, it should
use namespacemanager. Though the change is not perfect, thus I
disable this change for now.
* XmlValidatingReaderTests.cs : added bug #79650 case.
* 79650.xsd : added test for bug #79650.
* Makefile : added 79650.xsd to dist file.
svn path=/trunk/mcs/; revision=67031
* XmlSchema.cs : set ValidationEventHandler to XmlSchemaSet only
when the argument event handler is not null.
Validate() is internal to open it to XmlSchemaSet.
* XmlSchemaSet.cs : removed extraneous "handler" field and method
"OnValidationError". Now ValidationEventHandler just works since
we don't have to care about XmlSchemaCollection's event (it just
reuses XmlSchemaSet's event now).
Split Compile() process to collect components first, and to
validate next.
svn path=/trunk/mcs/; revision=63041