Commit Graph
60 Commits
Author SHA1 Message Date
Atsushi Eno a5b5e8ce99 2010-03-15 Atsushi Enomoto <[email protected]>
* 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
2010-03-15 06:12:42 +00:00
Atsushi Eno eede1f63d3 2010-01-27 Atsushi Enomoto <[email protected]>
* 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
2010-01-27 06:32:59 +00:00
Atsushi Eno c64203d33c 2010-01-26 Atsushi Enomoto <[email protected]>
* XmlSchemaValidatorTests.cs : added test for bug #502251, by
	  Jonas Larsson.


svn path=/trunk/mcs/; revision=150196
2010-01-26 06:10:41 +00:00
Atsushi Eno 2f8435c724 2010-01-26 Atsushi Enomoto <[email protected]>
* 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
2010-01-26 02:19:40 +00:00
Gert Driesen 70cfcbd496 * XmlSchemaTests.cs: Fixed tests for bug #502115.
svn path=/trunk/mcs/; revision=137595
2009-07-09 04:46:00 +00:00
Atsushi Eno 9ff32e41c8 2009-07-09 Atsushi Enomoto <[email protected]>
* XmlSchemaTests.cs : disabled wrong tests. I will revert them
	  unless it gets better shape.


svn path=/trunk/mcs/; revision=137594
2009-07-09 04:06:41 +00:00
Atsushi Eno 7e1dd782a8 2009-06-23 Atsushi Enomoto <[email protected]>
* 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
2009-06-23 16:19:56 +00:00
Gert Driesen 0e09bcbf3c * XmlSchemaTests.cs: added tests for bug #502115.
* extension-attr-redefine-*.xsd: new test files.

svn path=/trunk/mcs/; revision=134592
2009-05-22 11:02:36 +00:00
Atsushi Eno 8db721b50f 2009-05-07 Jonas Larsson <[email protected]>
* XmlAtomicValue.cs : support more type conversion. fixed bug #501666.

	* XmlSchemaValidatorTests.cs : added test for bug #501666.


svn path=/trunk/mcs/; revision=133903
2009-05-11 16:59:42 +00:00
Atsushi Eno fb729447e3 2009-04-22 Atsushi Enomoto <[email protected]>
* 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
2009-04-22 08:08:52 +00:00
Atsushi Eno 015ecae5f8 2009-01-30 Atsushi Enomoto <[email protected]>
* 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
2009-01-30 11:14:22 +00:00
Atsushi Eno 3bfb4f73d0 2008-12-15 Atsushi Enomoto <[email protected]>
* 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
2008-12-15 10:39:00 +00:00
Atsushi Eno ff8c76700f fix bug #435206.
svn path=/trunk/mcs/; revision=117232
2008-10-28 01:14:03 +00:00
Atsushi Eno 6b68299d0f fix bug #433774.
svn path=/trunk/mcs/; revision=117216
2008-10-27 23:57:04 +00:00
Atsushi Eno 65acaeb5a9 2008-09-09 Atsushi Enomoto <[email protected]>
* 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
2008-09-09 13:20:23 +00:00
Atsushi Eno 5c86dd6fa0 2008-06-06 Atsushi Enomoto <[email protected]>
* XmlSchemaTests.cs : fix file path.


svn path=/trunk/mcs/; revision=105158
2008-06-06 14:35:52 +00:00
Atsushi Eno 13bc5269f3 2008-06-06 Atsushi Enomoto <[email protected]>
* 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
2008-06-06 10:07:22 +00:00
Atsushi Eno 6ae0c56558 2008-06-06 James Fitzsimons <[email protected]>
* 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
2008-06-06 07:39:58 +00:00
Atsushi Eno 5691ba237b 2008-02-19 Atsushi Enomoto <[email protected]>
* 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
2008-02-19 15:59:12 +00:00
Atsushi Eno ea43bd0eb7 2008-02-04 Atsushi Enomoto <[email protected]>
* 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
2008-02-04 08:49:05 +00:00
Atsushi Eno 8ae9f1becb 2006-08-04 Atsushi Enomoto <[email protected]>
* XsdIdentityState.cs : Fixed bug #78985. If there are two identical
	  field path "@key" in two different keys where one is in scope
	  within another, it incorrectly matched the attribute whose name
	  is same but in different element hierarchy (depth).

	* XmlSchemaTest.cs : added bug #78985 case.

	* 78985.xsd, 78985.xml : test for bug #78985.


