Commit Graph
51 Commits
Author SHA1 Message Date
Marek Safar 1d8669c5c5 Clean up test encoding 2013-03-01 22:08:56 +01:00
Atsushi Eno e1f4f82a0a Do not import xs:any member as XmlElement[]. Create a wrapper class instead.
Part of bugfix #670945.
2011-05-16 18:45:08 +09:00
Atsushi Eno 32ea0e7b89 Forgot to add test xml files. 2011-03-07 13:59:22 +09:00
Atsushi Eno 0d4ad4e387 Simple content restriction was not validated when it is in further reference.
Fixed bug #595947. It was complexType [base]-> complexType [base]-> simpleType.
2011-02-08 20:52:20 +09:00
Atsushi Eno 3df62f0850 Fix bug #661400 - fix complicated namespace resolution issue.
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.
2011-01-31 18:02:09 +09:00
Raja R Harinath b293948fb7 EOL handling
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.
2010-07-25 20:17:39 +05:30
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
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 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 e6f0a2c814 2008-12-15 Atsushi Enomoto <[email protected]>
* import-subst-dbr-base.xsd, import-subst-dbr-ext.xsd :
	  new test files.


svn path=/trunk/mcs/; revision=121510
2008-12-15 10:49:12 +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
Marek Safar 4532c36f5b 2008-07-17 Marek Safar <[email protected]>
* String.cs: reverted GetHashCode changes.


svn path=/trunk/mcs/; revision=108116
2008-07-17 09:04:31 +00:00
Marek Safar bdaf16af67 Updated.
svn path=/trunk/mcs/; revision=106969
2008-07-01 10:50:45 +00:00
Atsushi Eno 9c15a0fb46 2008-06-06 Atsushi Enomoto <[email protected]>
* importNamespaceTest.xsd, xsdimporttest.xml, importedNamespace.xsd:
	  ugh, I did a couple of broken patch -i operations.


svn path=/trunk/mcs/; revision=105159
2008-06-06 14:40:51 +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 0794c874f5 2008-06-03 Atsushi Enomoto <[email protected]>
* XslVariable.cs : In XslGeneralVariable.Evaluate(), always wrap
	  custom XPathNodeIterator with XsltContext so that the iterator
	  can resolve variables. Fixed bug #316238.

	* XslTransformTests.cs : added test for bug #316238.

	* 316238-1.xsl, 316238-2.xsl : new test files.


svn path=/trunk/mcs/; revision=104748
2008-06-03 12:58:30 +00:00
Atsushi Eno dad3095d01 2008-05-22 Atsushi Enomoto <[email protected]>
* XslCompiledTransform.cs : in XmlWriterSettings, use
	  ConformanceLevel.Fragment to allow fragment output.
	  In Transform(string,string), use TextWriter output instead of
	  XmlWriter to control xml declaration output.
	  Fixed bug #391424.

	* XslTransformTests.cs : added test for bug #391424.

	* 391424.xml, 391424.xsl : new test files.

	* Makefile : more simplification (and I forgot the syntax again :/)


svn path=/trunk/mcs/; revision=103783
2008-05-22 13:45:29 +00:00
Atsushi Eno d24de5e71b 2008-05-22 Atsushi Enomoto <[email protected]>
* resolveUriSchema.xsd : forgot to add.

	* Makefile : EXTRA_DISTFILES is becoming messy, so simplify it.


svn path=/trunk/mcs/; revision=103780
2008-05-22 13:39:14 +00:00
Atsushi Eno 82d014295d 2008-04-02 Atsushi Enomoto <[email protected]>
* XsdParticleValidationState.cs : a choice with only empty particle
	  children is emptiable. Fixed bug #376395.

	* XsdValidatingReaderTests.cs : added test for bug #376395.

	* 376395.xml, 376395.xsd : new test files.

	* Makefile : extra distfiles (376395.xml, 376395.xsd).


svn path=/trunk/mcs/; revision=99679
2008-04-02 20:01:31 +00:00
Gert Driesen b10e9acc58 * 82078.xsd: Added new complex type as test for duplicate field
name.
* MapCodeGenerator.cs: Ensure fields that back properties are unique.
* XmlSerializationReaderTests.cs: Marked HandleOutAttributeParameters 
test as NotDotNet on 1.0 profile.
* XmlCodeExporterTests.cs: Improved test for duplicate identifiers.
Fixed ExportTypeMapping_Root and ExportTypeMapping_Field tests to
pass on .NET 2.0.

