* 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
* XmlSchema.cs : compiling and validating external components in
prior to direct components in a schema does block my refactoring.
Removed extraneous call to XmlSchemaSet.Add().
svn path=/trunk/mcs/; revision=63032
* XmlSchema.cs, XmlSchemaSet.cs : some minor refactoring to make
Compile() simple two phase (i.e. CompileSubset() and Validate()).
svn path=/trunk/mcs/; revision=63028
* XmlSchemaCollection.cs :
eliminated call to XmlSchema.CompileSubset(). Now XmlSchemaSet is
the only starter of the compilation.
* XmlSchemaSet.cs : added targetNamespace check.
* XmlSchemaSetTests.cs : added AddWrongTargetNamespace().
svn path=/trunk/mcs/; revision=63026
Refactoring compilation to make Compile() portable to
XmlSchemaSet.Compile() and fix multi-schema bugs (not done yet)
* XmlSchema.cs :
Removed "root schema" concept from Compile().
Since nested inclusion does not result in an error, the role of
schemaLocationStack is identical to handledUris, thus removed it.
The handledUris does not have to be a field.
Moved NamedIdentities and IDCollections to XmlSchemaSet.
Renamed a Compile() which is called from XmlSchemaCollection and
XmlSchemaSet as CompileSubset(). Renamed private Compile() as
DoCompile().
public Compile() now internally creates a new XmlSchemaSet and
compiles the set.
* XmlSchemaCollection.cs : now it hooks its schemaSet's validation
event handler and thus XmlSchemaSet does not need to check this
collection's event handler by itself.
XmlSchema.Compile() -> XmlSchema.CompileSubset().
* XmlSchemaSet.cs :
Removed SchemaCollection which became unneccessary.
Added NamedIdentities and IDCollection.
XmlSchema.Compile() -> XmlSchema.CompileSubset().
* XmlSchemaAttributeGroupRef.cs, XmlSchemaXPath.cs
XmlSchemaSimpleTypeList.cs, XmlSchemaComplexContentRestriction.cs,
XmlSchemaGroup.cs, XmlSchemaComplexContentExtension.cs,
XmlSchemaSequence.cs, XmlSchemaSimpleContentRestriction.cs,
XmlSchemaSimpleContentExtension.cs, XmlSchemaAny.cs,
XmlSchemaElement.cs, XmlSchemaNotation.cs, XmlSchemaAll.cs,
XmlSchemaComplexType.cs, XmlSchemaAnnotation.cs,
XmlSchemaAttributeGroup.cs, XmlSchemaSimpleTypeRestriction.cs,
XmlSchemaSimpleContent.cs, XmlSchemaGroupRef.cs,
XmlSchemaChoice.cs, XmlSchemaSimpleType.cs,
XmlSchemaIdentityConstraint.cs, XmlSchemaSimpleTypeUnion.cs,
XmlSchemaAnyAttribute.cs, XmlSchemaComplexContent.cs,
XmlSchemaAttribute.cs, XmlSchemaObject.cs :
removed XmlSchemaObject.IsCompiled(). Check compilation state by
comparing compilation ID directly.
* XmlReader.cs :
For DTD validator, call to SetSchemas() makes no sense.
* XmlValidatingReader.cs : now it internally holds old
XmlSchemaCollection instead of new XmlSchemaSet, to make
XmlSchemaSet.SchemaCollection unneccessary.
Removed SetSchemas() since it is now extraneous because of the
XmlReaderChange above.
svn path=/trunk/mcs/; revision=62988
* XmlSchema.cs : mutual schema import was failing because the
compiling schema's SourceUri was not enlisted for nest check.
* XmlSchemaTests.cs : added TestSimpleMutualImport().
* inter-inc-1.xsd, inter-inc-2.xsd :
new test files for TestSimpleMutualImport().
svn path=/trunk/mcs/; revision=62941
* XmlSchema.cs : seems like there is XmlSchemaExternal.Schema property
that is filled after Compile(). Fixed bug #77687.
* XmlSchemaTests.cs : added test for bug #77687.
* 77687.xsd, 77687inc.xsd : test for bug #77687.
svn path=/trunk/mcs/; revision=57495
* XmlSchemaAppInfo.cs, XmlSchemaDocumentation.cs : seems like MS
implementation fills empty node set for empty xs:appinfo and
xs:documentation and waste memory. Fixed bug #77685.
* XmlSchemaTests.cs : added test for bug #77685.
svn path=/trunk/mcs/; revision=57481
and report XmlSchemaException when compiling XmlSchema with
zero-length TargetNamespace. Fixes bug #77391.
* XmlSchemaTests.cs: Added test for writing XmlSchema with
zero-length TargetNamespace. Added test for compiling XmlSchema
with zero-length TargetNamespace. Replaced Console.WriteLine with
AssertEquals.
svn path=/trunk/mcs/; revision=57415
* BuiltInDatatype.cs : anyURI could be such relative path that
contains ':' in the middle. It also affects on relaxng validation.
* XmlSchemaDatatypeTests.cs : added two more anyURI tests.
svn path=/trunk/mcs/; revision=56373
* XmlSchemaValidatingReader.cs : removed unused constructors.
Now it implements IXmlSchemaInfo. Use XmlSchemaType instead of
Object to represent schema types.
* XmlSchemaAttribute.cs, XmlSchemaElement.cs : AttributeSchemaType
and ElementSchemaType were not working fine for anySimpleType.
* XmlSchemaValidator.cs : When actual schema type was complex,
schema types was not filled correctly. Modified some extra comments.
* XmlSchemaSet.cs, XmlSchemaType.cs : removed extra MonoTODOs.
svn path=/trunk/mcs/; revision=55371
* XmlAtomicValue.cs : it won't be implemented since there is no way
to test it inside sys.xml. Thus remarked MonoTODO.
* XmlSchemaDatatype.cs : implemented IsDerivedFrom(), which is however
mostly useless.
* XmlSchemaDatatypeTests.cs : added test for 2.0 IsDerivedFrom().
svn path=/trunk/mcs/; revision=55290
* XmlSchemaSet.cs : Add() rollbacks IsCompiled to false.
Global components are not added when Add() is called.
* XmlSchemaSetTests.cs : added AddRollbackIsCompiled(); Add() changes
IsCompiled to false.
svn path=/trunk/mcs/; revision=55151
* XmlSchemaSet.cs : Add() needs (consistent) namespace duplicate check.
* XmlSchemaSetTests.cs : re-enabled test for Add() which was
inconsistent in beta versions.
svn path=/trunk/mcs/; revision=55145
* XmlValidatingReader.cs : In ReadTypedValue(), treat Whitespace
nodes as target string nodes as well as other text nodes.
* XsdValidatingReader.cs :
Don't use normalized string as input to AssessStringValid(). It
incorrectly invalidates strings against simple types with length-
related facets.
Now that we don't ignore whitespaces, we need to explicitly allow
pure whitespace texts in ElementOnly/Empty model.
* XmlSchemaSimpleTypeRestriction.cs : maxLength and minLength were
likely to be ignored in ValidateNonListValueWithFacets().
* XmlSchemaValidator.cs : Don't use normalized string value as the
input to AssessStringValid().
* XsdValidatingReaderTests.cs : test for ReadTypeValue() that it
does not ignore whitespace nodes, and it does not normalize string
incorrectly.
svn path=/trunk/mcs/; revision=55129
* XmlSchemaSet.cs :
Turned out that it also has set_CompilationSettings.
* XmlSchemaComplexType. : thus CompilationSettings is nullable, we
have to check its existence.
* XmlSchemaSetTests.cs : added set_CompilationSettings tests.
svn path=/trunk/mcs/; revision=54098