Commit Graph
2895 Commits
Author SHA1 Message Date
Arina Itkes 72f3e9de91 Fix for exporting of a generated typed DataTable and typed DataSet. Bug 8894
svn path=/trunk/mcs/; revision=94667
2008-02-03 10:05:06 +00:00
Atsushi Eno d8ad395849 2008-01-25 Atsushi Enomoto <[email protected]>
* XmlReader.cs : MoveToNextSibling() should check EOF (as Skip() does
	  not). Fixed bug #347768.

	* XmlReaderCommonTests.cs : added test for bug #347768.


svn path=/trunk/mcs/; revision=93873
2008-01-25 03:47:12 +00:00
Atsushi Eno 9bf499089c 2008-01-24 Atsushi Enomoto <[email protected]>
* TypeData.cs : fixed setter which did not actually see the argument.
	* XmlTypeMapElementInfo.cs : some cosmetic fixes for gendarme-
	  reported issues.


svn path=/trunk/mcs/; revision=93763
2008-01-24 03:55:40 +00:00
Atsushi Eno c6ed142f1b 2008-01-19 Atsushi Enomoto <[email protected]>
* XslCopyOf.cs : when the evaluated argument was RTF (it could happen
	  when variable or extensions are used), copy the node itself, not
	  only its children. Fixed bug #322551.

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


svn path=/trunk/mcs/; revision=93314
2008-01-19 11:55:07 +00:00
Gert Driesen 49a0cca265 * XmlParserContextTests.cs: Added ctor tests.
* System.Xml_test.dll.sources: added XmlParserContextTests.cs.

svn path=/trunk/mcs/; revision=92968
2008-01-15 17:40:34 +00:00
Atsushi Eno 4e8f715a16 2008-01-15 Atsushi Enomoto <[email protected]>
* XmlParserContext.cs : do not pass invalid URI to XmlTextReader#ctor
	  even as a dummy. Fixed bug #353654.


svn path=/trunk/mcs/; revision=92935
2008-01-15 10:28:04 +00:00
Sebastien Pouliot 999d3d2182 2008-01-12 Sebastien Pouliot <[email protected]>
* DefaultContext.cs: Fix direct comparison with NaN. Found by 
	Gendarme.


svn path=/trunk/mcs/; revision=92755
2008-01-12 16:55:24 +00:00
Sebastien Pouliot 2fc499a546 2008-01-12 Sebastien Pouliot <[email protected]>
* XmlSchemaInference.cs: Fix infinite recursion in TypeInference
	property getter. Found by Gendarme.


svn path=/trunk/mcs/; revision=92753
2008-01-12 16:35:52 +00:00
Konstantin Triger e175c2c052 TARGET_JVM: make sure XmlDateTimeSerializationMode.Unspecified works
svn path=/trunk/mcs/; revision=92606
2008-01-10 17:56:47 +00:00
Atsushi Eno ea6e3df631 2008-01-08 Atsushi Enomoto <[email protected]>
* XslKey.cs, XslStylesheet.cs, Compiler.cs : XSLT 1.0 does not
	  prohibit more than one xsl:key with the same QName, so do not use
	  the name as a 'key' in the table for xsl:key. Fixed bug #351939,
	  patch by Tor Lillqvist.

	* XslTransformTests.cs : added test from bug #351939.
	  (by Tor Lillqvist)


svn path=/trunk/mcs/; revision=92426
2008-01-08 05:02:44 +00:00
Atsushi Eno 894dae4fcc 2007-12-27 Atsushi Enomoto <[email protected]>
* XslTransformTests.cs : added test for bug #349375. (Actually the
	  previous checkin fixed bug #349375.)
	  Added another notworking one inspired by the same bug.


svn path=/trunk/mcs/; revision=91940
2007-12-27 14:40:40 +00:00
Atsushi Eno 51e9004e2f 2007-12-27 Atsushi Enomoto <[email protected]>
* XslTemplate.cs, XslTransformProcessor.cs :
	  Some disambiguation around whitespace handling (input strip/preserve
	  and output control).
	* XslStylesheet.cs : change GetPreserveWhitespace() to match the
	  actual behavior; it does not (and should not) really walk through
	  ancestors. Default whitespace handling depends on the default ("*")
	  handling. (Those changes should not affect anything.)