svn path=/trunk/mcs/; revision=99345
2008-03-30 15:25:11 +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 4dd39f8376 actually I gave wrong file name.
svn path=/trunk/mcs/; revision=88564
2007-10-31 15:27:13 +00:00
Atsushi Eno 8c2db129dd 2007-10-31 Atsushi Enomoto <[email protected]>
* XsdValidatingReader.cs : r68046 didn't really fix the issue.
	  Enabled the actual fix. and fixed bug #336625.

	* XsdValidatingReaderTests.cs : added test for #336625.

	* 336625.xsd : new test file.

	* Makefile : extra distfiles (336625.xsd).


svn path=/trunk/mcs/; revision=88537
2007-10-31 07:39:02 +00:00
Atsushi Eno f34e30d372 2007-09-21 Atsushi Enomoto <[email protected]>
* GenericOutputter.cs : fixed possible conflict for auto-filled
	  attribute prefixes. Fixed bug #325482.

	* XslTransformTests.cs : added test for bug #325482.

	* 325482.xml, 325482.xsl : new test files.

	* Makefile : extra distfiles (325482.xml / 325482.xsl).


svn path=/trunk/mcs/; revision=86132
2007-09-21 09:58:53 +00:00
Atsushi Eno 32f6484459 2007-08-21 Atsushi Enomoto <[email protected]>
* MapCodeGenerator.cs : avoid possible duplicates in generated field 
	  names. Fixed bug #82078.

	* XmlCodeExporterTests.cs : test for bug #82078.

	* 82078.xsd : new test file.

	* Makefile : extra distfiles (82078.xsd).


svn path=/trunk/mcs/; revision=84531
2007-08-21 09:24:42 +00:00
Atsushi Eno ecd315b204 2007-08-21 Atsushi Enomoto <[email protected]>
* XslFunctions.cs : fix wrong unboxing in extension functions.
	  Fixed bug #82493.

	* XslTransformTests.cs : added test for bug #82493.

	* 82394.xml, 82493.xsl : new test files.

	* Makefile : extra distfiles (82493.xml/.xsl).


svn path=/trunk/mcs/; revision=84526
2007-08-21 06:56:09 +00:00
Atsushi Eno b6cbab331e 2007-08-02 Atsushi Enomoto <[email protected]>
* 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
2007-08-02 09:21:06 +00:00
Atsushi Eno 0208465123 2007-04-24 Atsushi Enomoto <[email protected]>
* 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
2007-04-24 12:40:40 +00:00
Atsushi Eno acfc823f15 2006-10-27 Atsushi Enomoto <[email protected]>
* 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
2006-10-27 15:12:25 +00:00
Atsushi Eno bf12cc0a6d 2006-10-27 Atsushi Enomoto <[email protected]>
* DTDReader.cs : some parameter entity expansions were not done.
	  Fixed bug #79683.

	* 79683.dtd : added for bug #79683.

	* XmlTextReaderTests.cs : added bug #79683 case.

	* Makefile : added 79683.dtd to dist file.


svn path=/trunk/mcs/; revision=67025
2006-10-27 13:14:25 +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 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
Atsushi Eno f7ec99dca7 2006-04-07 Atsushi Enomoto <[email protected]>
* XslTransformProcessor.cs : push current node context after iterating
	  template target node. Added another NodesetMoveNext() which takes
	  explicit XPathNodeIterator to iterate and filter whitespaces out.

	* XslForEach.cs : push current node context after iterating "selected"
	  node-set.

	* XslTransformTests.cs : added CurrentInSelect().

	* current-in-select.xml current-in-select.xsl current-in-select.ref :
	  new files for XslTransformTests.CurrentInSelect().


svn path=/trunk/mcs/; revision=59172
2006-04-07 09:16:27 +00:00
Atsushi Eno 2253f74608 2006-04-07 Atsushi Enomoto <[email protected]>
* XslTransformProcessor.cs : in NodesetMoveNext() take
	  XPathContext.PreserveWhitespace() into consideration.

	* XslTransformTests.cs : added StripSpace().

	* stripspace.xml, stripspace.xsl : added strip-space testcases.