svn path=/trunk/mcs/; revision=63338
2006-08-04 06:35:17 +00:00
Atsushi Eno 2b937a1e9b 2006-07-27 Atsushi Enomoto <[email protected]>
* XmlSchema.cs, XmlSchemaSimpleTypeList.cs,
	  XmlSchemaSimpleContentRestriction.cs, XmlSchemaUtil.cs,
	  XmlSchemaSimpleContentExtension.cs, XmlSchemaElement.cs,
	  XmlSchemaComplexType.cs, XmlSchemaSimpleTypeRestriction.cs,
	  XmlSchemaSimpleTypeUnion.cs, XmlSchemaAttribute.cs :
	  Finally fixed bugs around cross-referencing importing schema 
	  components (namely, #77489 and #78220) by resolving referenced
	  components via new internal Find[Element|Attribute|AttributeGroup|
	  SchemaType] methods in XmlSchema.

	* XmlSchemaSetTest.cs : added bug #77489 case.
	* XmlSchemaCollectionTests.cs : removed NotWorking from #77820 case.


svn path=/trunk/mcs/; revision=63042
2006-07-27 15:15:12 +00:00
Atsushi Eno 97c462eeae 2006-07-27 Atsushi Enomoto <[email protected]>
* 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
2006-07-27 02:58:28 +00:00
Atsushi Eno 5853e3c5ed 2006-07-25 Atsushi Enomoto <[email protected]>
* 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
2006-07-25 03:19:21 +00:00
Gert Driesen d7cc337ecd * System.Xml_test.dll.sources: Added Test/System.Xml.Serialization/
XmlSchemaCollectionTests.cs.
* XmlSchemaCollectionTests.cs: added test for bug #78220.

svn path=/trunk/mcs/; revision=59970
2006-04-27 12:35:09 +00:00
Atsushi Eno 1d1f53e9b4 2006-03-02 Atsushi Enomoto <[email protected]>
* 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
2006-03-02 03:15:05 +00:00
Atsushi Eno f082c47627 2006-03-01 Atsushi Enomoto <[email protected]>
* 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
2006-03-01 19:51:56 +00:00
Gert Driesen 1d51fe5a1b * XmlSchemaAssertion.cs: Set eol-style to native.
* XmlSchemaBuiltInDatatypeTests.cs: Set eol-style to CRLF.
* XmlSchemaCollectionTests.cs: Set eol-style to native. Fixed line
endings.
* XmlSchemaDatatypeTests.cs: Set eol-style to native.
* XmlSchemaExceptionCas.cs: Set eol-style to native.
* XmlSchemaLengthFacetTests.cs: Set eol-style to CRLF.
* XmlSchemaSetTests.cs: Set eol-style to native.
* XmlSchemaTests.cs: Set eol-style to native.
* XmlSchemaTypeTests.cs: Set eol-style to native.>

svn path=/trunk/mcs/; revision=57418
2006-02-28 19:27:46 +00:00
Gert Driesen 181d10350c * XmlSchema.cs: Do not define namespace for zero-length TargetNamespace
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
2006-02-28 19:18:36 +00:00
Atsushi Eno 2e7d450b0a 2006-02-06 Atsushi Enomoto <[email protected]>
* XmlSchemaDatatypeTests.cs: (TestAnyType) NotDotNet -> Ignore.


svn path=/trunk/mcs/; revision=56607
2006-02-07 04:05:25 +00:00
Gert Driesen c2adc4f7a5 * XmlSchemaDatatypeTests.cs: Marked TestAnyType NotDotNet on 2.0 profile
instead of marking it NotWorking. No longer derive from Assertion.

svn path=/trunk/mcs/; revision=56597
2006-02-06 21:13:15 +00:00
Atsushi Eno b0d2d5af52 2006-02-01 Atsushi Enomoto <[email protected]>
* 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
2006-02-01 06:25:41 +00:00
Atsushi Eno 3e92836661 2006-01-10 Atsushi Enomoto <[email protected]>
* System.Xml_test.dll.sources : added XmlSchemaTypeTests.cs.

	* XmlSchemaTypeTests.cs : new file. Test for TypeCode.
	* XmlSchemaSetTests.cs : added more tests for Add() and marked one as
	  NotWorking (we need info on how consistent this method is).


svn path=/trunk/mcs/; revision=55309
2006-01-10 17:10:28 +00:00
Atsushi Eno 0ac61156cf 2006-01-10 Atsushi Enomoto <[email protected]>
* System.Xml_test.dll.sources : XmlSchemaDatatypeTests.cs was missing.
	  collected sys.xml.schema lines.

	* XmlSchemaDatatypeTests.cs : oops sys.col.generic is NET_2_0.


svn path=/trunk/mcs/; revision=55291
2006-01-10 12:57:37 +00:00
Atsushi Eno 4231ac16e6 2006-01-10 Atsushi Enomoto <[email protected]>
* 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
2006-01-10 12:54:26 +00:00
Atsushi Eno df9a592c8c 2006-01-06 Atsushi Enomoto <[email protected]>
* 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
2006-01-06 15:58:52 +00:00
Atsushi Eno 607ee5bf7b 2006-01-06 Atsushi Enomoto <[email protected]>
* XmlSchemaSet.cs : reverted previous fix; it broke inclusions.

	* XmlSchemaSetTests.cs : reverted the patch, thus restore [Ignore].


svn path=/trunk/mcs/; revision=55146
2006-01-06 12:58:41 +00:00
Atsushi Eno fd4622ca84 2006-01-06 Atsushi Enomoto <[email protected]>
* 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
2006-01-06 12:24:46 +00:00
Atsushi Eno 0b4965171d 2005-12-08 Atsushi Enomoto <[email protected]>
* 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
2005-12-08 08:15:30 +00:00
Atsushi Eno 99c907944c 2005-12-08 Atsushi Enomoto <[email protected]>
* System.Xml.dll.sources : added XmlSchemaCompilationSettings.cs

	* XmlReaderSettings.cs : thanks to idiotic MS design,
	  AllowXmlAttributes is turned on by default.

	* XmlSchemaCompilationSettings.cs : new file.
	* XmlSchemaSet.cs : added CompilationSettings property.
	* XmlSchemaComplexType.cs : support for EnableUpaCheck.

	* XmlReaderSettingsTests.cs : (DefaultValue)
	  Added assertion label everywhere.
	* XmlWriterTests.cs : WriteNodeError is broken under MS.NET 2.0 (it
	  should cause an error).

	* XmlSchemaSetTests.cs : added CompilationSettings tests.


svn path=/trunk/mcs/; revision=54094
2005-12-08 06:56:12 +00:00
Atsushi Eno e4febe6ede 2005-12-01 Atsushi Enomoto <[email protected]>
* 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
2005-12-01 06:16:29 +00:00
Atsushi Eno 906d303f75 2005-12-01 Atsushi Enomoto <[email protected]>
* XmlSchemaElement.cs : Fixed ambiguity detection logic so that
	  chameleon ##other (xs:any) does not block other "absent"
	  (empty targetNamespace) element. Fixed bug #76865.

	* XmlSchemaTests.cs : added testcase for #76865.


svn path=/trunk/mcs/; revision=53746
2005-12-01 04:46:45 +00:00
Atsushi Eno 53da95a67d 2005-10-23 Atsushi Enomoto <[email protected]>
* XmlSchemaTests.cs : some namespace output strategy seems changed
	  in .NET 2.0 and they still make sense, so just mark them as
	  NotDotNet and NotWorking under 2.0.


svn path=/trunk/mcs/; revision=52096
2005-10-23 18:13:58 +00:00
Atsushi Eno d5feae8969 2005-09-30 Atsushi Enomoto <[email protected]>
* XmlSchema.cs : XmlReader position after Read() is the end of the
	  schema element.

	* XmlSchemaTests.cs : test for reader position after Read().


svn path=/trunk/mcs/; revision=51030
2005-09-30 05:42:17 +00:00
Sebastien Pouliot 3ed59f0e27 2005-08-31 Sebastien Pouliot <[email protected]>
* XmlSchemaExceptionCas.cs: New. CAS unit tests for exception 
	serialization.


svn path=/trunk/mcs/; revision=49175
2005-08-31 13:00:24 +00:00
Atsushi Eno e84646a50a 2005-06-11 Atsushi Enomoto <[email protected]>
* XmlSchemaCollection.cs, XmlSchemaCollectionEnumerator.cs :
	  GetEnumerator() was not in sync with the internal change to
	  XmlSchemaSet. Fixed bug #75126. Patch by Crestez Leonard.

	* XmlSchemaCollectionTests.cs : added test for #75126.


svn path=/trunk/mcs/; revision=45801
2005-06-11 04:46:00 +00:00
Atsushi Eno da23068c98 2005-02-28 Atsushi Enomoto <[email protected]>
* XmlSchemaTests.cs : just set NotWorking for trivial comparison tests.

	* XmlReflectionImporterTests.cs : set NotWorking for trivial empty
	  string comparison.

	* MsxslScriptTests.cs,
	  XslTransformTests.cs : set NotWorking for msxsl:script tests (they
	  premise runnable compilers existence which actually might not exist.)


svn path=/trunk/mcs/; revision=41273
2005-02-28 05:13:56 +00:00
Nick Drochak f7399a13a5 2005-01-30 Nick Drochak <[email protected]>
* XmlSchemaTests.cs: Use less strict test. Probably the order of the 
	namespaces is not required to be in any particular order.

svn path=/trunk/mcs/; revision=39793
2005-01-30 13:16:51 +00:00
Atsushi Eno fbb0b0cdc3 2005-01-11 Atsushi Enomoto <[email protected]>
* XmlSchema.cs : Write() should handle carefully output
	  namespace/prefix mapping.

	* XmlSchemaTests.cs : added TestWriteNamespaces2 ().



svn path=/trunk/mcs/; revision=38718
2005-01-11 18:31:14 +00:00
Atsushi Eno 776425f6be 2004-09-13 Atsushi Enomoto <[email protected]>
* XmlSchemaSetTests.cs : added.

svn path=/trunk/mcs/; revision=33807
2004-09-13 12:54:15 +00:00