svn path=/trunk/mcs/; revision=91939
2007-12-27 14:34:30 +00:00
Atsushi Eno 6330dd1733 2007-12-27 Atsushi Enomoto <[email protected]>
* XslCompiledTransform.cs : when loading XmlReader as an input to
	  Transform(), preserve whitespaces in the input document. Based on
	  the patch by Tor Lillqvist (part of #349375 fix).


svn path=/trunk/mcs/; revision=91930
2007-12-27 11:44:16 +00:00
Noam Lampert 4608f9902b Allow compilation in Java
svn path=/trunk/mcs/; revision=91824
2007-12-23 10:43:31 +00:00
Atsushi Eno 9b1d414235 2007-12-17 Atsushi Enomoto <[email protected]>
* XmlConvert.cs : added NET_3_5 members.


svn path=/trunk/mcs/; revision=91429
2007-12-17 10:39:16 +00:00
Atsushi Eno 92692a36b5 2007-12-17 Atsushi Enomoto <[email protected]>
* Iterator.cs : oops, extra removal that causes perf. loss.


svn path=/trunk/mcs/; revision=91406
2007-12-17 08:51:58 +00:00
Atsushi Eno a7e430277e 2007-12-17 Atsushi Enomoto <[email protected]>
* Iterator.cs : be more strict to detect the end of
	  PredicateIterator. Fixed bug #349111.

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


svn path=/trunk/mcs/; revision=91405
2007-12-17 08:25:12 +00:00
Atsushi Eno e6024b90d2 2007-12-17 Atsushi Enomoto <[email protected]>
* Expression.cs : In any comparison expr, treat RTF as equivalent to
	  string type (as specified in XSLT 1.0 section 11.1: "An operation
	  is permitted on a result tree fragment only if that operation would
	  be permitted on a string." ...). Fixed bug #349035.

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


svn path=/trunk/mcs/; revision=91402
2007-12-17 07:28:33 +00:00
Atsushi Eno 0ce63640a1 2007-12-17 Atsushi Enomoto <[email protected]>
* XslValueOf.cs : allow external elements in xsl:value-of.
	  Fixed bug #348786.

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


svn path=/trunk/mcs/; revision=91401
2007-12-17 06:31:49 +00:00
Noam Lampert 078bfb7274 Build java configuration using RT of JRE 1.4.2 for support of older java systems
svn path=/trunk/mcs/; revision=91221
2007-12-13 12:01:56 +00:00
Atsushi Eno 3b434e9bea 2007-12-06 Atsushi Enomoto <[email protected]>
* XmlUrlResolver.cs : in net_2_0, use Uri.IsAbsoluteUri to filter
	  relative URIs out.

	* XmlUrlResolverTests.cs : fixed test; file://file.txt is to access
	  such a server whose (domain) name is "file.txt", which is actually
	  an absolute URI. Remove "regression" in the nunit test.


svn path=/trunk/mcs/; revision=90794
2007-12-06 06:32:05 +00:00
Atsushi Eno a477ee03e7 revert the broken change that even fails on .NET 2.0.
svn path=/trunk/mcs/; revision=90445
2007-11-29 17:23:23 +00:00
Atsushi Eno 2ef590022e 2007-11-29 Atsushi Enomoto <[email protected]>
* XPathNavigator.cs : implemented ValueAs().

	* XPathNavigatorTests.cs : added ValueAs() test.


svn path=/trunk/mcs/; revision=90443
2007-11-29 17:20:54 +00:00
Konstantin Triger 6c84b57e08 change log for r90413
svn path=/trunk/mcs/; revision=90414
2007-11-29 07:57:46 +00:00
Konstantin Triger ae40414c3e fix ToDateTime(XmlDateTimeSerializationMode.Unspecified)/ToString(DateTime) for local time
svn path=/trunk/mcs/; revision=90413
2007-11-29 07:57:02 +00:00
Atsushi Eno b265ee6b99 2007-11-12 Atsushi Enomoto <[email protected]>
* 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
2007-11-12 00:55:56 +00:00
Atsushi Eno 5336a413fe 2007-11-09 Atsushi Enomoto <[email protected]>
* XmlTypeMapping.cs : to get schema provider method, check base
	  types as well (i.e. FlattenHierarchy). Otherwise typed DataSet
	  cannot be reflected in 2.0.


svn path=/trunk/mcs/; revision=89307
2007-11-09 10:12:48 +00:00
Atsushi Eno 0274fff8a3 2007-11-09 Atsushi Enomoto <[email protected]>
* XmlConvert.cs : ToDateTime(XmlDateTimeSerializationMode) should
	  allow more strings than existing one. Fixed bug #339004.

	* XmlConvertTests.cs : added test for #339004 and more.


svn path=/trunk/mcs/; revision=89305
2007-11-09 08:48:09 +00:00
Atsushi Eno 34694574b3 2007-11-05 Atsushi Enomoto <[email protected]>
* 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
2007-11-05 17:38:38 +00:00
Atsushi Eno 439df4a604 2007-11-02 Atsushi Enomoto <[email protected]>
* TypeTranslator.cs : for duration, rather use primitiveTypes than
	  nameCache, and hence TimeSpan could be serialized just as custom
	  type. Fixed bug #338705.

	* XmlSerializerTests.cs : added test for bug #338705.


svn path=/trunk/mcs/; revision=88729
2007-11-02 16:25:26 +00:00
Atsushi Eno d9b24722e2 2007-11-01 Atsushi Enomoto <[email protected]>
* XmlSchemaImporter.cs : simpleType is allowed to be imported.
	  (Part of #336739 fix.)

	* XmlSchemaImporterTests.cs : test for importing simple-typed
	  top-level element.


svn path=/trunk/mcs/; revision=88636
2007-11-01 11:38:14 +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
Gert Driesen 7d297a4a8a * XmlConvertTests.cs: Added link to MS bug report.
svn path=/trunk/mcs/; revision=88545
2007-10-31 09:43:18 +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 f465465b95 2007-10-30 Atsushi Enomoto <[email protected]>
* Compiler.cs : added CheckExtraAttributes() to check invalid
	  attributes on stylesheet component elements.
	  Use it in xsl:sort too.

	* XslMessage.cs, XslText.cs, XslVariable.cs, XslNumber.cs,
	  XslElement.cs, XslIf.cs, XslFallback.cs, XslCopyOf.cs,
	  XslValueOf.cs, XslComment.cs, XslAttribute.cs, XslApplyImports.cs,
	  XslApplyTemplates.cs, XslForEach.cs, XslCallTemplate.cs,
	  XslCopy.cs, XslProcessingInstruction.cs, XslChoose.cs:
	  refactory on checking invalid attributes. Fixed bug #333806.

	in Test/System.Xml.Xsl/standalone:
	* Makefile: it somehow does not work fine unless nunit-console.exe is
	  here. So just copy it here when building the test.


svn path=/trunk/mcs/; revision=88459
2007-10-30 14:45:07 +00:00
Atsushi Eno 25ad683a61 2007-10-30 Atsushi Enomoto <[email protected]>
* XmlSchemaExporterTests.cs : without Infoset(), those tests randomly
	  fail on .NET. This fix is incomplete. Someone please continue this
	  boring work. I don't want to do that.


svn path=/trunk/mcs/; revision=88453
2007-10-30 13:07:14 +00:00
Atsushi Eno 756ab6c79b 2007-10-30 Atsushi Enomoto <[email protected]>
* XmlConvert.cs : ToDateTime(string,string) should use ParseExact(),
	  not Parse(). Use 'K' for roundtrip format.

	* XmlCustomFormatter.cs : use RoundtripKind when converting to and
	  from DateTime.

	* XmlConvertTest.cs : added test for DateTime roundtrip.

	* XmlSerializerTests.cs : added test for bug #337729.


svn path=/trunk/mcs/; revision=88448
2007-10-30 12:33:34 +00:00
Atsushi Eno 1bef3d3d95 2007-10-30 Atsushi Enomoto <[email protected]>
* MapCodeGenerator.cs : found the true culprit for the previous
	  attempt to the fix.

	* XmlCodeExporterTests.cs : enable the previous test again.


svn path=/trunk/mcs/; revision=88365
2007-10-29 10:55:37 +00:00
Atsushi Eno d903039b06 2007-10-30 Atsushi Enomoto <[email protected]>
* MapCodeGenerator.cs, XmlSchemaImporter.cs: revert the previous
	  change; the type is included in the output, but it should not be
	  the base type.

	* XmlCodeExporterTests.cs : disable the previous test; it's reverted.


svn path=/trunk/mcs/; revision=88364
2007-10-29 10:41:53 +00:00
Atsushi Eno 1d08a72b56 2007-10-30 Atsushi Enomoto <[email protected]>
* MapCodeGenerator.cs, XmlSchemaImporter.cs: when a complexType has
	  simple content extension/restriction and the simple base type is
	  schema-defined, it must be written in exported code. Fixed (part
	  of?) bug #336739.

	* XmlCodeExporterTests.cs : added test for (part of?) bug #336739,
	  base simple content enum type output.


svn path=/trunk/mcs/; revision=88363
2007-10-29 10:23:35 +00:00
Atsushi Eno 3ed900c939 2007-10-26 Atsushi Enomoto <[email protected]>
* TypeTranslator.cs, XmlCustomFormatter.cs : looks like duration is
	  serialized to System.String, not TimeSpan. Fixed bug #336625.

	* XmlSerializerTests.cs : added test for DataType in [XmlElement].


svn path=/trunk/mcs/; revision=88247
2007-10-26 04:00:22 +00:00
Atsushi Eno e977cbe8df 2007-10-19 Atsushi Enomoto <[email protected]>
* SubtreeXmlReader.cs : when a subtree reader is closed, the original
	  reader moves to the end of the subtree. Fixed bug #334752, patch by
	  Scott Peterson.

	* XmlReaderCommonTests.cs : added test for bug #334752.


svn path=/trunk/mcs/; revision=87812
2007-10-19 05:36:00 +00:00
Atsushi Eno c8e0f4c0ca 2007-10-10 Atsushi Enomoto <[email protected]>
* XmlTextWriter2.cs : making <del>silly</del>funky MS compatibility
	  change in WriteStartAttribute() to call WriteEndAttribute() if an
	  attribute is open.


svn path=/trunk/mcs/; revision=87281
2007-10-10 17:22:43 +00:00
Atsushi Eno cfbd08e86f 2007-10-10 Atsushi Enomoto <[email protected]>
* XmlTextWriter2.cs : I could make previous change only in 2.0 mode.


svn path=/trunk/mcs/; revision=87261
2007-10-10 11:42:52 +00:00
Atsushi Eno f209b0ba7b 2007-10-10 Atsushi Enomoto <[email protected]>
* XmlTextWriter2.cs : When it is at Error state, do not try to close
	  attributes and elements at Close(). They will result in further
	  error and rather hide the actual issue when disposed.


svn path=/trunk/mcs/; revision=87254
2007-10-10 11:11:10 +00:00
Atsushi Eno 5597ae55fd 2007-10-10 Atsushi Enomoto <[email protected]>
* XslCompiledTransform.cs : actually previous change was not enough.
	  Added a commented-out example of debugger method usage.


svn path=/trunk/mcs/; revision=87253
2007-10-10 11:02:35 +00:00
Atsushi Eno 895c6c3f89 2007-10-10 Atsushi Enomoto <[email protected]>
* XslCompiledTransform.cs : a bit more of debugging help. Now it
	  stores stylesheet elements when "enableDebug" is true.


svn path=/trunk/mcs/; revision=87248
2007-10-10 09:43:37 +00:00
Atsushi Eno 854f0d1cdb 2007-09-28 Atsushi Enomoto <[email protected]>
* XmlWriter.cs : it is now documented that WriteNode(XPathNavigator)
	  ignores attributes and namespace decls, so do that.
	* XQueryConvert.cs : removed extra stuff that are not in use.

	* XmlWriterTests.cs : added WriteNodeXPathNavigatorAttribute().


svn path=/trunk/mcs/; revision=86546
2007-09-28 05:27:11 +00:00
Atsushi Eno 64499b7d35 2007-09-27 Atsushi Enomoto <[email protected]>
* XmlAtomicValue.cs :
	  Added ToString(). Public API metadata completion.


svn path=/trunk/mcs/; revision=86508
2007-09-27 15:40:06 +00:00
Atsushi Eno 090a3ab56b 2007-09-27 Atsushi Enomoto <[email protected]>
* XmlMapping.cs : added XsdElementName.
	* XmlSerializationWriter.cs : some more implementation.


svn path=/trunk/mcs/; revision=86507
2007-09-27 15:36:14 +00:00