svn path=/trunk/mcs/; revision=59160
2006-04-06 23:41:36 +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 cbb3af807b 2006-01-11 Atsushi Enomoto <[email protected]>
* datatypesTest.xsd : missing required file for xsd tests.


svn path=/trunk/mcs/; revision=55364
2006-01-11 08:38:14 +00:00
Atsushi Eno bf5bf0e19f 2005-12-26 Atsushi Enomoto <[email protected]>
* XsdValidatingReader.cs : Fixed the bug that only the last
        * schema
          URL in a schemaLocation was processed. Patch by Vorobiev
Maksim.

        * XsdValidatingReaderTests.cs : test for multi URLs in
          schemaLocation. Test by Vorobiev Maskim.

        * multi-schemaLocation.xml,
          x-net-config-storage-factory-provider-schema.xsd,
          x-net-config-schema.xsd :
          test support files for XsdValidatingReaderTests
          .MultipleSchemaInSchemaLocation() by Vorobiev Maskim.


svn path=/trunk/mcs/; revision=54848
2005-12-26 14:16:44 +00:00
Atsushi Eno 8aa27a73cc 2005-11-17 Atsushi Enomoto <[email protected]>
* XslTransformTests.cs : added WhitespaceHandling ().

	* 91834.xml, 91834a.xml, 91834.xsl : I ended up to add new files here.


svn path=/trunk/mcs/; revision=53192
2005-11-17 16:09:59 +00:00
Atsushi Eno c041318f2c 2005-09-14 Atsushi Enomoto <[email protected]>
in System.Xml:
        * XmlTextReader.cs : when there is a heading half of surrogate
        * at the
          end of read buffer, it didn't treat it as a surrogate.
          Fixed bug #76102.

        in Test/System.Xml:
        * XmlTextReaderTests.cs : added #76102 testcase.

        in Test/XmlFiles:
        * 76102.xml : added test for bug #76102.

        in Test/System.Xml/W3C:
        * Makefile: build fix.


svn path=/trunk/mcs/; revision=50050
2005-09-14 18:18:06 +00:00
Ben Maurer 7ee4149d42 more executable bits
svn path=/trunk/mcs/; revision=46568
2005-06-27 16:07:43 +00:00
Atsushi Eno 79f7c6804b 2004-09-06 Atsushi Enomoto <[email protected]>
* added simple.xml (to be used for some tests).

svn path=/trunk/mcs/; revision=33430
2004-09-06 17:12:35 +00:00
Lluis Sanchez ce0ff3da1b Test update
svn path=/trunk/mcs/; revision=30869
2004-07-08 13:43:21 +00:00
Lluis Sanchez 5c0505d232 added literal-data.xml. This file is used by ComplexDataStructure.cs.
svn path=/trunk/mcs/; revision=24542
2004-03-24 19:32:45 +00:00
Atsushi Eno f7fa289e5c 2004-01-03 Atsushi Enomoto <[email protected]>
* Added 2,3,4,5 and 6.xsd

svn path=/trunk/mcs/; revision=21637
2004-01-03 16:06:33 +00:00
Atsushi Eno 1ecb0afa6b 2003-08-24 Atsushi Enomoto <[email protected]>
* 1.xsd, 2.xsd, 3.xsd, 4.xsd : Initial checkin.

svn path=/trunk/mcs/; revision=17557
2003-08-24 19:02:20 +00:00
Atsushi Eno 0b036eec25 2003-07-19 Atsushi Enomoto <[email protected]>
* added 1.xsd.

svn path=/trunk/mcs/; revision=16432
2003-07-19 16:50:42 +00:00
Atsushi Eno f43b79af01 2003-06-16 Atsushi Enomoto <[email protected]>
* added nested-dtd-test.xml, nested-dtd-test.dtd, nested-included.dtd.

svn path=/trunk/mcs/; revision=15428
2003-06-15 18:40:59 +00:00
Atsushi Eno 200c1c2393 2003-05-05 Atsushi Enomoto <[email protected]>
* xml.xsd : fixed invalid close tag.

svn path=/trunk/mcs/; revision=14295
2003-05-05 13:15:00 +00:00