Compare commits

...
Author SHA1 Message Date
Atsushi Eno 3bed938706 Fix mobile build wrt. Res classes. 2015-02-21 03:52:23 +08:00
Atsushi Eno 648d57f953 Merge branch 'import-system-xml' of github.com:mono/mono into import-system-xml 2015-02-21 03:41:24 +08:00
Atsushi Eno 684f9b08a5 Merge branch 'master' of github.com:mono/mono
(some commits occurred while I have been cherry-picking a lot of "they are
in import-system-xml branch but it works with existing sys.xml" stuff.)
work in master
2015-02-21 03:35:57 +08:00
Atsushi Eno 545cdaf8f7 [WCF] XmlWriter.WriteAttributeString(string,string) does not accept xml:*.
It needs LocalName. So use other overloads instead.
2015-02-21 03:33:23 +08:00
Atsushi Eno 6499ba871d [XLinq] create new instance of XmlSchemaInfo for each XObject from XmlReader.
In referencesource, XmlReader.SchemaInfo does not return different instances
for each node at its state but just returns the XmlReader itself (which
implements IXmlSchemaInfo). Hence, if we just set the corresponding
IXmlScemaInfo to each XObject, it results in inconsistent state.

This fixes two regressions in ExtensionsTest (XAttributeFailValidate and
XAttributeThrowExceptionValidate).
2015-02-21 03:32:44 +08:00
Atsushi Eno 923ed6b241 [Sys.Security] don't expect XmlNode.ChildNodes returns the same instance.
It did in mono implementation. It doesn't on referencesource.
2015-02-21 03:31:39 +08:00
Atsushi Eno d9184320f7 [Configuration] skip whitespaces in the settings xml.
This is required after we switch to referencesource, which somehow
preserves whitespaces during deserialization from xml.
2015-02-21 03:29:21 +08:00
Atsushi Eno 2951e3b6d8 [Xaml] XamlXmlWriter should flush output when disposing.
With referencesource, XmlWriter for TextWriter buffers the output.
When closing XamlXmlWriter, it does not flush the output, causing
the buffered XmlWriter output discarded in the wild.
2015-02-21 03:28:44 +08:00
Atsushi Eno 3001bd0d94 [WCF] for certain kind of Messages, do now write BodyContents twice. 2015-02-21 03:28:07 +08:00
Atsushi Eno a1d5c9c48d [Sys.Xml] when deserializing XmlNode, use XmlReader's NameTable. 2015-02-21 03:26:10 +08:00
Atsushi Eno abb3e7dcfc [WCF] fix wrong using scope on XmlWriter in security token serializer test. 2015-02-21 03:25:29 +08:00
Atsushi Eno cdb4002190 [WCF] do not use XmlReader.Name to check LocalName.
It won't match for prefixed ones.
2015-02-21 03:24:54 +08:00
Atsushi Eno 358275e836 [WCF] Do not expect XmlElement.FirstChild is non-whitespace here.
Fix several regressions caused by referencesource Sys.Xml import.
2015-02-21 03:24:12 +08:00
Atsushi Eno a0dece2329 [S.R.Serialization] fix referencesource glitch in XmlMtomDictionaryWriter.
MTOM writer didn't expect multiple top-level elements are rejected at
ConformanceLevel.Auto, neiher do against Write[Start/End]Document() with
such elements.

Also Flush is often needed before directly writing to the Stream(Writer).

EOLs handling was also inconsistent between referencesource and old mono.
2015-02-21 03:23:15 +08:00
Atsushi Eno a3383d1be5 [S.R.Serialization] add missing attributes in MS serialization namespace.
This fixes another regression which failed to load Test ns22.xsd.
2015-02-21 03:22:08 +08:00
Atsushi Eno 74e70ff985 [Sys.Xml] don't use XmlSchemaElement.ElementType anymore. MS doesn't use it.
XML Schema compilation is done in referencesource.
XmlSchemaImporter is based on mono code. Hence this glitch happened.

The following regression is fixed:

1) MonoTests.System.Xml.Serialization.XmlSchemaImporterTests.DefaultTypeTopLevelElementImportsAllComplexTypes : System.InvalidOperationException : 'Root' is missing.
at System.Xml.Serialization.XmlSchemaImporter.ImportTypeMapping (System.Xml.XmlQualifiedName name) [0x0005a] in /svn/mono/mcs/class/System.XML/System.Xml.Serialization/XmlSchemaImporter.cs:453
at MonoTests.System.Xml.Serialization.XmlSchemaImporterTests.DefaultTypeTopLevelElementImportsAllComplexTypes () [0x00039] in /svn/mono/mcs/class/System.XML/Test/System.Xml.Serialization/XmlSchemaImporterTests.cs:1104
at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&)
at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00054] in /svn/mono/mcs/class/corlib/System.Reflection/MonoMethod.cs:230
2015-02-21 03:19:06 +08:00
Atsushi Eno d41451bcbf Our XmlDictionaryWriter implementation expects XmlReader at non-Initial state.
It is to fix glitch between mono Sys.Xml and referencesource.
2015-02-21 03:16:58 +08:00
Atsushi Eno c56064b05c [Sys.Data] DataSet.ReadXmlSchema(): use LocalName instead of Name on XmlReader.
MS referencesource Sys.Xml uncovered this bug.
2015-02-21 03:16:15 +08:00
Zoltan Varga 2202e97c33 [aot] Fix the emission of llvm plt entries. 2015-02-20 14:00:17 -05:00
Marek Safar cfbb82b747 [corlib] Fixes build with old UnmanagedMemoryStream 2015-02-20 18:46:31 +01:00
Atsushi Eno 49d79191ca Add missing new I18N DefaultEncoder class. 2015-02-21 00:52:26 +08:00
Atsushi Eno 3f355da212 Add old mono Encoder and use it in MonoEncoding to keep compatibility.
There was some glitch in CP932 encoding and referencesource Encoder
that caused error in Convert(), shown in System.XML tests.
To avoid this, bring back old Encoder as we used before and keep
compatible processing.

It might be buggier, but doesn't regress. We may be able to bring nlp-
based Encodings later too.
2015-02-21 00:52:20 +08:00
Zoltan Varga 392200a812 [runtime] Export the GC bridge api functions. 2015-02-20 11:51:19 -05:00
Atsushi Eno b074521b4a bump referencesource (now points to primary mono branch). 2015-02-21 00:49:45 +08:00
Atsushi Eno 0ff0e4a3ab Add referencesource-based message strings to the build.
It should be using RESOURCE_STRINGS, but mcs doesn't support its special
option for string resources for multiple files.

The resource .cs files are generated by genresstringcs.sh, but System.Xml.txt
contains some bogus characters that prevents source generation, so after
the tool has generated the sources, I manually fixed them.
It won't matter once mcs supports the option for multiple files anyways.
2015-02-21 00:32:29 +08:00
Miguel de Icaza 0e8701a161 Merge pull request #1582 from zevane/patch-1
Make the class thread-safe
2015-02-20 11:23:50 -05:00
Marek Safar 6800659e8c [corlib] Remove ResourceCloseHandler usage 2015-02-20 17:07:15 +01:00
Marek Safar 01db1cc9ad [corlib] Add more internal apis 2015-02-20 15:09:14 +01:00
Atsushi Eno 4f2fdce3f1 Merge branch 'master' into import-system-xml 2015-02-20 20:36:03 +08:00
Marek Safar ed2510cc14 [build] Handle multiple entries in RESOURCE_STRINGS 2015-02-20 13:34:18 +01:00
Atsushi Eno 53fe2fcc6c Merge branch 'master' into import-system-xml
Conflicts:
	external/referencesource
2015-02-20 20:25:27 +08:00
Marek Safar 7a57bd6b3d Bump reference sources to revert Add read-only interfaces to some collections 2015-02-20 11:25:23 +01:00
Marek Safar 8e90a963d6 Use more resource text strings from reference sources 2015-02-20 11:16:18 +01:00
Marek Safar 71533001b8 [System.Runtime.Serialization] Makefile cleanup 2015-02-20 09:57:30 +01:00
Marek Safar f364eca194 [System.Numerics] Cleanup Makefile 2015-02-20 09:52:44 +01:00
Marek Safar b1941bc08a [System.ComponentModel.DataAnnotations] Makefile clean-up 2015-02-20 09:44:37 +01:00
zevane b3ddd74efb Make the class thread-safe
If two threads request the same section, which isn't yet cached, both try to insert it into the cache, causing a "Key duplication when adding...". It's neccesary to lock the getter. This solves bugs #5263, #7785, #18303
2015-02-20 09:12:47 +01:00
Marek Safar 754793df9e [corlib] Switch to official mscorlib.txt 2015-02-20 08:49:17 +01:00
Miguel de Icaza 414d11f976 Bring referencesource messages that were just published by Microsoft 2015-02-19 21:02:49 -05:00
Zoltan Varga 285f867593 [aot] Fix the emission of dwarf debug info. 2015-02-19 20:24:38 -05:00
Zoltan Varga 5fc41fcb56 [aot] Emit dwarf emission on arm64. 2015-02-19 20:02:39 -05:00
Zoltan Varga af3c010407 [llvm] Fix a bug introduced by 61ae03fef1. 2015-02-19 18:53:37 -05:00
Zoltan Varga c3611d4d3b [llvm] Mark methods with the NOINLINING attribute as non-inlinable. 2015-02-19 17:17:20 -05:00
Zoltan Varga 61ae03fef1 [llvm] Refactor the calling convention handling code a bit, add support for returning fp structures by value. 2015-02-19 17:04:07 -05:00
Ludovic Henry 986e58d530 [tpl] Increase wait timing in test suite to adapt to the slower ramp up of the ThreadPool 2015-02-19 15:49:19 -05:00
Zoltan Varga 127602a843 [aot] Enable LLVM level inlining. 2015-02-19 14:34:33 -05:00
Marek Safar fbe7c55a56 [system.web] Tests update 2015-02-19 20:12:52 +01:00
Marek Safar 6e488234ae [WindowsBase] Implement Vector formattable ToString 2015-02-19 20:12:52 +01:00
Marek Safar ea43322c29 [corlib] BufferedStream from reference sources 2015-02-19 20:12:51 +01:00
Zoltan Varga 689a615a71 [llvm] Mark methods with clauses as noinline. 2015-02-19 14:06:20 -05:00
Zoltan Varga e869cc56a5 [jit] Fix the overflow checks in the liveness2 pass since the liveness ranges are stored as signed ints. 2015-02-19 14:05:51 -05:00
Zoltan Varga ae9d99d2d3 [aot] Fix catching exceptions in gshared methods on amd64. 2015-02-19 13:26:23 -05:00
Atsushi Eno 6709c2a45c [xml] update message resources for referencesource. 2015-02-20 01:52:43 +08:00
Zoltan Varga eb7ed887ac [llvm] Mark the mono_aot_personality () function as used, to prevent llvm from optimizing it away. 2015-02-19 12:10:02 -05:00
Zoltan Varga 08b8f74db5 [runtime] Export a few functions needed by xam.mac. 2015-02-19 11:41:11 -05:00
Jo Shields 2750f4970d Add ReferenceSources/mscorlib.txt to EXTRA_DIST (fixes distcheck) 2015-02-19 16:11:28 +00:00
Marek Safar 65347a166e [corlib] Text streams from reference sources 2015-02-19 17:04:14 +01:00
Marek Safar ce4e2497be [corlib] Use public TextWriter.Synchronized for Console synchronization and leave stream closing handling to underlying stream 2015-02-19 16:42:57 +01:00
Marek Safar 1425ace040 [corlib] Stream, MemoryStream from reference sources 2015-02-19 13:04:46 +01:00
Marek Safar 8da38a9e4a [corlib] Access null stream using public property 2015-02-19 13:04:46 +01:00
Marek Safar ffc36ef3bd [corlib] Rename IsDirectorySeparator method to match reference sources 2015-02-19 13:04:46 +01:00
Alex Rønne Petersen 9af7d9083a Stop building with -Wdeclaration-after-statement since we're C99 now. 2015-02-19 11:04:59 +01:00
Zoltan Varga f8c5acaf45 [aot] Fix an assertion. 2015-02-18 20:35:47 -05:00
Zoltan Varga 2c1b64477b [llvm] Emit null checks for remainders as well. 2015-02-18 19:15:12 -05:00
Zoltan Varga 5e0b127e15 [llvm] Emit null checks in div opcodes if needed. 2015-02-18 19:04:51 -05:00
Zoltan Varga a0c1fb5a1a [aot] Fix binary search in the code offsets table when emitting llvm code separately. 2015-02-18 19:04:08 -05:00
Zoltan Varga 98316e0be1 [aot] Fix the computation of LLVM code ranges. 2015-02-18 18:24:49 -05:00
Jo Shields 2d6092f45e Ensure check-seq-point target exits immediately on failure. 2015-02-18 23:14:19 +00:00
Zoltan Varga 2c69ccd9f0 [jit] Disable llvm support for the atomic load/store opcodes for now to fix corlib test failures. 2015-02-18 17:31:02 -05:00
Zoltan Varga 77f4176af0 [aot] Handle separate blocks of llvm and jitted code correctly. 2015-02-18 17:10:57 -05:00
Mark Probst fee8ae7ef6 [sgen] Correctly calculate size of zero-based one-dimensional non-vector arrays. 2015-02-18 12:43:31 -08:00
Marek Safar a803d17038 [mcs] Make compiler output deterministic. Fixes #26842 2015-02-18 20:02:31 +01:00
Zoltan Varga 28a2664d4a Merge pull request #1576 from McSherry/patch-1
revises GZipStream ctor parameter names
2015-02-18 13:41:08 -05:00
Zoltan Varga 04ba85af27 [runtime] Really fix the loadable LLVM build. 2015-02-18 13:39:08 -05:00
Liam McSherry dd939ec86a revises GZipStream ctor parameter names
By changing the names of the parameters, code that uses .NET GZipStream constructors[1][2] with named parameters can use this GZipStream without change.

[1]: https://msdn.microsoft.com/en-us/library/as1ff51s(v=vs.110).aspx
[2]: https://msdn.microsoft.com/en-us/library/27ck2z1y(v=vs.110).aspx
2015-02-18 18:32:43 +00:00
Jo Shields 9f5a7ae769 Just avoid BSD sed altogether. 2015-02-18 18:29:01 +00:00
Jo Shields 85f78490d2 More fixes for BSD sed breaking check-seq-point target 2015-02-18 17:42:15 +00:00
Jo Shields dad995933c Further fixes to check-seq-point test 2015-02-18 17:17:21 +00:00
Jo Shields afc70b2b7e Fix test suite on OSX 2015-02-18 16:54:54 +00:00
Zoltan Varga 5e4ee3ccea [runtime] Fix the loadable LLVM build. 2015-02-18 11:43:32 -05:00
Marek Safar 038b3b6cea Bump ikdasm to fix crashes on mobile mscorlib 2015-02-18 17:05:16 +01:00
João Matos 08ea547ec4 Merge pull request #1575 from mono/revert-1574-patch-1
Revert "revises GZipStream ctor parameter names"
2015-02-18 16:00:06 +00:00
João Matos f0a399e640 Revert "revises GZipStream ctor parameter names" 2015-02-18 15:59:39 +00:00
João Matos fb9ae0f835 Merge pull request #1574 from McSherry/patch-1
revises GZipStream ctor parameter names
2015-02-18 15:59:16 +00:00
Liam McSherry 1f07b1320c revises GZipStream ctor parameter names
By changing the names of the parameters, code that uses .NET GZipStream constructors[1][2] with named parameters can use this GZipStream without change.

[1]: https://msdn.microsoft.com/en-us/library/as1ff51s(v=vs.110).aspx
[2]: https://msdn.microsoft.com/en-us/library/27ck2z1y(v=vs.110).aspx
2015-02-18 15:55:01 +00:00
João Matos 8e87cce42c [profiler] Fixed an Android build regression introduced by 2b74940f64. 2015-02-18 15:29:57 +00:00
Zoltan Varga bfafeddc2b [runtime] Use -fvisibility=hidden so only symbols marked with MONO_API are exported. Use a separate SHARED_CFLAGS variable so it only affects a subset of libs. 2015-02-18 08:12:32 -05:00
Zoltan Varga 0927b86347 Revert "[runtime] Use -fvisibility=hidden so only symbols marked with MONO_API are exported."
This reverts commit 8a5a230aec.

Revert this as it still causes test failures.
2015-02-18 08:11:22 -05:00
João Matos 7e9504a10d [monodis] Fixed building against LLVM-compiled Mono. 2015-02-18 12:49:01 +00:00
João Matos b50b381226 Merge pull request #1572 from directhex/emit-nunit-xml-in-unmanaged-tests
Emit NUnit representation of check-seq-points target.
2015-02-18 12:26:09 +00:00
Jo Shields a34e257fd2 Emit NUnit representation of check-seq-points target.
This generates an XML representation of the check-seq-points target,
as separate tests, which can be easily tracked by anything which
parses NUnit output (e.g. Jenkins or other CI systems). For example,
we are currently regressed on this on ARM.
2015-02-18 12:10:39 +00:00
Marek Safar da706a2058 [corlib] Removes extra bufffer from FileStream async mode writes. Fixes #27086 2015-02-18 12:56:36 +01:00
Martin Baulig a20a0459be Merge pull request #1464 from akoeplinger/fix-portable-target
[xbuild] Only execute PCL target "ImplicitlyExpandTargetFramework" when corresponding property is true
2015-02-18 08:12:08 +01:00
Miguel de Icaza aeb24275bc Merge pull request #1563 from directhex/emit-nunit-xml-in-unmanaged-tests
Generate NUnit interpretation of whether "mono --regressions" passed
2015-02-17 23:27:58 -05:00
Zoltan Varga 8a5a230aec [runtime] Use -fvisibility=hidden so only symbols marked with MONO_API are exported. 2015-02-17 19:05:03 -05:00
Zoltan Varga 2b74940f64 [runtime] Link the logging profiler against eglib. 2015-02-17 19:03:39 -05:00
Zoltan Varga 065f41d168 [runtime] Export mono_threads_attach_tools_thread (). 2015-02-17 19:03:39 -05:00
Marek Safar 4d91c8e7d2 [build] Remove misused bootstrap profile definition 2015-02-17 21:58:23 +01:00
Marek Safar 451e14e4c8 [corlib] Remove duplicate source files 2015-02-17 21:43:23 +01:00
Marek Safar c495250fde [corlib] Replace resource keys with actual messages during compilation 2015-02-17 21:43:22 +01:00
Rodrigo Kumpera 04eeb70c8c Merge pull request #1570 from mono/fix27010
Bug 27010 - Difference in Assembly.GetExportedTypes with .NET
2015-02-17 13:49:05 -06:00
Alex Rønne Petersen 8bf480fc62 Merge pull request #1571 from evincarofautumn/fix-warning
[utils] Fix warning in Makefile.am.
2015-02-17 19:58:14 +01:00
Jon Purdy f14d23b7f0 [utils] Fix warning in Makefile.am. 2015-02-17 10:56:15 -08:00
João Matos b8dec77eea [mini] Improve the driver to handle more cases of incompatible cross-compilation targets. 2015-02-17 16:12:49 +00:00
João Matos ac8ae330c7 [metadata] Do not try to use host context members when cross-compiling. 2015-02-17 16:12:11 +00:00
João Matos 85e5ebbfa9 [metadata] Add missing ARM64 object offsets.
This fixes the mobile products build with Mono master.
2015-02-17 16:11:21 +00:00
Zoltan Varga 0ba6d1777d [aot] Fix the emission of ElementAddr wrappers. 2015-02-17 07:46:11 -05:00
Zoltan Varga 4c8a1a6733 [runtime] Link monodis against libmonoruntime instead of libmono which can be a dynamic lib. 2015-02-17 06:59:29 -05:00
Zoltan Varga ff2cfae862 [gsharedvt] Implement support for multi-dimensional arrays in gsharedvt methods. 2015-02-17 06:57:43 -05:00
Zoltan Varga acbe5f52d5 Fix a warning. 2015-02-17 05:44:58 -05:00
Marek Safar 673e8fa8ee [mcs] Single name meaning relaxation to match roslyn 2015-02-17 10:59:33 +01:00
Alex Rønne Petersen 33ad107825 Update refsrc to get read-only interface changes for System/System.Core. 2015-02-17 10:53:10 +01:00
Marek Safar 877e8ce941 [mcs] Fixes check for overriden auto-properties. 2015-02-17 08:14:21 +01:00
Ungureanu Marius 818d229538 Bug 27010 - Difference in Assembly.GetExportedTypes with .NET 2015-02-17 06:41:12 +02:00
Alex Rønne Petersen 235f543d94 [mini] Fix a crash on armel. 2015-02-17 02:04:15 +01:00
Zoltan Varga 6ee1b1b565 [jit] Add tests for arm64 gsharedvt argument passing. 2015-02-16 16:07:03 -05:00
Zoltan Varga 175c1a521d [jit] Add tests for arm64 gsharedvt argument passing. 2015-02-16 15:20:17 -05:00
Atsushi Eno 7acf134f87 Merge branch 'master' into import-system-xml-2 2015-02-17 02:45:26 +08:00
Atsushi Eno fa548405b0 Update all mcs errors expected messages for referencesource changes. 2015-02-17 02:44:27 +08:00
Atsushi Eno 843c848204 Add missing new I18N DefaultEncoder class. 2015-02-17 02:44:00 +08:00
Alexander Köplinger 8f7a551c0c [Microsoft.Build.Tasks] Rethrow exception in Copy task
This way we don't lose the original stacktrace.
2015-02-16 19:05:00 +01:00
Atsushi Eno 497ce22fc6 Merge branch 'master' into import-system-xml-2 2015-02-17 00:49:51 +08:00
Atsushi Eno 653ec37674 Fix regression in mcs/tools/mdoc by giving referencesource-based message.
(The error message is actually created by ourselves.)
2015-02-17 00:17:14 +08:00
Marek Safar 724c1becc1 Add new test 2015-02-16 17:03:50 +01:00
Marek Safar ed517ad778 [mcs] Implements dictionary initializers on pointer types 2015-02-16 16:48:24 +01:00
Miguel de Icaza aef0b3e04c Merge pull request #1542 from ninjarobot/UriTemplateMatchException
Fix to UriTemplate.Match to properly handle query parameters without a v...
2015-02-16 10:19:44 -05:00
Miguel de Icaza 5715cdc582 [System.ServiceModel] Prevent server crash when client disconnect
This patch is an updated version of a pull request (377) from Rob
Wilkens to fix #5926
2015-02-16 10:01:22 -05:00
Atsushi Eno 5b3788b38f Add old mono Encoder and use it in MonoEncoding to keep compatibility.
There was some glitch in CP932 encoding and referencesource Encoder
that caused error in Convert(), shown in System.XML tests.
To avoid this, bring back old Encoder as we used before and keep
compatible processing.

It might be buggier, but doesn't regress. We may be able to bring nlp-
based Encodings later too.
2015-02-16 21:06:51 +08:00
João Matos bccf5cf121 [aot] Re-organize JSON dumping code. 2015-02-16 12:48:05 +00:00
João Matos d9234357f6 Revert "[aot] Re-organize JSON dumping code."
This reverts commit 25969466b5.
2015-02-16 12:46:29 +00:00
João Matos b4926395c6 [git] Ignore Doxygen-related generated files. 2015-02-16 12:39:03 +00:00
Zoltan Varga 25969466b5 [aot] Re-organize JSON dumping code. 2015-02-16 12:38:40 +00:00
Atsushi Eno abdd0768e4 Merge branch 'master' into import-system-xml-2 2015-02-16 15:43:10 +08:00
Marek Safar bc57fda921 Merge pull request #1568 from akoeplinger/xbuild
[Microsoft.Build.Tasks] Implement retries in Copy task and add a stub.
2015-02-16 07:54:54 +01:00
Atsushi Eno 90b1124402 Merge branch 'import-text-encoding-2' 2015-02-16 14:34:19 +08:00
Alexander Köplinger 40c0dfcf93 [Microsoft.Build.Tasks] Add stub for UseHardlinksIfPossible to Copy task
Creating hardlinks in .NET doesn't have a nice API and using Mono.Unix/Pinvoke doesn't
seem worth the effort at this point since the feature is off by default on msbuild as well.
2015-02-16 01:50:07 +01:00
Alexander Köplinger baaf07c104 [Microsoft.Build.Tasks] Implement retries in Copy task 2015-02-16 01:38:06 +01:00
Atsushi Eno e4b2bc75aa [sys.xaml] serialize string value as string, do not try ValueConverter.
Fixed some xwt object serialization.
2015-02-16 03:32:49 +08:00
Zoltan Varga bcd70a77a7 [jit] Fix a regression introduced by 00a28a7dfd which disabled liveness2 for most methods. 2015-02-14 15:51:11 -05:00
Zoltan Varga bca66a090d [arm64] Add a test for vtype by ref returns in dyn calls. 2015-02-13 17:54:31 -05:00
Atsushi Eno ef815643d6 Merge branch 'master' into import-system-xml 2015-02-14 02:41:47 +08:00
João Matos 874d17321d [runtime] Fixed TLS detection on AMD64 to support cross-compilation. 2015-02-13 16:45:46 +00:00
Marek Safar 52c33f00ff [mcs] Better error reporting after delegate probing failed. Fixs #27043 2015-02-13 17:42:41 +01:00
João Matos e3279063de [aot] Added JSON dumping support.
This is enabled by passing "aot=dump" to the Mono AOT driver and will create a JSON file in the working directory with the name of the assembly.

It's still a work-in-progress and will see improvements in the data dumped as it's needed.
2015-02-13 16:41:07 +00:00
Marek Safar b9c8a612b7 [mcs] Set fixed buffer layourt wihout StructLayoutAttribute when possible. Fixes #27020 2015-02-13 16:49:22 +01:00
Marek Safar 8d3c6d44f8 [corlib] Random from reference sources 2015-02-13 15:05:43 +01:00
Marek Safar da9546edfd [corlib] MissingMember exceptions from reference sources 2015-02-13 14:58:40 +01:00
Marek Safar 09b16951bc [corlib] UnitySerialization from reference sources 2015-02-13 14:45:46 +01:00
Marek Safar 8157ba59ce [system.net.http] Parsing of nested parens inside comment. Fixes #27036 2015-02-13 14:37:32 +01:00
Marek Safar 1128af49cf [mcs] Resolve using aliases on demand to fix issue with nested types. Fixes #27001 2015-02-13 14:37:31 +01:00
Atsushi Eno 6a2bf11ad1 Merge branch 'master' into import-system-xml
Conflicts:
	external/referencesource
2015-02-13 21:02:19 +08:00
João Matos 08014c4629 [monodis] Attempt to fix the Cygwin build.
CCLD     monodis.exe
../../mono/metadata/.libs/libmonoruntimesgen-static.a(libmonoruntimesgen_static_la-opcodes.o): In function `mono_opcode_name':
/cygdrive/c/projects/mono-817/mono/metadata/opcodes.c:63: multiple definition of `mono_opcode_name'
../mini/.libs/libmonosgen-2.0.dll.a(d001720.o):(.text+0x0): first defined here
collect2: error: ld returned 1 exit status
2015-02-13 12:43:06 +00:00
Atsushi Eno f47937f8f3 avoid reflection in EncodingHelper.
as per https://github.com/mono/mono/pull/1566#discussion_r24653304
2015-02-13 18:25:49 +08:00
Atsushi Eno 59dc2b42c8 [encoding] import referencesource encoding foundation types.
This change does not involve Windows-specific NLS-based encodings.
We will be still using I18N assemblies until we make more grand design
changes (Xamarin products premise those assemblies).

This also fixes bug #23771 and probably more.
2015-02-13 16:41:05 +08:00
Zoltan Varga 2a3385da86 Fix a warning. 2015-02-13 02:16:16 -05:00
Alex Rønne Petersen 61e8b5e6d0 [mini] Add a MONO_ARM_FORCE_SOFT_FLOAT environment variable. 2015-02-13 08:08:44 +01:00
Zoltan Varga 8a3b8e716f [runtime] Overwrite logging profiler output files automatically. 2015-02-13 00:39:48 -05:00
Zoltan Varga f16a4a1975 [runtime] Export mono_personality (), which is accessed from llvm compiled code. 2015-02-13 00:29:24 -05:00
Zoltan Varga b45199d288 [corlib] Fix a race in LazyTest.EnsureSingleThreadSafeExecution (). 2015-02-13 00:15:52 -05:00
Zoltan Varga 82554c4e89 [runtime] Add a SHARED_CFLAGS autoconf var which can be used to pass the -fvisibility=hidden flag. 2015-02-13 00:10:51 -05:00
Rodrigo Kumpera 19a22ede0d Merge pull request #1439 from BrzVlad/feature-managed-allocator
[jit] Optimize the managed allocator fastpath for small objects
2015-02-12 17:43:52 -06:00
Atsushi Eno 93ce056a76 Merge pull request #1496 from echampet/serializers
System.Xml.Serialization: fix xml serializers generation for Web Services
2015-02-13 05:08:10 +08:00
Atsushi Eno 33694c02b3 [encoding] as part of referencesource import, use new EncodingHelper class.
This will remain after importing referencesource and offer mono-only
internals for some classes. This involves icall (owner class) change.
2015-02-13 04:24:47 +08:00
Marek Safar 2ca5117fd2 [system] Mark ping MT implementation as broken 2015-02-12 19:09:08 +01:00
João Matos ccf89b6b5b [runtime] Fixed TLS detection on x86 to support cross-compilation. Fixes #26969.
https://bugzilla.xamarin.com/show_bug.cgi?id=26969.
2015-02-12 17:40:13 +00:00
Zoltan Varga 83ae5b92ac [runtime] Fix an automake warning. 2015-02-12 12:29:37 -05:00
Zoltan Varga 679f9b44a5 [runtime] Fix an initialization race when using custom marshallers. 2015-02-12 12:13:54 -05:00
João Matos 98a88d8009 Merge pull request #1534 from haf/bugs/hmac-wrong-keysizes
Bugs/hmac wrong keysizes
2015-02-12 16:46:00 +00:00
Marek Safar 72eb18f84d [system] More linker friendly tests 2015-02-12 17:00:34 +01:00
Jo Shields 12baa6e696 Generate NUnit interpretation of whether "mono --regressions" passed 2015-02-12 15:22:17 +00:00
Zoltan Varga d7ae2816fe Merge pull request #1562 from vkargov/master
[runtime] Mark TLS variables as explicitly used
2015-02-12 10:03:40 -05:00
Vladimir Kargov 16ee025230 [runtime]
Mark TLS variables as explicitly used to avoid their unwarranted deletion
by the compiler overlooking their usage in inline assembly sections.
2015-02-12 17:45:34 +03:00
João Matos 90185288b1 [aot] Fixed LLVM assembly generation for non-Mach targets.
Fixes bugzilla #26964.
2015-02-12 13:42:46 +00:00
Marek Safar 45448a3f16 [corlib] Add timeout to more tests 2015-02-12 14:21:24 +01:00
Zoltan Varga 9eea9b6d70 [aot] Fix emission of symbol sizes which got broken by 05cd4225b2. 2015-02-12 07:49:08 -05:00
Marek Safar 3af8147e4d [system] Add old monotouch test codepath 2015-02-12 13:24:16 +01:00
Marek Safar 3d3c8b9bc6 [system.core] Fix wrong 405f9534df 2015-02-12 13:20:10 +01:00
Zoltan Varga 0871f1f266 Revert "[runtime] Use -fvisibility=hidden so only symbols marked with MONO_API are exported."
This reverts commit 90e86725ac.

Revert this as it causes many test failures.
2015-02-12 06:47:09 -05:00
Zoltan Varga b64c24b4ea [runtime] Export mono_gc_toggleref_add (). 2015-02-12 06:45:45 -05:00
Zoltan Varga 90e86725ac [runtime] Use -fvisibility=hidden so only symbols marked with MONO_API are exported. 2015-02-12 05:22:52 -05:00
Zoltan Varga 17eadbf010 [runtime] Define MONO_API_EXPORT properly for gcc, and define MONO_DLL_EXPORT so it is actually used during the build. 2015-02-12 05:21:50 -05:00
Zoltan Varga 029753034f Revert "[runtime] Use -fvisibility=hidden so only symbols marked with MONO_API are exported."
This reverts commit beb1463b6c.

Revert this for now as it breaks loading symbols from the mono executable on osx.
2015-02-12 04:51:06 -05:00
Marek Safar 52227a1e6d [runtime] Return strongly typed array from GetModules to match managed signature. Fixes a crash with strongly typed enumerator 2015-02-12 10:09:06 +01:00
Marcos Henrich b3aec8113a [corlib] Fixes commit ceef1e2.
We want to remove the module check from GetMethodToken not SetUserEntryPoint.
2015-02-12 08:59:21 +00:00
Zoltan Varga 4ef4090a22 [runtime] Export symbols from libtest. 2015-02-12 03:53:26 -05:00
Zoltan Varga 250cd40b86 [runtime] Remove unused MONO_ARCH_SAVE_REGS declarations. 2015-02-12 03:46:49 -05:00
Zoltan Varga b34c3f6f64 [jit] Remove unused MONO_ARCH_SAVE_REGS declarations. 2015-02-12 03:32:58 -05:00
Atsushi Eno 0ba544bb3e bump referencesource (merged mono branch into import-system-xml branch). 2015-02-12 16:30:46 +08:00
Zoltan Varga d9259e59e1 [monodis] Build monodis against the static mono libraries. 2015-02-12 03:04:39 -05:00
Atsushi Eno 844802dcbc Merge branch 'master' into import-system-xml
Conflicts:
	external/binary-reference-assemblies
	external/referencesource
2015-02-12 15:34:43 +08:00
Zoltan Varga beb1463b6c [runtime] Use -fvisibility=hidden so only symbols marked with MONO_API are exported. 2015-02-12 02:25:19 -05:00
Sebastien Pouliot cfc0d6fc73 [linker] Do not update the Scope on TypeSpecification (fix mmp regression tests) 2015-02-11 15:38:48 -05:00
Zoltan Varga 6f572dcc58 Merge pull request #1561 from main--/patch-1
Only call string.Format in Debug.Assert if really necessary
2015-02-11 13:49:53 -05:00
main() 2e6efb3149 Only call string.Format in Debug.Assert if really necessary
Right now (without this change), Debug.Assert **always** formats its string parameters, even if doing so wouldn't be necessary because the condition is true. This has a huge impact on code that asserts frequently because it assumes that calling Assert(true, ...) is cheap.
2015-02-11 19:42:29 +01:00
Marek Safar ceef1e2379 Merge pull request #1560 from esdrubal/xlstregression
[corlib] ModuleBuilder.GetMethodToken no longer has a module check.
2015-02-11 17:17:27 +01:00
Marcos Henrich 9eb81476bd [corlib] ModuleBuilder.GetMethodToken no longer has a module check.
.NET implementation is able to get method tokens from other modules.
This was causing a regression on a System.Xml.Xsl.XslTransformTests.Bug487065 while using referencesource's System.Xml implementation.
2015-02-11 15:59:37 +00:00
Marcos Henrich 1e7a4a2114 [corlib] Test GetMethodToken ability to get other modules' tokens.
.NET implementation is able to get method tokens from other modules.
2015-02-11 15:59:36 +00:00
João Matos f1006fbbe0 [msvc] Upgrade the projects to require VS2013. 2015-02-11 15:55:43 +00:00
Alex Rønne Petersen 628f3d998b Use -std=gnu99 as we rely on the linux macro in some places. 2015-02-11 16:50:59 +01:00
Marek Safar 2326fa0721 Bump reference sources 2015-02-11 16:42:40 +01:00
Zoltan Varga 46357aee0b [runtime] Enable C99 mode. 2015-02-11 10:32:34 -05:00
Zoltan Varga 984a13d908 [runtime] Use ISO C __typeof__ instead of typeof () in one place. 2015-02-11 10:32:13 -05:00
Zoltan Varga 3b85df9c0d Fix the loadable llvm build. 2015-02-11 09:44:45 -05:00
Sebastien Pouliot b6d6280821 [linker] Ignore null type arguments in MarkWithResolvedScope
It's ignored in MarkType but it breaks calling Resolve in this case
2015-02-11 09:01:35 -05:00
Marek Safar 8db46e61fd [corlib] Fixes build 2015-02-11 14:04:35 +01:00
Zoltan Varga a42f4d8d22 Merge pull request #1559 from directhex/emit-nunit-xml-in-unmanaged-tests
Add NUnit XML emission to the managed runtime test runner.
2015-02-11 08:00:18 -05:00
Jo Shields 84a8428de1 Add NUnit XML emission to the managed runtime test runner.
This makes it easy to plug failures from the runtime tests into a visualisation, such as Jenkins' jUnit display system.
2015-02-11 12:48:45 +00:00
Zoltan Varga 078968540f Make the managed test runner the default in mono/tests, run with make M=0 to use the old one. 2015-02-11 07:47:39 -05:00
Zoltan Varga 9b617125bd [llvm] Maps structs made up of floats/doubles to llvm structs containing floats. 2015-02-11 07:02:45 -05:00
Marek Safar 4e27a21367 [system] Fix ping process exit code check 2015-02-11 12:04:50 +01:00
Marek Safar f97001e2c8 [system] updates fixed test 2015-02-11 10:47:54 +01:00
Marek Safar 405f9534df [system.core] Update aes test to match imported code 2015-02-11 09:43:17 +01:00
Marek Safar ec2e126dfd [mcs] Additional fix for #26892 2015-02-11 09:21:20 +01:00
Sebastien Pouliot d07822286c [linker] Resolve types inside custom attributes since they might refer to types in assemblies we won't be keeping [#26752]
Custom attributes encoding means it's possible to have a scope that will
point into a PCL facade even if we (just before saving) will resolve all
type references.

Since all other references can be made on the _real_ assembly and that
we do not want to include any facade assembly just for this we need to
resolve those type and update their scope.
2015-02-10 21:04:02 -05:00
João Matos 325744cb85 [build] Fixed the MSVC build. 2015-02-10 15:14:16 +00:00
Marek Safar 9b9b96980b [corlib] Guid from reference sources 2015-02-10 15:42:13 +01:00
Marek Safar 86e2bada8a [mcs] Fixes failing test 2015-02-10 15:42:13 +01:00
Marcos Henrich b94c4cdce1 [corlib] Calling 'tzi.exe -i' now prints olson transitions. 2015-02-10 10:44:35 +00:00
Marcos Henrich 7169eeb5e0 [corlib] Updated make target tzi.exe 2015-02-10 10:39:29 +00:00
Marcos Henrich 8473c6db7e Moved android-dump-tzdata make target to corlib.
Reason: All TimeZoneInfo related files are now all in corlib directory.
2015-02-10 10:32:30 +00:00
Zoltan Varga 2f95909242 Merge pull request #1557 from StephenMcConnel/bug-26887
Prevent right click from triggering ToolStripItem.HandleClick
2015-02-10 04:25:34 -05:00
Marek Safar 158487fe94 Rename binary reference assemblies location 2015-02-10 10:21:29 +01:00
Marek Safar 85ee5582f6 [eval] Add C#6 using handling 2015-02-10 10:12:43 +01:00
Zoltan Varga e26e45cf2f Merge pull request #1558 from ermshiperete/fixCrash
[MWF] Fix NullReferenceException introduced by commit a080a7d
2015-02-10 04:05:26 -05:00
Damien Daspit f7593c22b0 [MWF] Fix NullReferenceException introduced by commit a080a7d
Change-Id: I5709063cc7eecc01fd1e2978cd8aac096060c31e
2015-02-10 09:59:50 +01:00
Marek Safar a74bac2da2 [mcs] Fixed casts rules don't apply to strings and arrays. Fixes #26892 2015-02-10 09:31:22 +01:00
Marek Safar c7a4778737 [mcs] Resolve delegate optional parameters only once. Fixes #26840 2015-02-10 08:49:50 +01:00
Zoltan Varga 8562a498f3 [jit] Factor out the gsharedvt constrained call handling code into a separate function. 2015-02-10 02:27:13 -05:00
Zoltan Varga 382cf74c98 [jit] Fix some issues with constrained gsharedvt calls to be able to handle some cases encountered with the new MS reference source code. 2015-02-10 02:20:32 -05:00
Zoltan Varga b8f1a79295 Increase some trampoline buffer sizes. 2015-02-09 23:08:57 -05:00
Zoltan Varga d7b1944dce Bump referencesource. 2015-02-09 22:40:50 -05:00
Zoltan Varga c83aeed35f Bump referencesource to e6af770c424af46f78d3b8f90eebbb2e0d7953a2. 2015-02-09 22:35:07 -05:00
Alex Rønne Petersen 23fa25b4b5 Revert "[mini] Implement atomic exchange with xchg on x86."
This reverts commit c96e58280c.

Getting this to work right with regards to register allocation
is turning out to be more complicated than it seems. Going to
abandon this for now.
2015-02-10 03:01:33 +01:00
Alex Rønne Petersen c96e58280c [mini] Implement atomic exchange with xchg on x86. 2015-02-10 01:49:18 +01:00
Stephen McConnel e9cf1dc44a Prevent right click from triggering ToolStripItem.HandleClick
This fixes https://bugzilla.xamarin.com/show_bug.cgi?id=26887.
2015-02-09 18:39:18 -06:00
Zoltan Varga 8856edd6d3 Disable some full-aot tests on amd64 since it doesn't support dyn calls/gsharedvt. 2015-02-09 19:09:21 -05:00
Alex Rønne Petersen 0366b81069 [mini] Implement atomic exchange with xchg on amd64. 2015-02-09 23:41:30 +01:00
Marek Safar d2994b1b3d [corlib] Remove unused file 2015-02-09 23:15:16 +01:00
Marek Safar 8d9e34a098 [corlib] Keep file names ordered 2015-02-09 23:14:45 +01:00
Marek Safar 1bfa0567dc Merge pull request #1556 from atsushieno/import-text-encoding
import referencesource CharUnicodeInfo and remove some runtime char tables.
2015-02-09 20:09:04 +01:00
Alex Rønne Petersen 8aaed197ca Revert "[mini] Implement atomic exchange with xchg on x86/amd64."
This reverts commit 1a319806fe.

This seems to cause memory corruption that results in random
SGen crashes, especially in Roslyn.
2015-02-09 19:32:15 +01:00
Ludovic Henry 449666271a [runtime] Lower log level of "counters not enabled" message in counters 2015-02-09 13:12:11 -05:00
João Matos 48b7a501b0 Initialize the counters support before registering new ones.
This bug manifests itself in mkbundle'd programs that use the machine config support. Under this case, we can end up registering counters before initializing the counter support in the runtime:

```
* thread #1: tid = 0x141dec, 0x003ebdff mtouch-32`mono_counters_register(name=0x0042f7e3, type=2048, addr=0x00b81288) + 31 at mono-counters.c:218, queue = 'com.apple.main-thread', stop reason = breakpoint 1.1
  * frame #0: 0x003ebdff mtouch-32`mono_counters_register(name=0x0042f7e3, type=2048, addr=0x00b81288) + 31 at mono-counters.c:218
    frame #1: 0x0025c3f6 mtouch-32`mono_loader_init + 198 at loader.c:106
    frame #2: 0x0025f005 mtouch-32`mono_dllmap_insert(assembly=0x00000000, dll=0x00d0a0c0, func=0x00000000, tdll=0x00d0a0d0, tfunc=0x00000000) + 53 at loader.c:1321
    frame #3: 0x002c28ca mtouch-32`dllmap_start(user_data=0x00d0a0b0, element_name=0x00d0a0a0, attribute_names=0x00d0a030, attribute_values=0x00d0a040) + 698 at mono-config.c:290
    frame #4: 0x002c2010 mtouch-32`start_element(context=0x00d09fa0, element_name=0x00d0a0a0, attribute_names=0x00d0a030, attribute_values=0x00d0a040, user_data=0xbffffb68, error=0x00000000) + 240 at mono-config.c:176
    frame #5: 0x0040ba6d mtouch-32`monoeg_g_markup_parse_context_parse(context=0x00d09fa0, text=0x00b72f30, text_len=240, error=0x00000000) + 1965 at gmarkup.c:351
    frame #6: 0x002c0a93 mtouch-32`mono_config_parse_xml_with_context(state=0xbffffb68, text=0x00b72f30, len=240) + 147 at mono-config.c:440
    frame #7: 0x002c09eb mtouch-32`mono_config_parse_memory(buffer=0x00b72f30) + 123 at mono-config.c:482
    frame #8: 0x00001e6d mtouch-32`install_dll_config_files + 29
    frame #9: 0x00001c86 mtouch-32`mono_mkbundle_init + 22
    frame #10: 0x000029db mtouch-32`main + 331
    frame #11: 0x00001c65 mtouch-32`start + 53
```

Fixes https://bugzilla.xamarin.com/show_bug.cgi?id=24605.
2015-02-09 17:40:04 +00:00
Marek Safar 0daaf302a5 [corlib] Update failing test 2015-02-10 02:01:29 +10:00
Atsushi Eno f280fc8948 [mdoc/Test] add missing DTD.
With referencesource, the XmlReader now requires the DTD in SYSTEM
declaration to exist. So just add the DTD.
2015-02-06 23:08:01 +08:00
Atsushi Eno ae7c481271 [msbuild] fixing referencesource import "regression".
It is about insignificant whitespace handling difference.
2015-02-06 20:36:41 +08:00
Atsushi Eno 96fa9c4caa [Xml] another human readable exception message. 2015-02-06 16:02:33 +08:00
Atsushi Eno 685020351f [WCF] XmlWriter.WriteAttributeString(string,string) does not accept xml:*.
It needs LocalName. So use other overloads instead.
2015-02-06 16:01:19 +08:00
Atsushi Eno b0a27d618e [XLinq] create new instance of XmlSchemaInfo for each XObject from XmlReader.
In referencesource, XmlReader.SchemaInfo does not return different instances
for each node at its state but just returns the XmlReader itself (which
implements IXmlSchemaInfo). Hence, if we just set the corresponding
IXmlScemaInfo to each XObject, it results in inconsistent state.

This fixes two regressions in ExtensionsTest (XAttributeFailValidate and
XAttributeThrowExceptionValidate).
2015-02-06 05:36:13 +08:00
Atsushi Eno 863a2facac Merge branch 'master' into import-system-xml
Conflicts:
	external/referencesource
	mcs/class/System.XML/Makefile
2015-02-04 21:48:49 +08:00
Atsushi Eno 137be5c4c6 [Xml] fix regression in winforms tests.
ResXResourceReaderTest checks that the argument file is in the error
message. We only have stub messages so far, hence it "regressed".
2015-02-04 16:34:52 +08:00
Atsushi Eno a6d6ba0a8b [WCF] fix mobile builds. Mono.Xml.XPath is gone. 2015-02-04 16:33:41 +08:00
Atsushi Eno 0d2f55c479 [Sys.Security] don't expect XmlNode.ChildNodes returns the same instance.
It did in mono implementation. It doesn't on referencesource.
2015-02-04 12:56:29 +08:00
Atsushi Eno 22eed26360 [Xml] add mobile XslCompiledTransform implementation.
XslCompiledTransform doesn't work without CodeDom and dynamic code
generation. This "implementation" just dispatches everything to XslTransform.
2015-02-04 12:54:40 +08:00
Vlad Brezae bea7d8a600 [jit] Pass the aligned object size to the managed allocator. 2015-02-03 23:51:59 +00:00
Vlad Brezae 29659f7623 [jit] Optimize the managed allocator fastpath
Send the instance_size as an argument to the managed object allocator to reduce memory dereferences from the vtable in the generated code.
2015-02-03 23:51:58 +00:00
Atsushi Eno 18fb56ed20 [Xml] Removed XslCompiledTransform and co. Now monodroid builds.
It will be added as mere alias of XslTransform as mono used to do.
2015-02-03 19:55:30 +08:00
Atsushi Eno 7c13ce3a30 [Sys.Xml] first onging mobile build work. It does NOT build for mobiles now.
Removed Configuration dependencies and codegenerator parts in XmlSerializer
as well as switching CodeIdentifier implementation to old mono stuff
as referencesource totally depends on CodeDom (mono doesn't).
2015-02-03 19:04:13 +08:00
Atsushi Eno 9e93acc48d [Configuration] skip whitespaces in the settings xml.
This is required after we switch to referencesource, which somehow
preserves whitespaces during deserialization from xml.
2015-02-03 18:33:32 +08:00
Atsushi Eno 831460d7f0 Merge branch 'master' into import-system-xml
Conflicts:
	external/referencesource
2015-02-02 18:41:58 +08:00
Atsushi Eno 597edc180d [Xaml] XamlXmlWriter should flush output when disposing.
With referencesource, XmlWriter for TextWriter buffers the output.
When closing XamlXmlWriter, it does not flush the output, causing
the buffered XmlWriter output discarded in the wild.
2015-02-02 18:24:15 +08:00
Atsushi Eno 9a707655f0 [Xaml] fix EOL handling in tests. referencesource emits LF. 2015-02-02 17:58:09 +08:00
Atsushi Eno 5919e994aa [WCF] for certain kind of Messages, do now write BodyContents twice. 2015-02-02 17:48:14 +08:00
Atsushi Eno b3088be180 [Sys.Xml] give understandable message and arguments for Xml_WrongToken. 2015-02-02 17:22:51 +08:00
Atsushi Eno 96175ef31f [Sys.Xml] when deserializing XmlNode, use XmlReader's NameTable. 2015-02-02 17:03:19 +08:00
Atsushi Eno afae051ab2 [WCF] fix wrong using scope on XmlWriter in security token serializer test. 2015-02-02 17:01:00 +08:00
Dave Curylo 7cbeed36fd Fix to UriTemplate.Match to properly handle query parameters without a value. No longer throws IndexOutOfRangeException and the parameter is added to the resulting UriTemplateMatch.QueryParameters field with a null value, same as in .NET.
This change is released under the MIT license.
2015-01-31 07:21:03 -05:00
Atsushi Eno 532243548b [WCF] do not use XmlReader.Name to check LocalName.
It won't match for prefixed ones.
2015-01-31 00:44:34 +08:00
Atsushi Eno e97fb5eae4 [WCF] Do not expect XmlElement.FirstChild is non-whitespace here.
Fix several regressions caused by referencesource Sys.Xml import.
2015-01-31 00:43:23 +08:00
Atsushi Eno 1c61ec2e9c [XLinq] fix some "regressions" caused by referencesource switch.
EOLs are platform dependent on referencesource.

Turn NotDotNet into Ignore (as we're also importing buggy implementation).
2015-01-30 18:12:42 +08:00
Atsushi Eno 8054b7da1d [S.R.Serialization] fix referencesource glitch in XmlMtomDictionaryWriter.
MTOM writer didn't expect multiple top-level elements are rejected at
ConformanceLevel.Auto, neiher do against Write[Start/End]Document() with
such elements.

Also Flush is often needed before directly writing to the Stream(Writer).

EOLs handling was also inconsistent between referencesource and old mono.
2015-01-30 16:57:53 +08:00
Atsushi Eno 0984f3e0df [S.R.Serialization] add missing attributes in MS serialization namespace.
This fixes another regression which failed to load Test ns22.xsd.
2015-01-30 02:51:33 +08:00
Atsushi Eno 29b41af285 [S.R.Serialization] explicitly add MS serialization schema if it's not in the set. 2015-01-29 21:35:40 +08:00
Atsushi Eno 68f1541bbe [Sys.Xml] swap xmlns:xsd and xmlns:xsi in serialized xml to remove "regression".
The order of those namespaces are insignificant, and the latest
combination of mono corlib (partly referencesource-d) and sys.xml
(referencesource except for XmlSerializer) caused this implementation
glitch.
2015-01-29 18:08:29 +08:00
Atsushi Eno 90df5a0520 [Sys.Xml] don't use XmlSchemaElement.ElementType anymore. MS doesn't use it.
XML Schema compilation is done in referencesource.
XmlSchemaImporter is based on mono code. Hence this glitch happened.

The following regression is fixed:

1) MonoTests.System.Xml.Serialization.XmlSchemaImporterTests.DefaultTypeTopLevelElementImportsAllComplexTypes : System.InvalidOperationException : 'Root' is missing.
at System.Xml.Serialization.XmlSchemaImporter.ImportTypeMapping (System.Xml.XmlQualifiedName name) [0x0005a] in /svn/mono/mcs/class/System.XML/System.Xml.Serialization/XmlSchemaImporter.cs:453
at MonoTests.System.Xml.Serialization.XmlSchemaImporterTests.DefaultTypeTopLevelElementImportsAllComplexTypes () [0x00039] in /svn/mono/mcs/class/System.XML/Test/System.Xml.Serialization/XmlSchemaImporterTests.cs:1104
at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&)
at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00054] in /svn/mono/mcs/class/corlib/System.Reflection/MonoMethod.cs:230
2015-01-29 16:39:51 +08:00
Henrik Feldt 789d43622e [crypto] Re-instantiate for Invariants() test 2015-01-28 17:13:02 +01:00
Henrik Feldt 0b8d94d285 [crypto] check key length in test 2015-01-28 16:51:11 +01:00
Henrik Feldt 7fc8c726ad [crypto] Key size 128 bytes for HMACSHA512
Using recommended key size according to MSDN (1) and RFC4868 (2).

 (1): https://msdn.microsoft.com/en-us/library/w5y83hkf%28v=vs.110%29.aspx
 (2): https://tools.ietf.org/html/rfc4868
2015-01-28 16:28:24 +01:00
Henrik Feldt c72f6c2fb5 [crypto] Key size 128 bytes for HMACSHA384
Using recommended key size according to MSDN (1) and RFC4868 (2).

 (1): https://msdn.microsoft.com/en-us/library/h43559cy%28v=vs.110%29.aspx
 (2): https://tools.ietf.org/html/rfc4868
2015-01-28 16:28:24 +01:00
Henrik Feldt ad4a6a5369 [crypto] Key size 64 for HMACSHA256
Using recommended key size according to MSDN (1) and RFC4868.

Fixes #23808 - https://bugzilla.xamarin.com/show_bug.cgi?id=23808

 (1): https://msdn.microsoft.com/en-us/library/9c9tf8wc%28v=vs.110%29.aspx
 (2): https://tools.ietf.org/html/rfc4868 - under
      2.1.1.  Data Origin Authentication and Integrity Verification Usage
2015-01-28 16:28:09 +01:00
Henrik Feldt f3d2c41b26 [crypto] Key size 64 for HMACSHA1
This HMAC cipher accepts any key size (1), took from RFC2104, which uses
the full 64 bytes of key since it has a block length of 64 bytes.

 (1): https://www.ietf.org/rfc/rfc2104.txt - Chapter 2: Definition of HMAC
2015-01-28 16:27:54 +01:00
Henrik Feldt 1caf94bec7 [crypto] Key size 64 for HMACRIPEMD160
This HMAC cipher accepts any key size (1), took 64 bytes from MSDN (2)

 (1): https://tools.ietf.org/html/rfc2857 - chapter 3 keying material
 (2): https://msdn.microsoft.com/en-us/library/8k00xhf0%28v=vs.110%29.aspx
2015-01-28 16:27:41 +01:00
Atsushi Eno ab327e3cf4 Our XmlDictionaryWriter implementation expects XmlReader at non-Initial state.
It is to fix glitch between mono Sys.Xml and referencesource.
2015-01-27 22:00:42 +08:00
Atsushi Eno bc48f07609 Merge branch 'master' into import-system-xml
Conflicts:
	external/referencesource
2015-01-27 20:13:29 +08:00
Atsushi Eno 577e6a119c Merge branch 'master' into import-system-xml
Conflicts:
	mcs/class/System.XML/System.Xml-net_4_5.csproj
	mcs/class/System.XML/Test/System.Xml/XmlAttributeCollectionTests.cs
	mcs/class/System.XML/Test/System.Xml/XmlCharacterDataTests.cs
	mcs/class/System.XML/Test/System.Xml/XmlUrlResolverTests.cs
	mcs/class/System.XML/Test/System.Xml/XmlWriterTests.cs
	mcs/class/System.XML/Test/System.Xml/XsdParticleValidationTests.cs
	mcs/class/System.XML/Test/System.Xml/XsdValidatingReaderTests.cs
	mcs/class/System.XML/Test/System.Xml/nist_dom/fundamental/Attr/Attr.cs
	mcs/class/System.XML/Test/System.Xml/nist_dom/fundamental/Element/Element.cs
	mcs/class/System.XML/Test/System.Xml/nist_dom/fundamental/NamedNodeMap/NamedNodeMap.cs
2015-01-22 05:56:41 +09:00
Atsushi Eno 3c4cdb8b91 merged referencesource mono into its branch. 2015-01-22 05:39:18 +09:00
Atsushi Eno de58d722d5 [Sys.Data] DataSet.ReadXmlSchema(): use LocalName instead of Name on XmlReader.
MS referencesource Sys.Xml uncovered this bug.
2015-01-20 19:23:06 +09:00
Atsushi Eno 97481dc4a6 [Sys.Data] fix wrong test in XmlDataDocument.
This doesn't match .NET behavior.
(Found by referencesource import, verified w/ .NET 4.5.)
2015-01-20 18:42:15 +09:00
Atsushi Eno 430712a419 [Sys.Data] Fix tests regarding XmlTextWriter EOL handling.
MS referencesource changed XmlTextWriter behavior regarding EOL so that
now it preserves CRLF as is, instead of replacing them with
XmlWriterSettings.NewLineChars (mono implementation behavior).

There are some tests that depend on old behavior. The entire points of
those XmlDataDocument tests are not about checking EOLs, so just replace
the test XML file to not contain CRLF.
2015-01-19 21:13:01 +09:00
Atsushi Eno d1bd93f4bb [Sys.Data] fix DOM event order related issue caused by referencesource.
There is implementation mismatch in XmlDocument event order regarding
Load(). Take this code:

	string xml = "<root><child>1</child></root>";

	var doc = new XmlDocument ();
	doc.NodeInserted += (o, e) =>
		Console.WriteLine (e.Node.NodeType + e.Node.LocalName);
	doc.LoadXml (xml);

This is mono output before referencesource:

	Text#text
	Elementchild
	Elementroot

This is with referencesource:

	Elementchild
	Text#text
	Elementroot

So, there are event order differences in our two implementations.

Now, XmlDataDocument depends on those XmlDocument events to fill DataRow
values. It worked fine with pre-referencesource System.Xml model, but
with referencesource it skipped to fill data row values.

This change makes sure to fill data row values from text node which are
added _after_ the parent node is added to the document.
2015-01-15 00:51:27 +09:00
Etienne CHAMPETIER 81057618ac System.Xml.Serialization: fix xml serializers generation for Web Services
(add a reference to System.Web.Services)

Without this patch we get the following exception after multiple call
to a soap web services:
Error while compiling generated serializer
/tmp/24ee1170/4996ddb2.cs(2519,27) : warning CS1522: Empty switch block
/tmp/24ee1170/4996ddb2.cs(969,29) : error CS0012: The type `System.Web.Services.Protocols.SoapHeader' is defined in an assembly that is not referenced. Consider adding a reference to assembly `System.Web.Services, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'

Signed-off-by: Frederic Mestayer <[email protected]>
Signed-off-by: Etienne CHAMPETIER <[email protected]>
2015-01-09 15:02:10 +01:00
Atsushi Eno 7093959bb4 [System.Data] fix another NRE that was exposed by referencesource. 2015-01-07 21:49:10 +09:00
Atsushi Eno 008f986fbd [System.Data] MS implementation doesn't expect CRLF on *nix. Use Env.NewLine. 2015-01-07 21:47:00 +09:00
Atsushi Eno b02372594e [System.Data] MS implementation does NOT expect CRLF in the output on *nix. 2015-01-07 21:43:58 +09:00
Atsushi Eno ea352f90cc [System.Data] fix NRE that was exposed by referencesource. 2015-01-07 21:41:01 +09:00
Atsushi Eno ac5d54f6b1 update dummy messages to somewhat understandable values. 2015-01-07 16:46:04 +09:00
Atsushi Eno 163687fa8c Merge branch 'master' into import-system-xml 2015-01-07 04:58:52 +09:00
Atsushi Eno 263682463b First step to import referencesource System.Xml.
It is not simply replacement because we have to workaround dynamic codegen
for Xamarin.iOS.

Also there were several tests failing with MS implementation (e.g. for
W3C DOM conformance), so we had to disable them.

There is one regression that rather needs to be fixed in Reflection.Emit.

Also, some WCF tests fail with this implementation. They need to be
investigated, reviewed and appropriately fixed.
2015-01-06 19:41:56 +09:00
Atsushi Eno 118ffd52f7 bump referencesource. 2015-01-06 18:46:57 +09:00
Atsushi Eno 9f0d7641dd bump referencesource. 2015-01-06 18:41:30 +09:00
Atsushi Eno 0e8b8ba063 referencesource: switch to import-system-xml branch. 2015-01-06 18:06:43 +09:00
Alexander Köplinger 56ea776405 [xbuild] Only execute PCL target "ImplicitlyExpandTargetFramework" when corresponding property is true
This aligns xbuild with the MS.NET behavior.
2014-12-18 05:59:46 +01:00
351 changed files with 11235 additions and 12658 deletions

No files matched your search

+4
View File
@@ -109,6 +109,10 @@ GRTAGS
GSYMS
GTAGS
# Doxygen
docs/doxygen*
docs/perlmod*
##############################################################################
# Mono-specific patterns
+2 -2
View File
@@ -28,8 +28,8 @@
url = git://github.com/mono/ikdasm.git
[submodule "external/referencesource"]
path = external/referencesource
url = git://github.com/mono/referencesource
url = https://github.com/mono/referencesource
branch = mono
[submodule "external/reference-assemblies"]
path = external/reference-assemblies
path = external/binary-reference-assemblies
url = git://github.com/mono/reference-assemblies.git
+1 -1
View File
@@ -52,7 +52,7 @@ dist-hook:
d=`cd $(distdir)/mcs && pwd`; cd $(mcs_topdir) && $(MAKE) distdir=$$d dist-recursive
rm -rf `find $(top_distdir)/external -path '*\.git'`
rm -f `find $(top_distdir)/external -path '*\.exe'`
rm -f `find $(top_distdir)/external -path '*\.dll' -not -path '*/reference-assemblies/v4\.0*'`
rm -f `find $(top_distdir)/external -path '*\.dll' -not -path '*/binary-reference-assemblies/v4\.0*'`
cp mcs/class/lib/basic/System.Configuration.dll mcs/class/lib/monolite/
cp mcs/class/lib/basic/System.Security.dll mcs/class/lib/monolite/
# Disable this for now because it is very slow and causes wrench to timeout:
+10 -11
View File
@@ -529,23 +529,21 @@ AC_CACHE_CHECK([for clang],
WARN=''
if test x"$GCC" = xyes; then
WARN='-Wall -Wunused -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wno-cast-qual -Wwrite-strings -Wno-switch -Wno-switch-enum -Wno-unused-value'
# We require C99 with some GNU extensions, e.g. `linux` macro
CFLAGS="$CFLAGS -std=gnu99"
# The runtime code does not respect ANSI C strict aliasing rules
CFLAGS="$CFLAGS -fno-strict-aliasing"
# We rely on signed overflow to behave
CFLAGS="$CFLAGS -fwrapv"
ORIG_CFLAGS=$CFLAGS
CFLAGS="$CFLAGS -Wdeclaration-after-statement"
AC_MSG_CHECKING(for -Wdeclaration-after-statement option to gcc)
AC_TRY_COMPILE([],[
return 0;
], [
AC_MSG_RESULT(yes)
], [
AC_MSG_RESULT(no)
CFLAGS=$ORIG_CFLAGS
])
CFLAGS="$CFLAGS -DMONO_DLL_EXPORT"
# Don't export any symbols by default
SHARED_CFLAGS="-fvisibility=hidden"
CFLAGS_FOR_EGLIB="$CFLAGS_FOR_EGLIB -fvisibility=hidden"
CXXFLAGS="$CXXFLAGS -fvisibility=hidden"
ORIG_CFLAGS=$CFLAGS
# Check for the normal version, since gcc ignores unknown -Wno options
@@ -677,6 +675,7 @@ if test x$werror_flag = xyes; then
WERROR_CFLAGS="-Werror"
fi
AC_SUBST([WERROR_CFLAGS])
AC_SUBST([SHARED_CFLAGS])
ac_configure_args="$ac_configure_args \"CPPFLAGS_FOR_EGLIB=$EGLIB_CPPFLAGS\" \"CFLAGS_FOR_EGLIB=$CFLAGS_FOR_EGLIB\""
AC_CONFIG_SUBDIRS(eglib)
+1
View File
@@ -132,6 +132,7 @@ g_assertion_message (const gchar *format, ...)
va_start (args, format);
g_logv (G_LOG_DOMAIN, G_LOG_LEVEL_ERROR, format, args);
va_end (args);
exit (0);
}
File renamed without changes.
+1 -1
+1 -1
+4
View File
@@ -970,6 +970,10 @@ where V is the architecture number 4, 5, 6, 7 and the options can be currently b
.fi
.TP
\fBMONO_ARM_FORCE_SOFT_FLOAT\fR
When Mono is built with a soft float fallback on ARM and this variable is set to
"1", Mono will always emit soft float code, even if a VFP unit is detected.
.TP
\fBMONO_DISABLE_AIO\fR
If set, tells mono NOT to attempt using native asynchronous I/O services. In
that case, a default select/poll implementation is used. Currently only epoll()
+6
View File
@@ -66,6 +66,12 @@ else
the_libdir_base = $(topdir)/class/$(lib_dir)/$(PROFILE)/
endif
ifdef RESOURCE_STRINGS
ifdef BOOTSTRAP_PROFILE
MCS_FLAGS_INTERNAL += $(RESOURCE_STRINGS:%=--getresourcestrings:%)
endif
endif
#
# The bare directory contains the plain versions of System and System.Xml
#
+1 -1
View File
@@ -28,7 +28,7 @@ ifndef BUILD_TOOLS_PROFILE
BUILD_TOOLS_PROFILE = build
endif
USE_MCS_FLAGS = /codepage:$(CODEPAGE) $(LOCAL_MCS_FLAGS) $(PLATFORM_MCS_FLAGS) $(PROFILE_MCS_FLAGS) $(MCS_FLAGS)
USE_MCS_FLAGS = /codepage:$(CODEPAGE) $(LOCAL_MCS_FLAGS) $(PLATFORM_MCS_FLAGS) $(PROFILE_MCS_FLAGS) $(MCS_FLAGS) $(MCS_FLAGS_INTERNAL)
USE_MBAS_FLAGS = /codepage:$(CODEPAGE) $(LOCAL_MBAS_FLAGS) $(PLATFORM_MBAS_FLAGS) $(PROFILE_MBAS_FLAGS) $(MBAS_FLAGS)
USE_CFLAGS = $(LOCAL_CFLAGS) $(CFLAGS) $(CPPFLAGS)
CSCOMPILE = $(Q_MCS) $(MCS) $(USE_MCS_FLAGS)
+8
View File
@@ -712,6 +712,14 @@ namespace I18N.CJK
public override int WindowsCodePage {
get { return SHIFTJIS_CODE_PAGE; }
}
// FIXME: This doesn't make sense, but without declaring this override
// System.XML regresses at Encoder.Convert() in
// MonoTests.System.Xml.XmlWriterSettingsTests.EncodingTest.
public override Encoder GetEncoder ()
{
return new MonoEncodingDefaultEncoder (this);
}
}; // class CP932
+148
View File
@@ -0,0 +1,148 @@
// This is partially copied source from referencesource/mscorlib/system/text/encoding.cs, modifying a bit.
// ==++==
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// ==--==
using System;
using System.Diagnostics.CodeAnalysis;
using System.Diagnostics.Contracts;
using System.Runtime.InteropServices;
using System.Runtime.Serialization;
using System.Text;
namespace I18N.Common
{
[Serializable]
public class ReferenceSourceDefaultEncoder : Encoder, IObjectReference
{
private Encoding m_encoding;
[NonSerialized] private bool m_hasInitializedEncoding;
[NonSerialized] internal char charLeftOver;
public ReferenceSourceDefaultEncoder(Encoding encoding)
{
m_encoding = encoding;
m_hasInitializedEncoding = true;
}
// Constructor called by serialization, have to handle deserializing from Everett
internal ReferenceSourceDefaultEncoder(SerializationInfo info, StreamingContext context)
{
if (info==null) throw new ArgumentNullException("info");
Contract.EndContractBlock();
// All we have is our encoding
this.m_encoding = (Encoding)info.GetValue("encoding", typeof(Encoding));
try
{
//this.m_fallback = (EncoderFallback) info.GetValue("m_fallback", typeof(EncoderFallback));
this.charLeftOver = (Char) info.GetValue("charLeftOver", typeof(Char));
}
catch (SerializationException)
{
}
}
// Just get it from GetEncoding
[System.Security.SecurityCritical] // auto-generated
public Object GetRealObject(StreamingContext context)
{
// upon deserialization since the DefaultEncoder implement IObjectReference the
// serialization code tries to do the fixup. The fixup returns another
// IObjectReference (the DefaultEncoder) class and hence so on and on.
// Finally the deserialization logics fails after following maximum references
// unless we short circuit with the following
if (m_hasInitializedEncoding)
{
return this;
}
Encoder encoder = m_encoding.GetEncoder();
/*
if (m_fallback != null)
encoder.m_fallback = m_fallback;
if (charLeftOver != (char) 0)
{
EncoderNLS encoderNls = encoder as EncoderNLS;
if (encoderNls != null)
encoderNls.charLeftOver = charLeftOver;
}
*/
return encoder;
}
#if FEATURE_SERIALIZATION
// ISerializable implementation, get data for this object
[System.Security.SecurityCritical] // auto-generated_required
void ISerializable.GetObjectData(SerializationInfo info, StreamingContext context)
{
// Any info?
if (info==null) throw new ArgumentNullException("info");
Contract.EndContractBlock();
// All we have is our encoding
info.AddValue("encoding", this.m_encoding);
}
#endif
// Returns the number of bytes the next call to GetBytes will
// produce if presented with the given range of characters and the given
// value of the flush parameter. The returned value takes into
// account the state in which the encoder was left following the last call
// to GetBytes. The state of the encoder is not affected by a call
// to this method.
//
public override int GetByteCount(char[] chars, int index, int count, bool flush)
{
return m_encoding.GetByteCount(chars, index, count);
}
[System.Security.SecurityCritical] // auto-generated
[SuppressMessage("Microsoft.Contracts", "CC1055")] // Skip extra error checking to avoid *potential* AppCompat problems.
public unsafe override int GetByteCount(char* chars, int count, bool flush)
{
return m_encoding.GetByteCount(chars, count);
}
// Encodes a range of characters in a character array into a range of bytes
// in a byte array. The method encodes charCount characters from
// chars starting at index charIndex, storing the resulting
// bytes in bytes starting at index byteIndex. The encoding
// takes into account the state in which the encoder was left following the
// last call to this method. The flush parameter indicates whether
// the encoder should flush any shift-states and partial characters at the
// end of the conversion. To ensure correct termination of a sequence of
// blocks of encoded bytes, the last call to GetBytes should specify
// a value of true for the flush parameter.
//
// An exception occurs if the byte array is not large enough to hold the
// complete encoding of the characters. The GetByteCount method can
// be used to determine the exact number of bytes that will be produced for
// a given range of characters. Alternatively, the GetMaxByteCount
// method of the Encoding that produced this encoder can be used to
// determine the maximum number of bytes that will be produced for a given
// number of characters, regardless of the actual character values.
//
public override int GetBytes(char[] chars, int charIndex, int charCount,
byte[] bytes, int byteIndex, bool flush)
{
return m_encoding.GetBytes(chars, charIndex, charCount, bytes, byteIndex);
}
[System.Security.SecurityCritical] // auto-generated
[SuppressMessage("Microsoft.Contracts", "CC1055")] // Skip extra error checking to avoid *potential* AppCompat problems.
public unsafe override int GetBytes(char* chars, int charCount,
byte* bytes, int byteCount, bool flush)
{
return m_encoding.GetBytes(chars, charCount, bytes, byteCount);
}
}
}
+1
View File
@@ -6,4 +6,5 @@ Handlers.cs
Manager.cs
MonoEncoding.cs
MonoSafeEncoding.cs
DefaultEncoder.cs
Strings.cs
+77
View File
@@ -210,6 +210,11 @@ namespace I18N.Common
//[CLSCompliant (false)]
public unsafe abstract int GetBytesImpl (char* chars, int charCount,
byte* bytes, int byteCount);
public override Encoder GetEncoder ()
{
return new MonoEncodingDefaultEncoder (this);
}
}
public abstract class MonoEncoder : Encoder
@@ -304,4 +309,76 @@ namespace I18N.Common
bytes, ref byteIndex, ref byteCount, null);
}*/
}
public class MonoEncodingDefaultEncoder : ReferenceSourceDefaultEncoder
{
public MonoEncodingDefaultEncoder (Encoding encoding)
: base (encoding)
{
}
[CLSCompliant (false)]
[ComVisible (false)]
public unsafe override void Convert (
char* chars, int charCount,
byte* bytes, int byteCount, bool flush,
out int charsUsed, out int bytesUsed, out bool completed)
{
CheckArguments (chars, charCount, bytes, byteCount);
charsUsed = charCount;
while (true) {
bytesUsed = GetByteCount (chars, charsUsed, flush);
if (bytesUsed <= byteCount)
break;
flush = false;
charsUsed >>= 1;
}
completed = charsUsed == charCount;
bytesUsed = GetBytes (chars, charsUsed, bytes, byteCount, flush);
}
[ComVisible (false)]
public override void Convert (
char [] chars, int charIndex, int charCount,
byte [] bytes, int byteIndex, int byteCount, bool flush,
out int charsUsed, out int bytesUsed, out bool completed)
{
if (chars == null)
throw new ArgumentNullException ("chars");
if (bytes == null)
throw new ArgumentNullException ("bytes");
if (charIndex < 0)
throw new ArgumentOutOfRangeException ("charIndex");
if (charCount < 0 || chars.Length < charIndex + charCount)
throw new ArgumentOutOfRangeException ("charCount");
if (byteIndex < 0)
throw new ArgumentOutOfRangeException ("byteIndex");
if (byteCount < 0 || bytes.Length < byteIndex + byteCount)
throw new ArgumentOutOfRangeException ("byteCount");
charsUsed = charCount;
while (true) {
bytesUsed = GetByteCount (chars, charIndex, charsUsed, flush);
if (bytesUsed <= byteCount)
break;
flush = false;
charsUsed >>= 1;
}
completed = charsUsed == charCount;
bytesUsed = GetBytes (chars, charIndex, charsUsed, bytes, byteIndex, flush);
}
unsafe void CheckArguments (char* chars, int charCount, byte* bytes, int byteCount)
{
if (chars == null)
throw new ArgumentNullException ("chars");
if (bytes == null)
throw new ArgumentNullException ("bytes");
if (charCount < 0)
throw new ArgumentOutOfRangeException ("charCount");
if (byteCount < 0)
throw new ArgumentOutOfRangeException ("byteCount");
}
}
}
@@ -38,10 +38,8 @@ namespace System.Windows.Forms {
void CreateEditingControl ()
{
editingControl = new DataGridViewTextBoxEditingControl() {
EditingControlDataGridView = DataGridView,
Multiline = false,
BorderStyle = BorderStyle.None,
MaxLength = maxInputLength
BorderStyle = BorderStyle.None
};
}
@@ -92,8 +90,13 @@ namespace System.Windows.Forms {
throw new InvalidOperationException("There is no associated DataGridView.");
}
CreateEditingControl ();
if (editingControl == null)
CreateEditingControl ();
DataGridView.EditingControlInternal = editingControl;
editingControl.EditingControlDataGridView = DataGridView;
editingControl.MaxLength = maxInputLength;
if (initialFormattedValue == null || initialFormattedValue.ToString () == string.Empty)
editingControl.Text = string.Empty;
@@ -126,6 +129,9 @@ namespace System.Windows.Forms {
public override void PositionEditingControl (bool setLocation, bool setSize, Rectangle cellBounds, Rectangle cellClip, DataGridViewCellStyle cellStyle, bool singleVerticalBorderAdded, bool singleHorizontalBorderAdded, bool isFirstDisplayedColumn, bool isFirstDisplayedRow)
{
if (editingControl == null)
CreateEditingControl ();
cellBounds.Size = new Size (cellBounds.Width - 5, cellBounds.Height + 2);
cellBounds.Location = new Point (cellBounds.X + 3, ((cellBounds.Height - editingControl.Height) / 2) + cellBounds.Y - 1);
@@ -1775,7 +1775,8 @@ namespace System.Windows.Forms
switch (met) {
case ToolStripItemEventType.MouseUp:
this.HandleClick (((MouseEventArgs)e).Clicks, e);
if (((MouseEventArgs)e).Button == MouseButtons.Left)
this.HandleClick (((MouseEventArgs)e).Clicks, e);
this.OnMouseUp ((MouseEventArgs)e);
break;
case ToolStripItemEventType.MouseDown:
@@ -29,6 +29,7 @@ using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Threading;
using Microsoft.Build.Framework;
using Microsoft.Build.Utilities;
@@ -41,7 +42,10 @@ namespace Microsoft.Build.Tasks {
bool skipUnchangedFiles;
ITaskItem[] sourceFiles;
bool overwriteReadOnlyFiles;
int retries;
int retryDelayMilliseconds;
bool useHardlinksIfPossible;
public Copy ()
{
}
@@ -79,7 +83,7 @@ namespace Microsoft.Build.Tasks {
}
if (!skipUnchangedFiles || HasFileChanged (sourceFile, destinationFile))
CopyFile (sourceFile, destinationFile, true);
CopyFileWithRetries (sourceFile, destinationFile, true);
sourceItem.CopyMetadataTo (destinationItem);
temporaryCopiedFiles.Add (destinationItem);
@@ -102,7 +106,7 @@ namespace Microsoft.Build.Tasks {
if (!skipUnchangedFiles || directoryCreated ||
HasFileChanged (sourceFile, destinationFile))
CopyFile (sourceFile, destinationFile, false);
CopyFileWithRetries (sourceFile, destinationFile, false);
temporaryCopiedFiles.Add (new TaskItem (
Path.Combine (destinationFolder.GetMetadata ("Identity"), filename),
@@ -172,6 +176,34 @@ namespace Microsoft.Build.Tasks {
}
}
public int Retries {
get {
return retries;
}
set {
retries = value;
}
}
public int RetryDelayMilliseconds {
get {
return retryDelayMilliseconds;
}
set {
retryDelayMilliseconds = value;
}
}
[MonoTODO ("Not implemented yet.")]
public bool UseHardlinksIfPossible {
get {
return useHardlinksIfPossible;
}
set {
useHardlinksIfPossible = value;
}
}
[Required]
public ITaskItem[] SourceFiles {
get {
@@ -193,6 +225,23 @@ namespace Microsoft.Build.Tasks {
return true;
}
void CopyFileWithRetries (string source, string dest, bool create_dir)
{
for (int i = retries; i >= 0; i--) {
try {
CopyFile (source, dest, create_dir);
}
catch (Exception ex) {
Log.LogMessage ("Copying failed. Retries left: {0}.", i);
if (i == 0)
throw;
Thread.Sleep (retryDelayMilliseconds);
}
}
}
void CopyFile (string source, string dest, bool create_dir)
{
if (create_dir)
@@ -30,6 +30,7 @@ using System.IO;
using Microsoft.Build.BuildEngine;
using NUnit.Framework;
using System.Text;
using System.Threading;
using Microsoft.Build.Tasks;
using Microsoft.Build.Framework;
using Microsoft.Build.Utilities;
@@ -396,6 +397,61 @@ namespace MonoTests.Microsoft.Build.Tasks {
File.SetAttributes (target_file, FileAttributes.Normal);
}
[Test]
public void TestCopy_Retries ()
{
Engine engine;
Project project;
string file_path = Path.Combine (source_path, "copyretries.txt");
string target_file = Path.Combine (target_path, "copyretries.txt");
using (File.CreateText (file_path)) { }
using (File.CreateText (target_file)) { }
File.SetAttributes (target_file, FileAttributes.ReadOnly);
Assert.AreEqual (FileAttributes.ReadOnly, File.GetAttributes (target_file), "A1");
string documentString = @"
<Project xmlns=""http://schemas.microsoft.com/developer/msbuild/2003"">
<PropertyGroup><DestFile>" + target_file + @"</DestFile></PropertyGroup>
<ItemGroup>
<SFiles Include='" + file_path + @"'><Md>1</Md></SFiles>
<DFiles Include='$(DestFile)'><Mde>2</Mde></DFiles>
</ItemGroup>
<Target Name='1'>
<Copy SourceFiles='@(SFiles)' DestinationFiles='@(DFiles)' Retries='3' RetryDelayMilliseconds='2000'>
<Output TaskParameter='CopiedFiles' ItemName='I0'/>
<Output TaskParameter='DestinationFiles' ItemName='I1'/>
</Copy>
<Message Text=""I0 : @(I0), I1: @(I1)""/>
</Target>
</Project>
";
engine = new Engine (Consts.BinPath);
project = engine.CreateNewProject ();
TestMessageLogger testLogger = new TestMessageLogger ();
engine.RegisterLogger (testLogger);
project.LoadXml (documentString);
// remove the read-only flag from the file after a few secs,
// so copying works after retries
new Thread ( () => {
Thread.Sleep (3000);
File.SetAttributes (target_file, FileAttributes.Normal);
}).Start ();
if (!project.Build ("1")) {
var sb = new StringBuilder ();
testLogger.DumpMessages (sb);
Assert.Fail ("Build failed " + sb.ToString ());
}
testLogger.CheckLoggedAny ("Copying failed. Retries left: 3.", MessageImportance.Normal, "A2");
}
void CheckCopyBuildItems (Project project, string [] source_files, string destination_folder, string prefix)
{
int num = source_files.Length;
@@ -115,8 +115,7 @@
<IISUrl>http://localhost:18572/</IISUrl>
<NTLMAuthentication>False</NTLMAuthentication>
<UseCustomServer>False</UseCustomServer>
<CustomServerUrl>
</CustomServerUrl>
<CustomServerUrl></CustomServerUrl>
<SaveServerSettingsInUserFile>False</SaveServerSettingsInUserFile>
</WebProjectProperties>
</FlavorProperties>
@@ -155,7 +155,6 @@ namespace MonoTests.EvaluatorTest
Assert.AreEqual (124, res);
}
#if NET_4_0
[Test]
public void DynamicStatement ()
{
@@ -163,9 +162,7 @@ namespace MonoTests.EvaluatorTest
Evaluator.Run ("d = 'a';");
Evaluator.Run ("d.GetType ();");
}
#endif
#if NET_4_5
[Test]
public void AwaitExpression ()
{
@@ -174,6 +171,14 @@ namespace MonoTests.EvaluatorTest
res = Evaluator.Evaluate ("res;");
Assert.AreEqual (3, res, "#1");
}
#endif
[Test]
public void UsingStatic ()
{
Evaluator.Run ("using static System.String;");
var res = Evaluator.Evaluate("Join (\"--\", new [] { \"a\", \"b\" } );");
Assert.AreEqual ("a--b", res);
}
}
}
@@ -11,13 +11,6 @@ LIB_MCS_FLAGS = \
TEST_MCS_FLAGS = $(LIB_MCS_FLAGS)
# This is a .NET 3.5+ assembly
VALID_PROFILE := $(filter net_4_5 monotouch monodroid xammac mobile mobile_static, $(PROFILE))
ifndef VALID_PROFILE
LIBRARY_NAME = dummy-System.ComponentModel.DataAnnotations.dll
NO_INSTALL = yes
NO_SIGN_ASSEMBLY = yes
NO_TEST = yes
endif
RESOURCE_STRINGS = ../../../external/referencesource/System.ComponentModel.DataAnnotations/System.ComponentModel.DataAnnotations.txt
include ../../build/library.make
@@ -39,7 +39,8 @@ namespace System.Configuration
{
SectionGroupInfo group;
Configuration config;
static readonly object lockObject = new object();
internal ConfigurationSectionCollection (Configuration config, SectionGroupInfo group)
: base (StringComparer.Ordinal)
{
@@ -60,15 +61,17 @@ namespace System.Configuration
public ConfigurationSection this [string name]
{
get {
ConfigurationSection sec = BaseGet (name) as ConfigurationSection;
if (sec == null) {
SectionInfo secData = group.Sections [name] as SectionInfo;
if (secData == null) return null;
sec = config.GetSectionInstance (secData, true);
if (sec == null) return null;
BaseSet (name, sec);
lock(lockObject) {
ConfigurationSection sec = BaseGet (name) as ConfigurationSection;
if (sec == null) {
SectionInfo secData = group.Sections [name] as SectionInfo;
if (secData == null) return null;
sec = config.GetSectionInstance (secData, true);
if (sec == null) return null;
BaseSet (name, sec);
}
return sec;
}
return sec;
}
}
+1 -18
View File
@@ -6,6 +6,7 @@ LIBRARY = System.Core.dll
REFERENCE_SOURCES_FLAGS = -d:FEATURE_PAL,PFX_LEGACY_3_5
LIB_MCS_FLAGS = $(REFERENCE_SOURCES_FLAGS) -d:INSIDE_SYSCORE -d:LIBC /r:System.dll -unsafe
RESOURCE_STRINGS = ../../../external/referencesource/System.Core/System.Core.txt
ifneq (2.1, $(FRAMEWORK_VERSION))
LIB_MCS_FLAGS += -d:NET_3_5 -nowarn:1720
@@ -73,21 +74,3 @@ csproj-local:
$(MAKE) csproj-local intermediate=plaincore/
endif
endif
#
# Android TimeZoneInfo testing....
#
tzi.exe: ../corlib/System/AndroidPlatform.cs $(wildcard System/TimeZone*.cs) ../../build/common/Consts.cs ../Mono.Options/Mono.Options/Options.cs
mcs /debug+ /out:$@ /unsafe "/d:INSIDE_CORLIB;MONODROID;MOBILE;NET_4_5;NET_4_0;LIBC;SELF_TEST" $^
android-pull-tzdb:
mkdir -p android/tzdb/usr/share/zoneinfo
mkdir -p android/tzdb/misc/zoneinfo/zoneinfo
android_root=`adb shell echo '$$ANDROID_ROOT' | tr -d "\r"` ; \
android_data=`adb shell echo '$$ANDROID_DATA' | tr -d "\r"` ; \
adb $(ADB_TARGET) pull $$android_root/usr/share/zoneinfo android/tzdb/usr/share/zoneinfo ; \
adb $(ADB_TARGET) pull $$android_data/misc/zoneinfo/tzdata android/tzdb/misc/zoneinfo
android-dump-tzdata: tzi.exe android-pull-tzdb
__XA_OVERRIDE_TIMEZONE_ID__=America/New_York ANDROID_ROOT="`pwd`/android/tzdb" ANDROID_DATA="`pwd`/android/tzdb" mono --debug tzi.exe -o android/tzdata
@@ -51,9 +51,7 @@ namespace MonoTests.System.Security.Cryptography {
}
[Test]
#if !MOBILE
[ExpectedException (typeof (CryptographicException))]
#endif
public void CTS_NotAllowed ()
{
// this check is normally (e.g. RijndaelManaged) done later
+2
View File
@@ -7,4 +7,6 @@ LIB_MCS_FLAGS = -r:System.dll -r:System.Core.dll -r:System.Data.dll -r:System.Xm
-r:System.Runtime.Serialization.dll -r:System.ComponentModel.DataAnnotations.dll -r:System.Configuration.dll \
-warn:2
RESOURCE_STRINGS = ../../../external/referencesource/System.Data.Entity/System.Data.Entity.txt
include ../../build/library.make
+2
View File
@@ -24,6 +24,8 @@ LIB_MCS_FLAGS += \
-r:System.Transactions.dll
endif
RESOURCE_STRINGS = ../../../external/referencesource/System.Data/system.data.txt
TEST_MCS_FLAGS = $(LIB_MCS_FLAGS) -r:System.Core.dll -r:Mono.Data.Sqlite.dll -nowarn:618,169,612,219,168
TEST_MONO_PATH = .
+1 -1
View File
@@ -781,7 +781,7 @@ namespace System.Data
public void ReadXmlSchema (Stream stream)
{
XmlReader reader = new XmlTextReader (stream, null);
XmlReader reader = new XmlTextReader (stream, new NameTable ());
ReadXmlSchema (reader);
}
@@ -1742,7 +1742,7 @@ namespace System.Data {
public XmlReadMode ReadXml (Stream stream)
{
return ReadXml (new XmlTextReader(stream, null));
return ReadXml (new XmlTextReader(stream, new NameTable ()));
}
public XmlReadMode ReadXml (string fileName)
@@ -507,9 +507,9 @@ namespace System.Data
useCurrent = true;
if (attr.NamespaceURI == XmlConstants.MspropNamespace &&
!dataset.ExtendedProperties.ContainsKey(attr.Name))
!dataset.ExtendedProperties.ContainsKey(attr.LocalName))
{
dataset.ExtendedProperties.Add (attr.Name, attr.Value);
dataset.ExtendedProperties.Add (attr.LocalName, attr.Value);
continue;
}
@@ -564,7 +564,7 @@ namespace System.Data
if (attr.NamespaceURI == XmlConstants.MspropNamespace)
{
table.ExtendedProperties.Add (attr.Name, attr.Value);
table.ExtendedProperties.Add (attr.LocalName, attr.Value);
continue;
}
@@ -744,7 +744,7 @@ namespace System.Data
foreach (XmlAttribute attr in obj.UnhandledAttributes) {
if (attr.NamespaceURI == XmlConstants.MspropNamespace)
{
col.ExtendedProperties.Add (attr.Name, attr.Value);
col.ExtendedProperties.Add (attr.LocalName, attr.Value);
continue;
}
@@ -423,6 +423,9 @@ namespace System.Xml
}
DataRow row = GetRowFromElement (args.NewParent as XmlElement);
if (row == null && args.Node is XmlCharacterData)
// check if grandparent is a new row and this node is one of its column values.
row = GetRowFromElement (args.NewParent.ParentNode as XmlElement);
if (row == null) {
// That happens only when adding table to existing DocumentElement (aka DataSet element)
if (args.NewParent == DocumentElement)
@@ -453,7 +456,7 @@ namespace System.Xml
if (args.Node.NodeType != XmlNodeType.Comment) {
for (int i = 0; i < row.Table.Columns.Count; i++) {
DataColumn col = row.Table.Columns [i];
if (col.ColumnMapping == MappingType.SimpleContent)
if (col.ColumnMapping == MappingType.SimpleContent || col.ColumnName == XmlHelper.Decode (args.NewParent.LocalName))
row [col] = StringToObject (col.DataType, args.Node.Value);
}
}
@@ -763,9 +763,8 @@ namespace MonoTests.System.Data
DataTable table = new DataTable("TABLE1");
table.ExtendedProperties.Add("T1", "extended1");
table.Columns.Add("C1", typeof(int));
table.Columns[0].MaxLength = 10;
table.Columns.Add("C2", typeof(string));
table.Columns[0].MaxLength = 20;
table.Columns[1].MaxLength = 20;
table.Columns[0].ExtendedProperties.Add("C1Ext1", "extended2");
table.Columns[1].ExtendedProperties.Add("C2Ext1", "extended3");
dataSet1.Tables.Add(table);
@@ -35,6 +35,8 @@ namespace MonoTests.System.Data
[TestFixture]
public class DataTableReadWriteXmlTest
{
public static readonly string EOL = Environment.NewLine;
void StandardizeXmlFormat(ref string xml)
{
XmlDocument doc = new XmlDocument();
@@ -124,11 +126,11 @@ namespace MonoTests.System.Data
// Get XML for DataSet writes.
sw.GetStringBuilder().Length = 0;
ds.WriteXml(sw);
string xmlDSNone = sw.ToString().Replace ("\n", "\r\n");
string xmlDSNone = sw.ToString().Replace ("\n", EOL);
sw.GetStringBuilder().Length = 0;
ds.WriteXml(sw, XmlWriteMode.DiffGram);
string xmlDSDiffGram = sw.ToString().Replace ("\n", "\r\n");
string xmlDSDiffGram = sw.ToString().Replace ("\n", EOL);
sw.GetStringBuilder().Length = 0;
ds.WriteXml(sw, XmlWriteMode.WriteSchema);
@@ -186,11 +188,11 @@ namespace MonoTests.System.Data
sw.GetStringBuilder().Length = 0;
ds.WriteXml(sw);
xmlDSNone = sw.ToString().Replace ("\n", "\r\n");
xmlDSNone = sw.ToString().Replace ("\n", EOL);
sw.GetStringBuilder().Length = 0;
ds.WriteXml(sw, XmlWriteMode.DiffGram);
xmlDSDiffGram = sw.ToString().Replace ("\n", "\r\n");;
xmlDSDiffGram = sw.ToString().Replace ("\n", EOL);
sw.GetStringBuilder().Length = 0;
ds.WriteXml(sw, XmlWriteMode.WriteSchema);
@@ -54,7 +54,7 @@ namespace MonoTests.System.Data
[TestFixture]
public class DataTableTest : DataSetAssertion
{
string EOL = "\r\n";
string EOL = Environment.NewLine;
[Test]
public void Ctor()
@@ -286,7 +286,7 @@ namespace MonoTests.System.Data.Xml
Nav.MoveToNext ();
Assert.AreEqual ("Region", Nav.Name.ToString (), "test#06");
Assert.AreEqual ("2Western", Nav.Value.Substring(0, Nav.Value.IndexOf ("\n") - 1), "test#07");
Assert.AreEqual ("2Western", Nav.Value.Substring(0, Nav.Value.IndexOf (EOL)), "test#07");
Nav.MoveToFirstChild ();
Assert.AreEqual ("2", Nav.Value, "test#08");
Nav.MoveToRoot ();
@@ -287,12 +287,8 @@ namespace MonoTests.System.Xml
// No exception shud be thrown
XmlDataDocument doc = new XmlDataDocument (ds);
// Should fail to save as there are no rows
try {
doc.Save (new StringWriter ());
Fail ("#1");
} catch (InvalidOperationException) {
}
// Should not fail to save because of "no rows"
doc.Save (new StringWriter ());
table1.Rows.Add (new object[] {0});
table1.Rows.Add (new object[] {1});
@@ -1,31 +1,31 @@
<?xml version="1.0" standalone="yes"?>
<Root>
<Region>
<RegionID>1</RegionID>
<RegionDescription>Eastern
</RegionDescription>
</Region>
<Region>
<RegionID>2</RegionID>
<RegionDescription>Western
</RegionDescription>
</Region>
<Region>
<RegionID>3</RegionID>
<RegionDescription>Northern
</RegionDescription>
</Region>
<Region>
<RegionID>4</RegionID>
<RegionDescription>Southern
</RegionDescription>
</Region>
<MoreData>
<Column1>12</Column1>
<Column2>Hi There</Column2>
</MoreData>
<MoreData>
<Column1>12</Column1>
<Column2>Hi There</Column2>
</MoreData>
</Root>
<?xml version="1.0" standalone="yes"?>
<Root>
<Region>
<RegionID>1</RegionID>
<RegionDescription>Eastern
</RegionDescription>
</Region>
<Region>
<RegionID>2</RegionID>
<RegionDescription>Western
</RegionDescription>
</Region>
<Region>
<RegionID>3</RegionID>
<RegionDescription>Northern
</RegionDescription>
</Region>
<Region>
<RegionID>4</RegionID>
<RegionDescription>Southern
</RegionDescription>
</Region>
<MoreData>
<Column1>12</Column1>
<Column2>Hi There</Column2>
</MoreData>
<MoreData>
<Column1>12</Column1>
<Column2>Hi There</Column2>
</MoreData>
</Root>
@@ -232,10 +232,20 @@ namespace System.Net.Http.Headers
return false;
}
int parens = 1;
while (pos < s.Length) {
var ch = s[pos];
if (ch == '(') {
++parens;
++pos;
continue;
}
if (ch == ')') {
++pos;
if (--parens > 0)
continue;
var start = readToken.StartPosition;
value = s.Substring (start, pos - start);
return true;
@@ -101,12 +101,12 @@ namespace MonoTests.System.Net.Http.Headers
Assert.AreEqual ("1.1", res.ProtocolVersion, "#3");
Assert.AreEqual ("1.1 nowhere.com", res.ToString (), "#4");
res = ViaHeaderValue.Parse ("foo / 1.1 nowhere.com:43 ( lalala ) ");
res = ViaHeaderValue.Parse ("foo / 1.1 nowhere.com:43 ( lal ( a ) la ) ");
Assert.AreEqual ("foo", res.ProtocolName, "#10");
Assert.AreEqual ("1.1", res.ProtocolVersion, "#11");
Assert.AreEqual ("nowhere.com:43", res.ReceivedBy, "#12");
Assert.AreEqual ("( lalala )", res.Comment, "#13");
Assert.AreEqual ("foo/1.1 nowhere.com:43 ( lalala )", res.ToString (), "#14");
Assert.AreEqual ("( lal ( a ) la )", res.Comment, "#13");
Assert.AreEqual ("foo/1.1 nowhere.com:43 ( lal ( a ) la )", res.ToString (), "#14");
}
[Test]
+2 -9
View File
@@ -6,15 +6,8 @@ LIBRARY = System.Numerics.dll
LIB_MCS_FLAGS = -r:System.dll /unsafe -d:MONO
TEST_MCS_FLAGS = $(LIB_MCS_FLAGS)
RESOURCE_STRINGS = ../../../external/referencesource/System.Numerics/System.Numerics.txt
EXTRA_DISTFILES =
VALID_PROFILE := $(filter 4, $(FRAMEWORK_VERSION_MAJOR)) $(filter 2.1, $(FRAMEWORK_VERSION))
ifndef VALID_PROFILE
LIBRARY_NAME = dummy-System.Numerics.dll
NO_INSTALL = yes
NO_SIGN_ASSEMBLY = yes
NO_TEST = yes
endif
include ../../build/library.make
@@ -14,6 +14,8 @@ LIB_MCS_FLAGS = \
/r:System.Core.dll \
$(RESOURCE_FILES:%=/resource:%)
RESOURCE_STRINGS = ../../../external/referencesource/System.Runtime.Serialization/System.Runtime.Serialization.txt
ifneq (2.1, $(FRAMEWORK_VERSION))
LIB_MCS_FLAGS += /d:NET_3_0 /r:System.Data.dll /r:System.Configuration.dll
endif
@@ -30,12 +32,4 @@ EXTRA_DISTFILES = $(RESOURCE_FILES) $(TEST_RESOURCE_FILES) \
Test/Resources/Schemas/*.xsd \
Test/System.Runtime.Serialization/one.xml
VALID_PROFILE := $(filter 2 4, $(FRAMEWORK_VERSION_MAJOR))
ifndef VALID_PROFILE
LIBRARY_NAME = dummy-System.Runtime.Serialization.dll
NO_INSTALL = yes
NO_SIGN_ASSEMBLY = yes
NO_TEST = yes
endif
include ../../build/library.make
@@ -143,8 +143,7 @@ namespace System.Runtime.Serialization
if (schemas == null)
throw new ArgumentNullException ("schemas");
if (!schemas.IsCompiled)
schemas.Compile ();
PrepareSchemas (schemas);
foreach (XmlSchemaElement xe in schemas.GlobalElements.Values)
if (!CanImport (schemas, xe))
@@ -159,8 +158,7 @@ namespace System.Runtime.Serialization
if (typeNames == null)
throw new ArgumentNullException ("typeNames");
if (!schemas.IsCompiled)
schemas.Compile ();
PrepareSchemas (schemas);
foreach (var name in typeNames)
if (!CanImport (schemas, name))
@@ -175,8 +173,7 @@ namespace System.Runtime.Serialization
if (typeName == null)
throw new ArgumentNullException ("typeName");
if (!schemas.IsCompiled)
schemas.Compile ();
PrepareSchemas (schemas);
if (IsPredefinedType (typeName))
return true; // while it just ignores...
@@ -194,8 +191,7 @@ namespace System.Runtime.Serialization
if (element == null)
throw new ArgumentNullException ("element");
if (!schemas.IsCompiled)
schemas.Compile ();
PrepareSchemas (schemas);
if (element.ElementSchemaType != null)
return CanImport (schemas, element.ElementSchemaType as XmlSchemaType);
@@ -390,13 +386,21 @@ namespace System.Runtime.Serialization
// Import
void PrepareSchemas (XmlSchemaSet schemas)
{
if (!schemas.Contains (KnownTypeCollection.MSSimpleNamespace))
schemas.Add (XmlSchema.Read (GetType ().Assembly.GetManifestResourceStream ("mstypes.schema"), null));
if (!schemas.IsCompiled)
schemas.Compile ();
}
public void Import (XmlSchemaSet schemas)
{
if (schemas == null)
throw new ArgumentNullException ("schemas");
if (!schemas.IsCompiled)
schemas.Compile ();
PrepareSchemas (schemas);
foreach (XmlSchemaElement xe in schemas.GlobalElements.Values)
Import (schemas, xe);
@@ -420,8 +424,7 @@ namespace System.Runtime.Serialization
if (typeName == null)
throw new ArgumentNullException ("typeName");
if (!schemas.IsCompiled)
schemas.Compile ();
PrepareSchemas (schemas);
if (IsPredefinedType (typeName))
return;
@@ -190,6 +190,9 @@ namespace System.Xml
if (reader == null)
throw new ArgumentNullException ("reader");
if (reader.ReadState == ReadState.Initial)
reader.Read ();
switch (reader.NodeType) {
case XmlNodeType.Element:
// gratuitously copied from System.XML/System.Xml/XmlWriter.cs:WriteNode(XmlReader,bool)
@@ -44,6 +44,8 @@ namespace System.Xml
var settings = new XmlWriterSettings ();
settings.Encoding = encoding;
settings.OmitXmlDeclaration = true;
settings.ConformanceLevel = ConformanceLevel.Fragment;
settings.NewLineChars = "\r\n";
xml_writer_settings = settings;
// FIXME: actually it does not likely use ContentType.ToString() but writes those header items by own.
@@ -134,7 +136,8 @@ namespace System.Xml
public override void WriteEndDocument ()
{
w.WriteEndDocument ();
// We don't call w.WriteEndElement() because that causes state error
// (which is correct; MTOM writer just does not expect it).
}
public override void WriteEndElement ()
@@ -182,13 +185,15 @@ namespace System.Xml
public override void WriteStartDocument ()
{
CheckState ();
w.WriteStartDocument ();
// We don't call w.WriteStartDocument() because that causes state error
// (which is correct; MTOM writer just does not expect it).
}
public override void WriteStartDocument (bool standalone)
{
CheckState ();
w.WriteStartDocument (standalone);
// We don't call w.WriteStartDocument() because that causes state error
// (which is correct; MTOM writer just does not expect it).
}
public override void WriteStartElement (string prefix, string localName, string namespaceURI)
@@ -206,16 +211,21 @@ namespace System.Xml
get { return w.WriteState; }
}
static readonly char [] eol_chars = "\r\n".ToCharArray ();
public override void WriteString (string text)
{
CheckState ();
int i1, i2 = 0;
do {
i1 = text.IndexOf ('\r', i2);
i1 = text.IndexOfAny (eol_chars, i2);
if (i1 >= 0) {
w.WriteString (text.Substring (i2, i1 - i2));
WriteCharEntity ('\r');
if (text [i1] == '\r')
w.WriteCharEntity ('\r');
else
w.WriteRaw ("\r\n");
i2 = i1 + 1;
} else {
w.WriteString (text.Substring (i2));
@@ -248,12 +258,14 @@ namespace System.Xml
{
if (w == null && write_headers)
WriteMimeHeaders ();
if (w == null || w.WriteState == WriteState.Closed || w.WriteState == WriteState.Error)
w = CreateWriter ();
}
void WriteMimeHeaders ()
{
w.Flush ();
writer.Write ("MIME-Version: 1.0\r\n");
writer.Write ("Content-Type: ");
writer.Write (content_type.ToString ());
@@ -293,6 +305,7 @@ namespace System.Xml
if (section_count > 1)
return;
w.Flush ();
writer.Write ("\r\n");
writer.Write ("--");
writer.Write (content_type.Boundary);
@@ -47,6 +47,7 @@ namespace MonoTests.System.Xml
{
MemoryStream ms = new MemoryStream ();
var w = XmlDictionaryWriter.CreateMtomWriter (ms, Encoding.UTF8, 10000, "sTaRt", "myboundary", "urn:foo", false, false);
w.WriteStartDocument ();
w.WriteStartElement ("root");
w.WriteRaw ("RAW");
w.WriteStartElement ("foo");
@@ -37,4 +37,6 @@
</xs:restriction>
</xs:simpleType>
<xs:attribute name="FactoryType" type="xs:QName" />
<xs:attribute name="Id" type="xs:ID" />
<xs:attribute name="Ref" type="xs:IDREF" />
</xs:schema>
@@ -10,6 +10,7 @@
//
using System;
using System.Collections;
using System.IO;
using System.Security.Cryptography;
using System.Security.Cryptography.Xml;
@@ -243,7 +244,19 @@ namespace MonoTests.System.Security.Cryptography.Xml {
XmlDocument doc = GetXslDoc ();
transform.LoadInnerXml (doc.DocumentElement.ChildNodes);
XmlNodeList xnl = transform.UnprotectedGetInnerXml ();
Assert.AreEqual (doc.DocumentElement.ChildNodes, xnl, "LoadInnerXml");
AssertNodeListEqual (doc.DocumentElement.ChildNodes, xnl, "LoadInnerXml");
}
void AssertNodeListEqual (XmlNodeList nl1, XmlNodeList nl2, string label)
{
Assert.AreEqual (nl1.Count, nl2.Count, label + ": node count");
IEnumerator e1, e2;
int i;
for (i = 0, e1 = nl1.GetEnumerator (), e2 = nl2.GetEnumerator (); e1.MoveNext (); i++) {
Assert.IsTrue (e2.MoveNext (), label + " : nl2.MoveNext");
Assert.AreEqual (e1.Current, e2.Current, label + " : node at " + i);
}
Assert.IsFalse (e2.MoveNext (), label + " : nl2 has extras");
}
[Test]
@@ -411,10 +411,10 @@ namespace System.ServiceModel.Syndication
writer.WriteStartElement ("feed", AtomNamespace);
if (Feed.BaseUri != null)
writer.WriteAttributeString ("xml:base", Feed.BaseUri.ToString ());
writer.WriteAttributeString ("xml", "base", null, Feed.BaseUri.ToString ());
if (Feed.Language != null)
writer.WriteAttributeString ("xml:lang", Feed.Language);
writer.WriteAttributeString ("xml", "lang", null, Feed.Language);
// atom:feed elements MUST contain exactly one atom:title element.
(Feed.Title ?? new TextSyndicationContent (String.Empty)).WriteTo (writer, "title", AtomNamespace);
@@ -408,7 +408,7 @@ namespace System.ServiceModel.Syndication
writer.WriteStartElement ("entry", AtomNamespace);
if (Item.BaseUri != null)
writer.WriteAttributeString ("xml:base", Item.BaseUri.ToString ());
writer.WriteAttributeString ("xml", "base", null, Item.BaseUri.ToString ());
// atom:entry elements MUST contain exactly one atom:id element.
writer.WriteElementString ("id", AtomNamespace, Item.Id ?? new UniqueId ().ToString ());
@@ -321,11 +321,15 @@ namespace System
string [] parameters = Uri.UnescapeDataString (candidate.Query.Substring (1)).Split ('&'); // chop first '?'
foreach (string parameter in parameters) {
string [] pair = parameter.Split ('=');
m.QueryParameters.Add (pair [0], pair [1]);
if (!query_params.ContainsKey (pair [0]))
continue;
string templateName = query_params [pair [0]];
vc.Add (templateName, pair [1]);
if (pair.Length > 0) {
m.QueryParameters.Add (pair [0], pair.Length == 2 ? pair [1] : null);
if (!query_params.ContainsKey (pair [0]))
continue;
if (pair.Length > 1) {
string templateName = query_params [pair [0]];
vc.Add (templateName, pair [1]);
}
}
}
return m;
@@ -461,6 +461,14 @@ namespace MonoTests.System
Assert.AreEqual ("qqq", m.WildcardPathSegments [2], "#5");
}
[Test]
public void MatchIgnoreQueryParamNoValue ()
{
var t = new UriTemplate ("/{a}/*", true);
var m = t.Match (new Uri ("http://s"), new Uri ("http://s/a/b?foo"));
Assert.AreEqual (1, m.QueryParameters.Keys.Count, "#1");
}
[Test]
public void IgnoreTrailingSlash ()
{
@@ -31,7 +31,6 @@ using System.IO;
using System.Runtime.Serialization;
using System.Xml;
using System.Xml.Schema;
using Mono.Xml.XPath;
namespace System.ServiceModel.Channels
{
@@ -168,7 +167,8 @@ namespace System.ServiceModel.Channels
if (!IsEmpty) {
if (copied_message != null)
copied_message.WriteBodyContents (writer);
OnWriteBodyContents (writer);
else
OnWriteBodyContents (writer);
}
else if (Version.Envelope == EnvelopeVersion.None)
WriteXsiNil (writer);
@@ -29,11 +29,13 @@ using System;
using System.Collections.Generic;
using System.IO;
using System.Net;
using System.Net.Sockets;
using System.Net.Security;
using System.ServiceModel;
using System.ServiceModel.Description;
using System.ServiceModel.Security;
using System.Threading;
using System.Xml;
namespace System.ServiceModel.Channels
{
@@ -124,12 +126,29 @@ namespace System.ServiceModel.Channels
}
try {
return TryReceiveRequest (tout, out ctx);
} catch (XmlException ex) {
Console.WriteLine ("Xml Exception (Dropped Connection?):" + ex.Message);
//on dropped connection,
//whatever you do don't crash
//the whole app. Ignore for now
} catch (SocketException ex) {
Console.WriteLine ("Socket Exception (Dropped Connection?):" + ex.Message);
//on dropped connection,
//whatever you do don't crash
//the whole app. Ignore for now
} catch (IOException ex) {
Console.WriteLine ("I/O Exception (Dropped Connection?):" + ex.Message);
//on dropped connection,
//whatever you do don't crash
//the whole app. Ignore for now
} finally {
lock (async_result_lock) {
CurrentAsyncResult = null;
CurrentAsyncThread = null;
}
}
ctx = null;
return false;
});
RequestContext dummy;
IAsyncResult result;
@@ -96,7 +96,7 @@ namespace System.ServiceModel.Description {
*
*/
var exactlyOne = element.FirstChild as XmlElement;
var exactlyOne = element.SelectSingleNode ("*") as XmlElement;
if (exactlyOne == null) {
// OOPS
return;
@@ -46,7 +46,7 @@ namespace System.ServiceModel.Description
else if (Reader.LocalName == "Identifier" && Reader.NamespaceURI == "") {
ob.@Identifier = Reader.Value;
}
else if (IsXmlnsAttribute (Reader.Name)) {
else if (IsXmlnsAttribute (Reader.LocalName)) {
}
else {
System.Xml.XmlAttribute attr = (System.Xml.XmlAttribute) Document.ReadNode(Reader);
@@ -325,13 +325,13 @@ namespace System.ServiceModel.Description
if (ob.@DocumentationElement != null) {
XmlNode o14 = ob.@DocumentationElement;
if (o14 is XmlElement) {
if ((o14.Name == "documentation" && o14.NamespaceURI == "http://schemas.xmlsoap.org/wsdl/")) {
if ((o14.LocalName == "documentation" && o14.NamespaceURI == "http://schemas.xmlsoap.org/wsdl/")) {
}
else o14.WriteTo (Writer);
WriteElementLiteral (o14, "", "", false, true);
}
else
throw CreateUnknownAnyElementException (o14.Name, o14.NamespaceURI);
throw CreateUnknownAnyElementException (o14.LocalName, o14.NamespaceURI);
}
if (writeWrappingElem) WriteEndElement (ob);
}
@@ -368,13 +368,13 @@ namespace System.ServiceModel.Description
if (ob.@DocumentationElement != null) {
XmlNode o17 = ob.@DocumentationElement;
if (o17 is XmlElement) {
if ((o17.Name == "documentation" && o17.NamespaceURI == "http://schemas.xmlsoap.org/wsdl/")) {
if ((o17.LocalName == "documentation" && o17.NamespaceURI == "http://schemas.xmlsoap.org/wsdl/")) {
}
else o17.WriteTo (Writer);
WriteElementLiteral (o17, "", "", false, true);
}
else
throw CreateUnknownAnyElementException (o17.Name, o17.NamespaceURI);
throw CreateUnknownAnyElementException (o17.LocalName, o17.NamespaceURI);
}
if (ob.@Schemas != null) {
for (int n18 = 0; n18 < ob.@Schemas.Count; n18++) {
@@ -418,13 +418,13 @@ namespace System.ServiceModel.Description
if (ob.@DocumentationElement != null) {
XmlNode o21 = ob.@DocumentationElement;
if (o21 is XmlElement) {
if ((o21.Name == "documentation" && o21.NamespaceURI == "http://schemas.xmlsoap.org/wsdl/")) {
if ((o21.LocalName == "documentation" && o21.NamespaceURI == "http://schemas.xmlsoap.org/wsdl/")) {
}
else o21.WriteTo (Writer);
WriteElementLiteral (o21, "", "", false, true);
}
else
throw CreateUnknownAnyElementException (o21.Name, o21.NamespaceURI);
throw CreateUnknownAnyElementException (o21.LocalName, o21.NamespaceURI);
}
if (ob.@Parts != null) {
for (int n22 = 0; n22 < ob.@Parts.Count; n22++) {
@@ -468,13 +468,13 @@ namespace System.ServiceModel.Description
if (ob.@DocumentationElement != null) {
XmlNode o25 = ob.@DocumentationElement;
if (o25 is XmlElement) {
if ((o25.Name == "documentation" && o25.NamespaceURI == "http://schemas.xmlsoap.org/wsdl/")) {
if ((o25.LocalName == "documentation" && o25.NamespaceURI == "http://schemas.xmlsoap.org/wsdl/")) {
}
else o25.WriteTo (Writer);
WriteElementLiteral (o25, "", "", false, true);
}
else
throw CreateUnknownAnyElementException (o25.Name, o25.NamespaceURI);
throw CreateUnknownAnyElementException (o25.LocalName, o25.NamespaceURI);
}
if (ob.@Operations != null) {
for (int n26 = 0; n26 < ob.@Operations.Count; n26++) {
@@ -519,13 +519,13 @@ namespace System.ServiceModel.Description
if (ob.@DocumentationElement != null) {
XmlNode o29 = ob.@DocumentationElement;
if (o29 is XmlElement) {
if ((o29.Name == "documentation" && o29.NamespaceURI == "http://schemas.xmlsoap.org/wsdl/")) {
if ((o29.LocalName == "documentation" && o29.NamespaceURI == "http://schemas.xmlsoap.org/wsdl/")) {
}
else o29.WriteTo (Writer);
WriteElementLiteral (o29, "", "", false, true);
}
else
throw CreateUnknownAnyElementException (o29.Name, o29.NamespaceURI);
throw CreateUnknownAnyElementException (o29.LocalName, o29.NamespaceURI);
}
if (ob.@Operations != null) {
for (int n30 = 0; n30 < ob.@Operations.Count; n30++) {
@@ -569,13 +569,13 @@ namespace System.ServiceModel.Description
if (ob.@DocumentationElement != null) {
XmlNode o33 = ob.@DocumentationElement;
if (o33 is XmlElement) {
if ((o33.Name == "documentation" && o33.NamespaceURI == "http://schemas.xmlsoap.org/wsdl/")) {
if ((o33.LocalName == "documentation" && o33.NamespaceURI == "http://schemas.xmlsoap.org/wsdl/")) {
}
else o33.WriteTo (Writer);
WriteElementLiteral (o33, "", "", false, true);
}
else
throw CreateUnknownAnyElementException (o33.Name, o33.NamespaceURI);
throw CreateUnknownAnyElementException (o33.LocalName, o33.NamespaceURI);
}
if (ob.@Ports != null) {
for (int n34 = 0; n34 < ob.@Ports.Count; n34++) {
@@ -621,13 +621,13 @@ namespace System.ServiceModel.Description
if (ob.@DocumentationElement != null) {
XmlNode o37 = ob.@DocumentationElement;
if (o37 is XmlElement) {
if ((o37.Name == "documentation" && o37.NamespaceURI == "http://schemas.xmlsoap.org/wsdl/")) {
if ((o37.LocalName == "documentation" && o37.NamespaceURI == "http://schemas.xmlsoap.org/wsdl/")) {
}
else o37.WriteTo (Writer);
WriteElementLiteral (o37, "", "", false, true);
}
else
throw CreateUnknownAnyElementException (o37.Name, o37.NamespaceURI);
throw CreateUnknownAnyElementException (o37.LocalName, o37.NamespaceURI);
}
if (writeWrappingElem) WriteEndElement (ob);
}
@@ -669,13 +669,13 @@ namespace System.ServiceModel.Description
if (ob.@DocumentationElement != null) {
XmlNode o40 = ob.@DocumentationElement;
if (o40 is XmlElement) {
if ((o40.Name == "documentation" && o40.NamespaceURI == "http://schemas.xmlsoap.org/wsdl/")) {
if ((o40.LocalName == "documentation" && o40.NamespaceURI == "http://schemas.xmlsoap.org/wsdl/")) {
}
else o40.WriteTo (Writer);
WriteElementLiteral (o40, "", "", false, true);
}
else
throw CreateUnknownAnyElementException (o40.Name, o40.NamespaceURI);
throw CreateUnknownAnyElementException (o40.LocalName, o40.NamespaceURI);
}
if (ob.@Faults != null) {
for (int n41 = 0; n41 < ob.@Faults.Count; n41++) {
@@ -731,13 +731,13 @@ namespace System.ServiceModel.Description
if (ob.@DocumentationElement != null) {
XmlNode o45 = ob.@DocumentationElement;
if (o45 is XmlElement) {
if ((o45.Name == "documentation" && o45.NamespaceURI == "http://schemas.xmlsoap.org/wsdl/")) {
if ((o45.LocalName == "documentation" && o45.NamespaceURI == "http://schemas.xmlsoap.org/wsdl/")) {
}
else o45.WriteTo (Writer);
WriteElementLiteral (o45, "", "", false, true);
}
else
throw CreateUnknownAnyElementException (o45.Name, o45.NamespaceURI);
throw CreateUnknownAnyElementException (o45.LocalName, o45.NamespaceURI);
}
if (ob.@Faults != null) {
for (int n46 = 0; n46 < ob.@Faults.Count; n46++) {
@@ -784,13 +784,13 @@ namespace System.ServiceModel.Description
if (ob.@DocumentationElement != null) {
XmlNode o49 = ob.@DocumentationElement;
if (o49 is XmlElement) {
if ((o49.Name == "documentation" && o49.NamespaceURI == "http://schemas.xmlsoap.org/wsdl/")) {
if ((o49.LocalName == "documentation" && o49.NamespaceURI == "http://schemas.xmlsoap.org/wsdl/")) {
}
else o49.WriteTo (Writer);
WriteElementLiteral (o49, "", "", false, true);
}
else
throw CreateUnknownAnyElementException (o49.Name, o49.NamespaceURI);
throw CreateUnknownAnyElementException (o49.LocalName, o49.NamespaceURI);
}
if (writeWrappingElem) WriteEndElement (ob);
}
@@ -830,13 +830,13 @@ namespace System.ServiceModel.Description
if (ob.@DocumentationElement != null) {
XmlNode o52 = ob.@DocumentationElement;
if (o52 is XmlElement) {
if ((o52.Name == "documentation" && o52.NamespaceURI == "http://schemas.xmlsoap.org/wsdl/")) {
if ((o52.LocalName == "documentation" && o52.NamespaceURI == "http://schemas.xmlsoap.org/wsdl/")) {
}
else o52.WriteTo (Writer);
WriteElementLiteral (o52, "", "", false, true);
}
else
throw CreateUnknownAnyElementException (o52.Name, o52.NamespaceURI);
throw CreateUnknownAnyElementException (o52.LocalName, o52.NamespaceURI);
}
if (writeWrappingElem) WriteEndElement (ob);
}
@@ -876,13 +876,13 @@ namespace System.ServiceModel.Description
if (ob.@DocumentationElement != null) {
XmlNode o55 = ob.@DocumentationElement;
if (o55 is XmlElement) {
if ((o55.Name == "documentation" && o55.NamespaceURI == "http://schemas.xmlsoap.org/wsdl/")) {
if ((o55.LocalName == "documentation" && o55.NamespaceURI == "http://schemas.xmlsoap.org/wsdl/")) {
}
else o55.WriteTo (Writer);
WriteElementLiteral (o55, "", "", false, true);
}
else
throw CreateUnknownAnyElementException (o55.Name, o55.NamespaceURI);
throw CreateUnknownAnyElementException (o55.LocalName, o55.NamespaceURI);
}
if (writeWrappingElem) WriteEndElement (ob);
}
@@ -922,13 +922,13 @@ namespace System.ServiceModel.Description
if (ob.@DocumentationElement != null) {
XmlNode o58 = ob.@DocumentationElement;
if (o58 is XmlElement) {
if ((o58.Name == "documentation" && o58.NamespaceURI == "http://schemas.xmlsoap.org/wsdl/")) {
if ((o58.LocalName == "documentation" && o58.NamespaceURI == "http://schemas.xmlsoap.org/wsdl/")) {
}
else o58.WriteTo (Writer);
WriteElementLiteral (o58, "", "", false, true);
}
else
throw CreateUnknownAnyElementException (o58.Name, o58.NamespaceURI);
throw CreateUnknownAnyElementException (o58.LocalName, o58.NamespaceURI);
}
if (writeWrappingElem) WriteEndElement (ob);
}
@@ -967,13 +967,13 @@ namespace System.ServiceModel.Description
if (ob.@DocumentationElement != null) {
XmlNode o61 = ob.@DocumentationElement;
if (o61 is XmlElement) {
if ((o61.Name == "documentation" && o61.NamespaceURI == "http://schemas.xmlsoap.org/wsdl/")) {
if ((o61.LocalName == "documentation" && o61.NamespaceURI == "http://schemas.xmlsoap.org/wsdl/")) {
}
else o61.WriteTo (Writer);
WriteElementLiteral (o61, "", "", false, true);
}
else
throw CreateUnknownAnyElementException (o61.Name, o61.NamespaceURI);
throw CreateUnknownAnyElementException (o61.LocalName, o61.NamespaceURI);
}
if (writeWrappingElem) WriteEndElement (ob);
}
@@ -1012,13 +1012,13 @@ namespace System.ServiceModel.Description
if (ob.@DocumentationElement != null) {
XmlNode o64 = ob.@DocumentationElement;
if (o64 is XmlElement) {
if ((o64.Name == "documentation" && o64.NamespaceURI == "http://schemas.xmlsoap.org/wsdl/")) {
if ((o64.LocalName == "documentation" && o64.NamespaceURI == "http://schemas.xmlsoap.org/wsdl/")) {
}
else o64.WriteTo (Writer);
WriteElementLiteral (o64, "", "", false, true);
}
else
throw CreateUnknownAnyElementException (o64.Name, o64.NamespaceURI);
throw CreateUnknownAnyElementException (o64.LocalName, o64.NamespaceURI);
}
if (writeWrappingElem) WriteEndElement (ob);
}
@@ -1057,13 +1057,13 @@ namespace System.ServiceModel.Description
if (ob.@DocumentationElement != null) {
XmlNode o67 = ob.@DocumentationElement;
if (o67 is XmlElement) {
if ((o67.Name == "documentation" && o67.NamespaceURI == "http://schemas.xmlsoap.org/wsdl/")) {
if ((o67.LocalName == "documentation" && o67.NamespaceURI == "http://schemas.xmlsoap.org/wsdl/")) {
}
else o67.WriteTo (Writer);
WriteElementLiteral (o67, "", "", false, true);
}
else
throw CreateUnknownAnyElementException (o67.Name, o67.NamespaceURI);
throw CreateUnknownAnyElementException (o67.LocalName, o67.NamespaceURI);
}
if (writeWrappingElem) WriteEndElement (ob);
}
@@ -5,6 +5,9 @@ using System.ServiceModel.Channels;
using System.ServiceModel.Security;
using System.ServiceModel.Security.Tokens;
using System.Text;
using System.IO;
using System.Xml;
using System.Net.Sockets;
namespace System.ServiceModel.Dispatcher
{
@@ -24,8 +27,34 @@ namespace System.ServiceModel.Dispatcher
using (new OperationContextScope (mrc.OperationContext)) {
try {
process_handlers_chain.ProcessRequestChain (mrc);
}
catch (Exception e) {
} catch (IOException e) {
// FIXME?: On dropped connection do not
// dump a stacktrace, but should be safe
// to dump a console message as in
// default exception handler and
// call error_handlers_chain
Console.WriteLine ("I/O Error (Dropped Connection?): " + e.Message);
mrc.ProcessingException = e;
error_handlers_chain.ProcessRequestChain (mrc);
} catch (SocketException e) {
// FIXME?: On dropped connection do not
// dump a stacktrace, but should be safe
// to dump a console message as in
// default exception handler and
// call error_handlers_chain
Console.WriteLine ("SocketExcpetion (Dropped Connection?): " + e.Message);
mrc.ProcessingException = e;
error_handlers_chain.ProcessRequestChain (mrc);
} catch (XmlException e) {
// FIXME?: On dropped connection do not
// dump a stacktrace, but should be safe
// to dump a console message as in
// default exception handler and
// call error_handlers_chain
Console.WriteLine ("XmlException (Dropped Connection?): " + e.Message);
mrc.ProcessingException = e;
error_handlers_chain.ProcessRequestChain (mrc);
} catch (Exception e) {
// FIXME: this is not really expected use of ChannelDispatcher.ErrorHandlers.
// They are now correctly used in process_handler_chain (namely OperationInvokerHandler).
// For this kind of "outsider" exceptions are actually left thrown
@@ -35,6 +35,9 @@ using System.Threading;
using System.Transactions;
using System.ServiceModel;
using System.ServiceModel.Description;
using System.Net.Sockets;
using System.Xml;
using System.IO;
namespace System.ServiceModel.Dispatcher
{
@@ -598,7 +601,10 @@ namespace System.ServiceModel.Dispatcher
if (ProcessErrorWithHandlers (reply, ex, out res))
return;
rc.Reply (res);
if ((!(ex is SocketException)) &&
(!(ex is XmlException)) &&
(!(ex is IOException)))
rc.Reply (res);
reply.Close (owner.DefaultCloseTimeout); // close the channel
} finally {
@@ -251,8 +251,8 @@ namespace MonoTests.System.ServiceModel.Security
sw = new StringWriter ();
using (XmlWriter w = XmlWriter.Create (sw, GetWriterSettings ())) {
new WSSecurityTokenSerializer (SecurityVersion.WSSecurity10).WriteKeyIdentifierClause (w, ic);
Assert.AreEqual (expected, sw.ToString (), "WSS1.0");
}
Assert.AreEqual (expected, sw.ToString (), "WSS1.0");
}
[Test]
@@ -1576,7 +1576,7 @@ namespace MonoTests.System.Web.UI.WebControls
#if DOT_NET
string origHtml = "<table id=\"MyWizard_SideBarList\" cellspacing=\"0\" style=\"border-collapse:collapse;\">\r\n\t<tr>\r\n\t\t<td style=\"font-weight:bold;\"><a id=\"MyWizard_SideBarList_SideBarButton_0\" href=\"javascript:__doPostBack(&#39;MyWizard$SideBarList$ctl00$SideBarButton&#39;,&#39;&#39;)\">step1</a></td>\r\n\t</tr>\r\n</table><table cellspacing=\"5\" cellpadding=\"5\">\r\n\t<tr>\r\n\t\t<td align=\"right\"><input type=\"submit\" name=\"MyWizard$StepNavigationTemplateContainerID$StepPreviousButton\" value=\"Previous\" id=\"MyWizard_StepNavigationTemplateContainerID_StepPreviousButton\" /></td><td align=\"right\"><input type=\"submit\" name=\"MyWizard$StepNavigationTemplateContainerID$StepNextButton\" value=\"Next\" id=\"MyWizard_StepNavigationTemplateContainerID_StepNextButton\" /></td>\r\n\t</tr>\r\n</table>Step";
#else
string origHtml = "<table id=\"MyWizard_SideBarList\" cellspacing=\"0\" style=\"border-collapse:collapse;\">\r\n\t<tr>\r\n\t\t<td style=\"font-weight:bold;\"><a id=\"MyWizard_SideBarList_ctl00_SideBarButton_0\" href=\"javascript:__doPostBack(&#39;MyWizard$SideBarList$ctl00$SideBarButton&#39;,&#39;&#39;)\">step1</a></td>\r\n\t</tr>\r\n</table><table cellspacing=\"5\" cellpadding=\"5\">\r\n\t<tr>\r\n\t\t<td align=\"right\"><input type=\"submit\" name=\"MyWizard$StepNavigationTemplateContainerID$StepPreviousButton\" value=\"Previous\" id=\"MyWizard_StepNavigationTemplateContainerID_StepPreviousButton\" /></td><td align=\"right\"><input type=\"submit\" name=\"MyWizard$StepNavigationTemplateContainerID$StepNextButton\" value=\"Next\" id=\"MyWizard_StepNavigationTemplateContainerID_StepNextButton\" /></td>\r\n\t</tr>\r\n</table>Step";
string origHtml = "<table id=\"MyWizard_SideBarList\" cellspacing=\"0\" style=\"border-collapse:collapse;\">\r\n\t<tr>\r\n\t\t<td style=\"font-weight:bold;\"><a id=\"MyWizard_SideBarList_ctl00_SideBarButton_0\" href=\"javascript:__doPostBack(&#39;MyWizard$SideBarList$ctl00$SideBarButton&#39;,&#39;&#39;)\">step1</a></td>\n\t</tr>\n</table><table cellspacing=\"5\" cellpadding=\"5\">\r\n\t<tr>\r\n\t\t<td align=\"right\"><input type=\"submit\" name=\"MyWizard$StepNavigationTemplateContainerID$StepPreviousButton\" value=\"Previous\" id=\"MyWizard_StepNavigationTemplateContainerID_StepPreviousButton\" /></td><td align=\"right\"><input type=\"submit\" name=\"MyWizard$StepNavigationTemplateContainerID$StepNextButton\" value=\"Next\" id=\"MyWizard_StepNavigationTemplateContainerID_StepNextButton\" /></td>\n\t</tr>\n</table>Step";
#endif
string renderedHtml = HtmlDiff.GetControlFromPageHtml (result);
Console.WriteLine (origHtml);
@@ -1608,14 +1608,14 @@ namespace MonoTests.System.Web.UI.WebControls
WebTest t = new WebTest (PageInvoker.CreateOnInit (LayoutTemplateRender));
t.UserData = "RenderHeader";
string result = t.Run ();
string origHtml = "Header<table cellspacing=\"5\" cellpadding=\"5\">\r\n\t<tr>\r\n\t\t<td align=\"right\"><input type=\"submit\" name=\"MyWizard$StepNavigationTemplateContainerID$StepPreviousButton\" value=\"Previous\" id=\"MyWizard_StepNavigationTemplateContainerID_StepPreviousButton\" /></td><td align=\"right\"><input type=\"submit\" name=\"MyWizard$StepNavigationTemplateContainerID$StepNextButton\" value=\"Next\" id=\"MyWizard_StepNavigationTemplateContainerID_StepNextButton\" /></td>\r\n\t</tr>\r\n</table>Step";
string origHtml = "Header<table cellspacing=\"5\" cellpadding=\"5\">\r\n\t<tr>\r\n\t\t<td align=\"right\"><input type=\"submit\" name=\"MyWizard$StepNavigationTemplateContainerID$StepPreviousButton\" value=\"Previous\" id=\"MyWizard_StepNavigationTemplateContainerID_StepPreviousButton\" /></td><td align=\"right\"><input type=\"submit\" name=\"MyWizard$StepNavigationTemplateContainerID$StepNextButton\" value=\"Next\" id=\"MyWizard_StepNavigationTemplateContainerID_StepNextButton\" /></td>\n\t</tr>\n</table>Step";
string renderedHtml = HtmlDiff.GetControlFromPageHtml (result);
Assert.AreEqual (origHtml, renderedHtml, "#A1");
t.UserData = "RenderHeader_InSpan";
result = t.Run ();
origHtml = "Header<table cellspacing=\"5\" cellpadding=\"5\">\r\n\t<tr>\r\n\t\t<td align=\"right\"><input type=\"submit\" name=\"MyWizard$StepNavigationTemplateContainerID$StepPreviousButton\" value=\"Previous\" id=\"MyWizard_StepNavigationTemplateContainerID_StepPreviousButton\" /></td><td align=\"right\"><input type=\"submit\" name=\"MyWizard$StepNavigationTemplateContainerID$StepNextButton\" value=\"Next\" id=\"MyWizard_StepNavigationTemplateContainerID_StepNextButton\" /></td>\r\n\t</tr>\r\n</table>Step";
origHtml = "Header<table cellspacing=\"5\" cellpadding=\"5\">\r\n\t<tr>\r\n\t\t<td align=\"right\"><input type=\"submit\" name=\"MyWizard$StepNavigationTemplateContainerID$StepPreviousButton\" value=\"Previous\" id=\"MyWizard_StepNavigationTemplateContainerID_StepPreviousButton\" /></td><td align=\"right\"><input type=\"submit\" name=\"MyWizard$StepNavigationTemplateContainerID$StepNextButton\" value=\"Next\" id=\"MyWizard_StepNavigationTemplateContainerID_StepNextButton\" /></td>\n\t</tr>\n</table>Step";
renderedHtml = HtmlDiff.GetControlFromPageHtml (result);
Assert.AreEqual (origHtml, renderedHtml, "#A2");
}
+121
View File
@@ -0,0 +1,121 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Xml.Schema;
namespace System.Xml
{
static partial class Res
{
public static string GetString (string s, params object [] args)
{
return args == null ? s : string.Format (s, args);
}
}
}
namespace System.Xml.Utils
{
static partial class Res
{
public static string GetString (string s, params object [] args)
{
return args == null || args.Length == 0 ? s : string.Format (s, args);
}
}
}
namespace System
{
static class AssemblyRef
{
public const string MicrosoftJScript = "Microsoft.JScript";
public const string SystemData = "System.Data";
}
static class ThisAssembly
{
public const string Version = "System.Xml";
}
}
// Types within this namespace are taken from referencesource
namespace System.Xml.Serialization
{
//------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//------------------------------------------------------------------------------
// from Models.cs
internal enum SpecifiedAccessor {
None,
ReadOnly,
ReadWrite,
}
// from Types.cs
internal class TypeScope
{
static internal XmlQualifiedName ParseWsdlArrayType(string type, out string dims, XmlSchemaObject parent) {
string ns;
string name;
int nsLen = type.LastIndexOf(':');
if (nsLen <= 0) {
ns = "";
}
else {
ns = type.Substring(0, nsLen);
}
int nameLen = type.IndexOf('[', nsLen + 1);
if (nameLen <= nsLen) {
throw new InvalidOperationException(Res.GetString(Res.XmlInvalidArrayTypeSyntax, type));
}
name = type.Substring(nsLen + 1, nameLen - nsLen - 1);
dims = type.Substring(nameLen);
// parent is not null only in the case when we used XmlSchema.Read(),
// in which case we need to fixup the wsdl:arayType attribute value
while (parent != null) {
if (parent.Namespaces != null) {
string wsdlNs = (string)parent.Namespaces.Namespaces[ns];
if (wsdlNs != null) {
ns = wsdlNs;
break;
}
}
parent = parent.Parent;
}
return new XmlQualifiedName(name, ns);
}
}
internal class Wsdl {
private Wsdl() { }
internal const string Namespace = "http://schemas.xmlsoap.org/wsdl/";
internal const string ArrayType = "arrayType";
}
}
namespace System.Security.Policy
{
static class EvidenceExtensions
{
public static void AddHostEvidence (this Evidence evidence, Url url)
{
throw new NotImplementedException ();
}
public static void AddHostEvidence (this Evidence evidence, Zone zone)
{
throw new NotImplementedException ();
}
public static void AddHostEvidence (this Evidence evidence, Site site)
{
throw new NotImplementedException ();
}
public static void AddHostEvidence (this Evidence evidence, EvidenceBase e)
{
throw new NotImplementedException ();
}
}
}
+7 -27
View File
@@ -13,11 +13,16 @@ ifdef USE_BOOT_COMPILE
LIBRARY_COMPILE = $(BOOT_COMPILE)
endif
# FIXME: use below, once mcs got fixed.
#RESOURCE_STRINGS = ../../../external/referencesource/System.Xml/System.Xml.txt
# ../../../external/referencesource/System.Data.SqlXml/System.Xml.Utils.txt
PROFILE_ANY_MOBILE := $(filter monotouch monotouch_runtime monodroid xammac mobile mobile_static, $(PROFILE))
LIB_MCS_FLAGS = -r:$(corlib) -r:System.dll -nowarn:0618,0612,0642
LIB_MCS_FLAGS = -r:$(corlib) -r:System.dll -nowarn:0618,0612,0642 -unsafe -d:ASYNC -d:DISABLE_CAS_USE -d:MONO_HYBRID_SYSTEM_XML
ifeq (2.1, $(FRAMEWORK_VERSION))
LIB_MCS_FLAGS += -unsafe -d:AGCLR -d:NET_2_1_HACK
LIB_MCS_FLAGS += -unsafe -d:AGCLR -d:NET_2_1_HACK -d:DISABLE_XSLT_COMPILER -d:DISABLE_XSLT_SCRIPT
endif
TEST_MCS_FLAGS = $(LIB_MCS_FLAGS) -nowarn:0618 -nowarn:219 -nowarn:169 -r:System.Data.dll -r:System.Core.dll
@@ -65,31 +70,6 @@ EXTRA_DISTFILES = \
$(xmlfiles_files:%=Test/XmlFiles/%) \
$(nist_dom_files:%=Test/System.Xml/nist_dom/%)
System.Xml.XPath/$(PROFILE)_Parser.cs: System.Xml.XPath/Parser.jay $(topdir)/jay/skeleton.cs
(cd System.Xml.XPath; $(topdir)/../jay/jay -ct < $(topdir)/../jay/skeleton.cs Parser.jay > $(PROFILE)_Parser.cs)
Mono.Xml.Xsl/$(PROFILE)_PatternParser.jay: System.Xml.XPath/Parser.jay $(topdir)/jay/skeleton.cs
sed "s/\%start Expr/\%start Pattern/" $< >$@
Mono.Xml.Xsl/$(PROFILE)_PatternParser.cs: Mono.Xml.Xsl/$(PROFILE)_PatternParser.jay $(topdir)/jay/skeleton.cs
echo "#define XSLT_PATTERN" > $@
(cd Mono.Xml.Xsl; $(topdir)/../jay/jay -ct $(PROFILE)_PatternParser.jay < $(topdir)/../jay/skeleton.cs >> $(PROFILE)_PatternParser.cs)
Mono.Xml.Xsl/$(PROFILE)_PatternTokenizer.cs: System.Xml.XPath/Tokenizer.cs
echo "#define XSLT_PATTERN" > $@
cat $< >>$@
ifneq (moonlight_raw, $(PROFILE))
BUILT_SOURCES = System.Xml.XPath/$(PROFILE)_Parser.cs \
Mono.Xml.Xsl/$(PROFILE)_PatternParser.cs \
Mono.Xml.Xsl/$(PROFILE)_PatternTokenizer.cs
CLEAN_FILES = Test/XmlFiles/xsl/result.xml \
System.Xml.XPath/$(PROFILE)_Parser.cs \
Mono.Xml.Xsl/$(PROFILE)_PatternParser.cs \
Mono.Xml.Xsl/$(PROFILE)_PatternTokenizer.cs
endif
include ../../build/library.make
ifeq (bare/,$(intermediate))
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
@@ -3,7 +3,7 @@
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>9.0.30729</ProductVersion>
<ProductVersion>8.0.30703</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{5CFB4B4E-2DD9-4033-ADEC-D6E26A357B78}</ProjectGuid>
<OutputType>Library</OutputType>
@@ -11,10 +11,7 @@
<OutputPath>bin\Debug\System.Xml-tests-net_4_5</OutputPath>
<NoStdLib>True</NoStdLib>
<NoConfig>False</NoConfig>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>
</RootNamespace>
<AssemblyName>System.Xml_test_net_4_5</AssemblyName>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
@@ -22,19 +19,21 @@
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<NoWarn>1699,618,612,642,618,219,169</NoWarn>
<Optimize>false</Optimize>
<DefineConstants>DEBUG;TRACE;NET_1_1;NET_2_0;NET_3_0;NET_3_5;NET_4_0;NET_4_5</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<NoStdLib>false</NoStdLib>
<OutputPath>.</OutputPath>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<NoWarn>1699,618,612,642,618,219,169</NoWarn>
<Optimize>true</Optimize>
<DefineConstants>NET_1_1;NET_2_0;NET_3_0;NET_3_5;NET_4_0;NET_4_5</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<NoStdLib>false</NoStdLib>
<OutputPath>.</OutputPath>
</PropertyGroup>
<!-- Set AddAdditionalExplicitAssemblyReferences to false, otherwise if targetting .NET4.0,
Microsoft.NETFramework.props will force a dependency on the assembly System.Core. This
@@ -158,9 +157,7 @@
<Compile Include="Test\System.Xml\XmlWriterTests.cs" />
<Compile Include="Test\System.Xml\XsdParticleValidationTests.cs" />
<Compile Include="Test\System.Xml\XsdValidatingReaderTests.cs" />
<Compile Include="Mono.Xml.Xsl\PatternParser.cs" />
<Compile Include="Mono.Xml.Xsl\PatternTokenizer.cs" />
<Compile Include="System.Xml.XPath\Parser.cs" />␍ </ItemGroup>
</ItemGroup>
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
@@ -168,48 +165,21 @@
<Target Name="AfterBuild">
</Target>
-->
<PropertyGroup>
<PreBuildEvent>
$(ProjectDir)\..\..\..\mono\msvc\scripts\prepare.exe $(ProjectDir)..\.. xml
$(ProjectDir)\..\..\jay\jay.exe -ct &lt; $(ProjectDir)\..\..\jay\skeleton.cs $(ProjectDir)\System.Xml.XPath\Parser.jay > $(ProjectDir)\System.Xml.XPath\Parser.cs
echo #define XSLT_PATTERN > $(ProjectDir)\Mono.Xml.Xsl\PatternParser.cs
$(ProjectDir)\..\..\jay\jay.exe -ct &lt; $(ProjectDir)\..\..\jay\skeleton.cs $(ProjectDir)\Mono.Xml.Xsl\PatternParser.jay >> $(ProjectDir)\Mono.Xml.Xsl\PatternParser.cs
echo #define XSLT_PATTERN > $(ProjectDir)\Mono.Xml.Xsl\PatternTokenizer.cs
type $(ProjectDir)\System.Xml.XPath\Tokenizer.cs >> $(ProjectDir)\Mono.Xml.Xsl\PatternTokenizer.cs
␍
</PreBuildEvent>
<PostBuildEvent Condition=" '$(OS)' != 'Windows_NT' ">
</PostBuildEvent>
<PostBuildEvent Condition=" '$(OS)' == 'Windows_NT' ">
</PostBuildEvent>
</PropertyGroup>
<ItemGroup>
<Reference Include="..\lib\net_4_5\nunit.framework.dll" />
<ProjectReference Include="..\corlib\corlib-net_4_5.csproj">
<Project>{33BF0182-AC5C-464C-995B-C9CFE74E1A95}</Project>
<Name>corlib\corlib-net_4_5</Name>
</ProjectReference>
<ProjectReference Include="..\System.XML\System.Xml-net_4_5-1.csproj">
<Project>{2534ADE0-05E4-490F-933D-1E39310A0CB9}</Project>
<Name>System.XML\System.Xml-net_4_5-1</Name>
</ProjectReference>
<ProjectReference Include="..\System\System-net_4_5-2.csproj">
<Project>{5C605B73-19DA-4FB7-AB39-C7EF9A8B19FE}</Project>
<Name>System\System-net_4_5-2</Name>
</ProjectReference>
<ProjectReference Include="..\System.Data\System.Data-net_4_0.csproj">
<Project>{0ADBE502-5524-4312-81B0-8456328C367C}</Project>
<Name>System.Data\System.Data-net_4_0</Name>
</ProjectReference>
<ProjectReference Include="..\System.Core\System.Core-net_4_5.csproj">
<Project>{D92530F4-3F2B-4351-BD21-9D6BEE6D2A4E}</Project>
<Name>System.Core\System.Core-net_4_5</Name>
</ProjectReference>
<Reference Include="System" />
<Reference Include="System.Data" />
<Reference Include="System.Core" />
<Reference Include="nunit.framework">
<HintPath>..\lib\net_4_5\nunit.framework.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
<Folder Include="Properties\" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="System.Xml-net_4_5.csproj">
<Project>{2951DEC2-4393-4A78-83F9-42EB39CB708F}</Project>
<Name>System.Xml-net_4_5</Name>
</ProjectReference>
</ItemGroup>
</Project>
File diff suppressed because it is too large. Load diff
@@ -443,6 +443,8 @@ namespace System.Xml.Serialization
XmlQualifiedName qname;
XmlSchemaType stype;
if (!schemas.IsCompiled)
schemas.Compile (null, true);
XmlSchemaElement elem = (XmlSchemaElement) schemas.Find (name, typeof (XmlSchemaElement));
if (!LocateElement (elem, out qname, out stype))
throw new InvalidOperationException (String.Format ("'{0}' is missing.", name));
@@ -504,7 +506,7 @@ namespace System.Xml.Serialization
stype = elem.SchemaType;
qname = elem.QualifiedName;
}
else if (elem.ElementType == XmlSchemaComplexType.AnyType)
else if (elem.ElementSchemaType == XmlSchemaComplexType.AnyType)
{
qname = anyType;
return true;
@@ -729,7 +731,7 @@ namespace System.Xml.Serialization
if (refAttr.DefaultValue != null)
member.DefaultValue = ImportDefaultValue (member.TypeData, refAttr.DefaultValue);
else if (member.TypeData.IsValueType)
member.IsOptionalValueType = (refAttr.ValidatedUse != XmlSchemaUse.Required);
member.IsOptionalValueType = (refAttr.Use != XmlSchemaUse.Required);
if (member.TypeData.IsComplexType)
member.MappedType = GetTypeMapping (member.TypeData);
@@ -1690,7 +1692,7 @@ namespace System.Xml.Serialization
}
else
{
ns = attr.ParentIsSchema ? typeQName.Namespace : String.Empty;
ns = attr.Parent is XmlSchema ? typeQName.Namespace : String.Empty;
return attr;
}
}
@@ -797,7 +797,7 @@ namespace System.Xml.Serialization
if (wrapped)
reader.ReadStartElement ();
reader.MoveToContent ();
XmlDocument doc = new XmlDocument ();
XmlDocument doc = new XmlDocument (reader.NameTable);
XmlNode node = doc.ReadNode (reader);
doc.AppendChild (node);
@@ -493,10 +493,9 @@ namespace System.Xml.Serialization
{
if (xmlns == null)
return;
ICollection namespaces = xmlns.Namespaces.Values;
foreach (XmlQualifiedName qn in namespaces) {
if (qn.Namespace != String.Empty && Writer.LookupPrefix (qn.Namespace) != qn.Name)
WriteAttribute ("xmlns", qn.Name, xmlNamespace, qn.Namespace);
foreach (DictionaryEntry qn in xmlns.Namespaces) {
if ((string) qn.Value != String.Empty && Writer.LookupPrefix ((string) qn.Value) != (string) qn.Key)
WriteAttribute ("xmlns", (string) qn.Key, xmlNamespace, (string) qn.Value);
}
}
@@ -762,6 +762,8 @@ namespace System.Xml.Serialization
cp.ReferencedAssemblies.Add ("System.Xml");
if (!cp.ReferencedAssemblies.Contains ("System.Data"))
cp.ReferencedAssemblies.Add ("System.Data");
if (!cp.ReferencedAssemblies.Contains ("System.Web.Services"))
cp.ReferencedAssemblies.Add ("System.Web.Services");
CompilerResults res = comp.CompileAssemblyFromFile (cp, file);
if (res.Errors.HasErrors || res.CompiledAssembly == null) {
@@ -0,0 +1,218 @@
namespace System.Xml.Utils {
static partial class Res {
public const string Xml_UserException = @"{0}";
public const string Xml_ErrorFilePosition = @"An error occurred at {0}({1},{2}).";
public const string Xml_InvalidOperation = @"Operation is not valid due to the current state of the object.";
public const string Xml_EndOfInnerExceptionStack = @"--- End of inner exception stack trace ---";
public const string XPath_UnclosedString = @"String literal was not closed.";
public const string XPath_ScientificNotation = @"Scientific notation is not allowed.";
public const string XPath_UnexpectedToken = @"Unexpected token '{0}' in the expression.";
public const string XPath_NodeTestExpected = @"Expected a node test, found '{0}'.";
public const string XPath_EofExpected = @"Expected end of the expression, found '{0}'.";
public const string XPath_TokenExpected = @"Expected token '{0}', found '{1}'.";
public const string XPath_InvalidAxisInPattern = @"Only 'child' and 'attribute' axes are allowed in a pattern outside predicates.";
public const string XPath_PredicateAfterDot = @"Abbreviated step '.' cannot be followed by a predicate. Use the full form 'self::node()[predicate]' instead.";
public const string XPath_PredicateAfterDotDot = @"Abbreviated step '..' cannot be followed by a predicate. Use the full form 'parent::node()[predicate]' instead.";
public const string XPath_NArgsExpected = @"Function '{0}()' must have {1} argument(s).";
public const string XPath_NOrMArgsExpected = @"Function '{0}()' must have {1} or {2} argument(s).";
public const string XPath_AtLeastNArgsExpected = @"Function '{0}()' must have at least {1} argument(s).";
public const string XPath_AtMostMArgsExpected = @"Function '{0}()' must have no more than {2} arguments.";
public const string XPath_NodeSetArgumentExpected = @"Argument {1} of function '{0}()' cannot be converted to a node-set.";
public const string XPath_NodeSetExpected = @"Expression must evaluate to a node-set.";
public const string XPath_RtfInPathExpr = @"To use a result tree fragment in a path expression, first convert it to a node-set using the msxsl:node-set() function.";
public const string Xslt_WarningAsError = @"Warning as Error: {0}";
public const string Xslt_InputTooComplex = @"The stylesheet is too complex.";
public const string Xslt_CannotLoadStylesheet = @"Cannot load the stylesheet object referenced by URI '{0}', because the provided XmlResolver returned an object of type '{1}'. One of Stream, XmlReader, and IXPathNavigable types was expected.";
public const string Xslt_WrongStylesheetElement = @"Stylesheet must start either with an 'xsl:stylesheet' or an 'xsl:transform' element, or with a literal result element that has an 'xsl:version' attribute, where prefix 'xsl' denotes the 'http://www.w3.org/1999/XSL/Transform' namespace.";
public const string Xslt_WdXslNamespace = @"The 'http://www.w3.org/TR/WD-xsl' namespace is no longer supported.";
public const string Xslt_NotAtTop = @"'{0}' element children must precede all other children of the '{1}' element.";
public const string Xslt_UnexpectedElement = @"'{0}' cannot be a child of the '{1}' element.";
public const string Xslt_NullNsAtTopLevel = @"Top-level element '{0}' may not have a null namespace URI.";
public const string Xslt_TextNodesNotAllowed = @"'{0}' element cannot have text node children.";
public const string Xslt_NotEmptyContents = @"The contents of '{0}' must be empty.";
public const string Xslt_InvalidAttribute = @"'{0}' is an invalid attribute for the '{1}' element.";
public const string Xslt_MissingAttribute = @"Missing mandatory attribute '{0}'.";
public const string Xslt_InvalidAttrValue = @"'{1}' is an invalid value for the '{0}' attribute.";
public const string Xslt_BistateAttribute = @"The value of the '{0}' attribute must be '{1}' or '{2}'.";
public const string Xslt_CharAttribute = @"The value of the '{0}' attribute must be a single character.";
public const string Xslt_CircularInclude = @"Stylesheet '{0}' cannot directly or indirectly include or import itself.";
public const string Xslt_SingleRightBraceInAvt = @"The right curly brace in an attribute value template '{0}' outside an expression must be doubled.";
public const string Xslt_VariableCntSel2 = @"The variable or parameter '{0}' cannot have both a 'select' attribute and non-empty content.";
public const string Xslt_KeyCntUse = @"'xsl:key' has a 'use' attribute and has non-empty content, or it has empty content and no 'use' attribute.";
public const string Xslt_DupTemplateName = @"'{0}' is a duplicate template name.";
public const string Xslt_BothMatchNameAbsent = @"'xsl:template' must have either a 'match' attribute or a 'name' attribute, or both.";
public const string Xslt_InvalidVariable = @"The variable or parameter '{0}' is either not defined or it is out of scope.";
public const string Xslt_DupGlobalVariable = @"The variable or parameter '{0}' was duplicated with the same import precedence.";
public const string Xslt_DupLocalVariable = @"The variable or parameter '{0}' was duplicated within the same scope.";
public const string Xslt_DupNsAlias = @"Namespace URI '{0}' is declared to be an alias for multiple different namespace URIs with the same import precedence.";
public const string Xslt_EmptyAttrValue = @"The value of the '{0}' attribute cannot be empty.";
public const string Xslt_EmptyNsAlias = @"The value of the '{0}' attribute cannot be empty. Use '#default' to specify the default namespace.";
public const string Xslt_UnknownXsltFunction = @"'{0}()' is an unknown XSLT function.";
public const string Xslt_UnsupportedXsltFunction = @"'{0}()' is an unsupported XSLT function.";
public const string Xslt_NoAttributeSet = @"A reference to attribute set '{0}' cannot be resolved. An 'xsl:attribute-set' of this name must be declared at the top level of the stylesheet.";
public const string Xslt_UndefinedKey = @"A reference to key '{0}' cannot be resolved. An 'xsl:key' of this name must be declared at the top level of the stylesheet.";
public const string Xslt_CircularAttributeSet = @"Circular reference in the definition of attribute set '{0}'.";
public const string Xslt_InvalidCallTemplate = @"The named template '{0}' does not exist.";
public const string Xslt_InvalidPrefix = @"Prefix '{0}' is not defined.";
public const string Xslt_ScriptXsltNamespace = @"Script block cannot implement the XSLT namespace.";
public const string Xslt_ScriptInvalidLanguage = @"Scripting language '{0}' is not supported.";
public const string Xslt_ScriptMixedLanguages = @"All script blocks implementing the namespace '{0}' must use the same language.";
public const string Xslt_ScriptCompileException = @"Error occurred while compiling the script: {0}";
public const string Xslt_ScriptNotAtTop = @"Element '{0}' must precede script code.";
public const string Xslt_AssemblyNameHref = @"'msxsl:assembly' must have either a 'name' attribute or an 'href' attribute, but not both.";
public const string Xslt_ScriptAndExtensionClash = @"Cannot have both an extension object and a script implementing the same namespace '{0}'.";
public const string Xslt_NoDecimalFormat = @"Decimal format '{0}' is not defined.";
public const string Xslt_DecimalFormatSignsNotDistinct = @"The '{0}' and '{1}' attributes of 'xsl:decimal-format' must have distinct values.";
public const string Xslt_DecimalFormatRedefined = @"The '{0}' attribute of 'xsl:decimal-format' cannot be redefined with a value of '{1}'.";
public const string Xslt_UnknownExtensionElement = @"'{0}' is not a recognized extension element.";
public const string Xslt_ModeWithoutMatch = @"An 'xsl:template' element without a 'match' attribute cannot have a 'mode' attribute.";
public const string Xslt_ModeListEmpty = @"List of modes in 'xsl:template' element can't be empty. ";
public const string Xslt_ModeListDup = @"List of modes in 'xsl:template' element can't contain duplicates ('{0}'). ";
public const string Xslt_ModeListAll = @"List of modes in 'xsl:template' element can't contain token '#all' together with any other value. ";
public const string Xslt_PriorityWithoutMatch = @"An 'xsl:template' element without a 'match' attribute cannot have a 'priority' attribute.";
public const string Xslt_InvalidApplyImports = @"An 'xsl:apply-imports' element can only occur within an 'xsl:template' element with a 'match' attribute, and cannot occur within an 'xsl:for-each' element.";
public const string Xslt_DuplicateWithParam = @"Value of parameter '{0}' cannot be specified more than once within a single 'xsl:call-template' or 'xsl:apply-templates' element.";
public const string Xslt_ReservedNS = @"Elements and attributes cannot belong to the reserved namespace '{0}'.";
public const string Xslt_XmlnsAttr = @"An attribute with a local name 'xmlns' and a null namespace URI cannot be created.";
public const string Xslt_NoWhen = @"An 'xsl:choose' element must have at least one 'xsl:when' child.";
public const string Xslt_WhenAfterOtherwise = @"'xsl:when' must precede the 'xsl:otherwise' element.";
public const string Xslt_DupOtherwise = @"An 'xsl:choose' element can have only one 'xsl:otherwise' child.";
public const string Xslt_AttributeRedefinition = @"Attribute '{0}' of 'xsl:output' cannot be defined more than once with the same import precedence.";
public const string Xslt_InvalidMethod = @"'{0}' is not a supported output method. Supported methods are 'xml', 'html', and 'text'.";
public const string Xslt_InvalidEncoding = @"'{0}' is not a supported encoding name.";
public const string Xslt_InvalidLanguage = @"'{0}' is not a supported language identifier.";
public const string Xslt_InvalidCompareOption = @"String comparison option(s) '{0}' are either invalid or cannot be used together.";
public const string Xslt_KeyNotAllowed = @"The 'key()' function cannot be used in 'use' and 'match' attributes of 'xsl:key' element.";
public const string Xslt_VariablesNotAllowed = @"Variables cannot be used within this expression.";
public const string Xslt_CurrentNotAllowed = @"The 'current()' function cannot be used in a pattern.";
public const string Xslt_DocumentFuncProhibited = @"Execution of the 'document()' function was prohibited. Use the XsltSettings.EnableDocumentFunction property to enable it.";
public const string Xslt_ScriptsProhibited = @"Execution of scripts was prohibited. Use the XsltSettings.EnableScript property to enable it.";
public const string Xslt_ItemNull = @"Extension functions cannot return null values.";
public const string Xslt_NodeSetNotNode = @"Cannot convert a node-set which contains zero nodes or more than one node to a single node.";
public const string Xslt_UnsupportedClrType = @"Extension function parameters or return values which have Clr type '{0}' are not supported.";
public const string Xslt_NotYetImplemented = @"'{0}' is not yet implemented.";
public const string Xslt_SchemaDeclaration = @"'{0}' declaration is not permitted in non-schema aware processor.";
public const string Xslt_SchemaAttribute = @"Attribute '{0}' is not permitted in basic XSLT processor (http://www.w3.org/TR/xslt20/#dt-basic-xslt-processor).";
public const string Xslt_SchemaAttributeValue = @"Value '{1}' of attribute '{0}' is not permitted in basic XSLT processor (http://www.w3.org/TR/xslt20/#dt-basic-xslt-processor).";
public const string Xslt_ElementCntSel = @"The element '{0}' cannot have both a 'select' attribute and non-empty content.";
public const string Xslt_PerformSortCntSel = @"The element 'xsl:perform-sort' cannot have 'select' attribute any content other than 'xsl:sort' and 'xsl:fallback' instructions.";
public const string Xslt_RequiredAndSelect = @"Mandatory parameter '{0}' must be empty and must not have a 'select' attribute.";
public const string Xslt_NoSelectNoContent = @"Element '{0}' must have either 'select' attribute or non-empty content.";
public const string Xslt_NonTemplateTunnel = @"Stylesheet or function parameter '{0}' cannot have attribute 'tunnel'.";
public const string Xslt_RequiredOnFunction = @"The 'required' attribute must not be specified for parameter '{0}'. Function parameters are always mandatory. ";
public const string Xslt_ExcludeDefault = @"Value '#default' is used within the 'exclude-result-prefixes' attribute and the parent element of this attribute has no default namespace.";
public const string Xslt_CollationSyntax = @"The value of an 'default-collation' attribute contains no recognized collation URI.";
public const string Xslt_AnalyzeStringDupChild = @"'xsl:analyze-string' cannot have second child with name '{0}'.";
public const string Xslt_AnalyzeStringChildOrder = @"When both 'xsl:matching-string' and 'xsl:non-matching-string' elements are present, 'xsl:matching-string' element must come first.";
public const string Xslt_AnalyzeStringEmpty = @"'xsl:analyze-string' must contain either 'xsl:matching-string' or 'xsl:non-matching-string' elements or both.";
public const string Xslt_SortStable = @"Only the first 'xsl:sort' element may have 'stable' attribute.";
public const string Xslt_InputTypeAnnotations = @"It is an error if there is a stylesheet module in the stylesheet that specifies 'input-type-annotations'=""strip"" and another stylesheet module that specifies 'input-type-annotations'=""preserve"".";
public const string Coll_BadOptFormat = @"Collation option '{0}' is invalid. Options must have the following format: <option-name>=<option-value>.";
public const string Coll_Unsupported = @"The collation '{0}' is not supported.";
public const string Coll_UnsupportedLanguage = @"Collation language '{0}' is not supported.";
public const string Coll_UnsupportedOpt = @"Unsupported option '{0}' in collation.";
public const string Coll_UnsupportedOptVal = @"Collation option '{0}' cannot have the value '{1}'.";
public const string Coll_UnsupportedSortOpt = @"Unsupported sort option '{0}' in collation.";
public const string Qil_Validation = @"QIL Validation Error! '{0}'.";
public const string XmlIl_TooManyParameters = @"Functions may not have more than 65535 parameters.";
public const string XmlIl_BadXmlState = @"An item of type '{0}' cannot be constructed within a node of type '{1}'.";
public const string XmlIl_BadXmlStateAttr = @"Attribute and namespace nodes cannot be added to the parent element after a text, comment, pi, or sub-element node has already been added.";
public const string XmlIl_NmspAfterAttr = @"Namespace nodes cannot be added to the parent element after an attribute node has already been added.";
public const string XmlIl_NmspConflict = @"Cannot construct namespace declaration xmlns{0}{1}='{2}'. Prefix '{1}' is already mapped to namespace '{3}'.";
public const string XmlIl_CantResolveEntity = @"Cannot query the data source object referenced by URI '{0}', because the provided XmlResolver returned an object of type '{1}'. Only Stream, XmlReader, and IXPathNavigable data source objects are currently supported.";
public const string XmlIl_NoDefaultDocument = @"Query requires a default data source, but no default was supplied to the query engine.";
public const string XmlIl_UnknownDocument = @"Data source '{0}' cannot be located.";
public const string XmlIl_UnknownParam = @"Supplied XsltArgumentList does not contain a parameter with local name '{0}' and namespace '{1}'.";
public const string XmlIl_UnknownExtObj = @"Cannot find a script or an extension object associated with namespace '{0}'.";
public const string XmlIl_CantStripNav = @"White space cannot be stripped from input documents that have already been loaded. Provide the input document as an XmlReader instead.";
public const string XmlIl_ExtensionError = @"An error occurred during a call to extension function '{0}'. See InnerException for a complete description of the error.";
public const string XmlIl_TopLevelAttrNmsp = @"XmlWriter cannot process the sequence returned by the query, because it contains an attribute or namespace node.";
public const string XmlIl_NoExtensionMethod = @"Extension object '{0}' does not contain a matching '{1}' method that has {2} parameter(s).";
public const string XmlIl_AmbiguousExtensionMethod = @"Ambiguous method call. Extension object '{0}' contains multiple '{1}' methods that have {2} parameter(s).";
public const string XmlIl_NonPublicExtensionMethod = @"Method '{1}' of extension object '{0}' cannot be called because it is not public.";
public const string XmlIl_GenericExtensionMethod = @"Method '{1}' of extension object '{0}' cannot be called because it is generic.";
public const string XmlIl_ByRefType = @"Method '{1}' of extension object '{0}' cannot be called because it has one or more ByRef parameters.";
public const string XmlIl_DocumentLoadError = @"An error occurred while loading document '{0}'. See InnerException for a complete description of the error.";
public const string Xslt_CompileError = @"XSLT compile error at {0}({1},{2}). See InnerException for details.";
public const string Xslt_CompileError2 = @"XSLT compile error.";
public const string Xslt_UnsuppFunction = @"'{0}()' is an unsupported XSLT function.";
public const string Xslt_NotFirstImport = @"'xsl:import' instructions must precede all other element children of an 'xsl:stylesheet' element.";
public const string Xslt_UnexpectedKeyword = @"'{0}' cannot be a child of the '{1}' element.";
public const string Xslt_InvalidContents = @"The contents of '{0}' are invalid.";
public const string Xslt_CantResolve = @"Cannot resolve the referenced document '{0}'.";
public const string Xslt_SingleRightAvt = @"Right curly brace in the attribute value template '{0}' must be doubled.";
public const string Xslt_OpenBracesAvt = @"The braces are not closed in AVT expression '{0}'.";
public const string Xslt_OpenLiteralAvt = @"The literal in AVT expression is not correctly closed '{0}'.";
public const string Xslt_NestedAvt = @"AVT cannot be nested in AVT '{0}'.";
public const string Xslt_EmptyAvtExpr = @"XPath Expression in AVT cannot be empty: '{0}'.";
public const string Xslt_InvalidXPath = @"'{0}' is an invalid XPath expression.";
public const string Xslt_InvalidQName = @"'{0}' is an invalid QName.";
public const string Xslt_NoStylesheetLoaded = @"No stylesheet was loaded.";
public const string Xslt_TemplateNoAttrib = @"The 'xsl:template' instruction must have the 'match' and/or 'name' attribute present.";
public const string Xslt_DupVarName = @"Variable or parameter '{0}' was duplicated within the same scope.";
public const string Xslt_WrongNumberArgs = @"XSLT function '{0}()' has the wrong number of arguments.";
public const string Xslt_NoNodeSetConversion = @"Cannot convert the operand to a node-set.";
public const string Xslt_NoNavigatorConversion = @"Cannot convert the operand to 'Result tree fragment'.";
public const string Xslt_FunctionFailed = @"Function '{0}()' has failed.";
public const string Xslt_InvalidFormat = @"Format cannot be empty.";
public const string Xslt_InvalidFormat1 = @"Format '{0}' cannot have digit symbol after zero digit symbol before a decimal point.";
public const string Xslt_InvalidFormat2 = @"Format '{0}' cannot have zero digit symbol after digit symbol after decimal point.";
public const string Xslt_InvalidFormat3 = @"Format '{0}' has two pattern separators.";
public const string Xslt_InvalidFormat4 = @"Format '{0}' cannot end with a pattern separator.";
public const string Xslt_InvalidFormat5 = @"Format '{0}' cannot have two decimal separators.";
public const string Xslt_InvalidFormat8 = @"Format string should have at least one digit or zero digit.";
public const string Xslt_ScriptCompileErrors = @"Script compile errors:\n{0}";
public const string Xslt_ScriptInvalidPrefix = @"Cannot find the script or external object that implements prefix '{0}'.";
public const string Xslt_ScriptDub = @"Namespace '{0}' has a duplicate implementation.";
public const string Xslt_ScriptEmpty = @"The 'msxsl:script' element cannot be empty.";
public const string Xslt_DupDecimalFormat = @"Decimal format '{0}' has a duplicate declaration.";
public const string Xslt_CircularReference = @"Circular reference in the definition of variable '{0}'.";
public const string Xslt_InvalidExtensionNamespace = @"Extension namespace cannot be 'null' or an XSLT namespace URI.";
public const string Xslt_InvalidModeAttribute = @"An 'xsl:template' element without a 'match' attribute cannot have a 'mode' attribute.";
public const string Xslt_MultipleRoots = @"There are multiple root elements in the output XML.";
public const string Xslt_ApplyImports = @"The 'xsl:apply-imports' instruction cannot be included within the content of an 'xsl:for-each' instruction or within an 'xsl:template' instruction without the 'match' attribute.";
public const string Xslt_Terminate = @"Transform terminated: '{0}'.";
public const string Xslt_InvalidPattern = @"'{0}' is an invalid XSLT pattern.";
public const string Xslt_EmptyTagRequired = @"The tag '{0}' must be empty.";
public const string Xslt_WrongNamespace = @"The wrong namespace was used for XSL. Use 'http://www.w3.org/1999/XSL/Transform'.";
public const string Xslt_InvalidFormat6 = @"Format '{0}' has both '*' and '_' which is invalid. ";
public const string Xslt_InvalidFormat7 = @"Format '{0}' has '{1}' which is invalid.";
public const string Xslt_ScriptMixLang = @"Multiple scripting languages for the same namespace is not supported.";
public const string Xslt_ScriptInvalidLang = @"The scripting language '{0}' is not supported.";
public const string Xslt_InvalidExtensionPermitions = @"Extension object should not have wider permissions than the caller of the AddExtensionObject(). If wider permissions are needed, wrap the extension object. ";
public const string Xslt_InvalidParamNamespace = @"Parameter cannot belong to XSLT namespace.";
public const string Xslt_DuplicateParametr = @"Duplicate parameter: '{0}'.";
public const string Xslt_VariableCntSel = @"The '{0}' variable has both a select attribute of '{1}' and non-empty contents.";
}
}
@@ -0,0 +1,224 @@
// XslCompiledTransform_Mobile.cs
//
// Author:
// Atsushi Enomoto <[email protected]>
//
// Copyright (C) 2015 Xamarin Inc. http://www.xamarin.com
//
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
using System;
using System.CodeDom.Compiler;
using System.Collections;
using System.IO;
using System.Text;
using System.Runtime.InteropServices;
using System.Security;
using System.Security.Policy;
using System.Xml.XPath;
namespace System.Xml.Xsl
{
public sealed class XslCompiledTransform
{
readonly bool enable_debug;
object debugger;
XmlWriterSettings output_settings = new XmlWriterSettings ();
XslTransform impl = new XslTransform ();
public XslCompiledTransform ()
: this (false)
{
}
public XslCompiledTransform (bool enableDebug)
{
enable_debug = enableDebug;
if (enable_debug)
debugger = new NoOperationDebugger ();
output_settings.ConformanceLevel = ConformanceLevel.Fragment;
}
[MonoTODO]
public XmlWriterSettings OutputSettings {
get { return output_settings; }
}
#region Transform
public void Transform (string inputUri, string resultsFile)
{
using (Stream outStream = File.Create (resultsFile)) {
Transform (new XPathDocument (inputUri, XmlSpace.Preserve), null, outStream);
}
}
public void Transform (string inputUri, XmlWriter results)
{
Transform (inputUri, null, results);
}
public void Transform (string inputUri, XsltArgumentList arguments, Stream results)
{
Transform (new XPathDocument (inputUri, XmlSpace.Preserve), arguments, results);
}
public void Transform (string inputUri, XsltArgumentList arguments, TextWriter results)
{
Transform (new XPathDocument (inputUri, XmlSpace.Preserve), arguments, results);
}
public void Transform (string inputUri, XsltArgumentList arguments, XmlWriter results)
{
Transform (new XPathDocument (inputUri, XmlSpace.Preserve), arguments, results);
}
public void Transform (XmlReader input, XmlWriter results)
{
Transform (input, null, results);
}
public void Transform (XmlReader input, XsltArgumentList arguments, Stream results)
{
Transform (new XPathDocument (input, XmlSpace.Preserve), arguments, results);
}
public void Transform (XmlReader input, XsltArgumentList arguments, TextWriter results)
{
Transform (new XPathDocument (input, XmlSpace.Preserve), arguments, results);
}
public void Transform (XmlReader input, XsltArgumentList arguments, XmlWriter results)
{
Transform (input, arguments, results, null);
}
public void Transform (IXPathNavigable input, XsltArgumentList arguments, TextWriter results)
{
Transform (input.CreateNavigator (), arguments, results);
}
public void Transform (IXPathNavigable input, XsltArgumentList arguments, Stream results)
{
Transform (input.CreateNavigator (), arguments, results);
}
public void Transform (IXPathNavigable input, XmlWriter results)
{
Transform (input, null, results);
}
public void Transform (IXPathNavigable input, XsltArgumentList arguments, XmlWriter results)
{
Transform (input.CreateNavigator (), arguments, results, null);
}
public void Transform (XmlReader input, XsltArgumentList arguments, XmlWriter results, XmlResolver documentResolver)
{
Transform (new XPathDocument (input, XmlSpace.Preserve).CreateNavigator (), arguments, results, documentResolver);
}
void Transform (XPathNavigator input, XsltArgumentList args, XmlWriter output, XmlResolver resolver)
{
impl.Transform (input, args, output, resolver);
}
void Transform (XPathNavigator input, XsltArgumentList args, TextWriter output)
{
impl.Transform (input, args, output);
}
#endregion
#region Load
private XmlReader GetXmlReader (string url)
{
XmlResolver res = new XmlUrlResolver ();
Uri uri = res.ResolveUri (null, url);
Stream s = res.GetEntity (uri, null, typeof (Stream)) as Stream;
XmlTextReader xtr = new XmlTextReader (uri.ToString (), s);
xtr.XmlResolver = res;
XmlValidatingReader xvr = new XmlValidatingReader (xtr);
xvr.XmlResolver = res;
xvr.ValidationType = ValidationType.None;
return xvr;
}
public void Load (string stylesheetUri)
{
using (XmlReader r = GetXmlReader (stylesheetUri))
Load (r);
}
public void Load (XmlReader stylesheet)
{
Load (stylesheet, null, null);
}
public void Load (IXPathNavigable stylesheet)
{
Load (stylesheet.CreateNavigator(), null, null);
}
public void Load (IXPathNavigable stylesheet, XsltSettings settings, XmlResolver stylesheetResolver)
{
if (!settings.EnableDocumentFunction)
throw new NotSupportedException ("'document' function cannot be disabled on this framework because it just runs XslTransform which does not support XsltSettings");
if (settings.EnableScript)
throw new NotSupportedException ("'msxsl:script' element is not supported on this framework because it does not support run-time code generation");
impl.Load (stylesheet, stylesheetResolver);
}
public void Load (XmlReader stylesheet, XsltSettings settings, XmlResolver stylesheetResolver)
{
Load (new XPathDocument (stylesheet, XmlSpace.Preserve), settings, stylesheetResolver);
}
public void Load (string stylesheetUri, XsltSettings settings, XmlResolver stylesheetResolver)
{
Load (new XPathDocument (stylesheetUri, XmlSpace.Preserve).CreateNavigator (), settings, stylesheetResolver);
}
#endregion
}
class NoOperationDebugger
{
protected void OnCompile (XPathNavigator input)
{
}
protected void OnExecute (XPathNodeIterator currentNodeset, XPathNavigator style, XsltContext context)
{
//ShowLocationInTrace (style);
}
/*
string ShowLocationInTrace (XPathNavigator style)
{
IXmlLineInfo li = style as IXmlLineInfo;
return li != null ? String.Format ("at {0} ({1},{2})", style.BaseURI, li.LineNumber, li.LinePosition) : "(no debug info available)";
}
*/
}
}
+605 -308
View File
@@ -2,302 +2,611 @@ Assembly/AssemblyInfo.cs
../../build/common/Consts.cs
../../build/common/Locale.cs
../../build/common/MonoTODOAttribute.cs
Mono.Xml.Schema/XmlSchemaValidatingReader.cs
Mono.Xml.Schema/XsdIdentityPath.cs
Mono.Xml.Schema/XsdIdentityState.cs
Mono.Xml.Schema/XsdKeyTable.cs
Mono.Xml.Schema/XsdParticleValidationState.cs
Mono.Xml.Schema/XsdValidatingReader.cs
Mono.Xml.Schema/XsdWildcard.cs
Mono.Xml.XPath/DTMXPathDocument.cs
Mono.Xml.XPath/DTMXPathDocumentBuilder.cs
Mono.Xml.XPath/DTMXPathDocumentWriter.cs
Mono.Xml.XPath/DTMXPathNavigator.cs
Mono.Xml.XPath/DTMXPathNode.cs
Mono.Xml.XPath/DTMXPathDocument2.cs
Mono.Xml.XPath/DTMXPathDocumentBuilder2.cs
Mono.Xml.XPath/DTMXPathDocumentWriter2.cs
Mono.Xml.XPath/DTMXPathNavigator2.cs
Mono.Xml.XPath/DTMXPathNode2.cs
Mono.Xml.XPath/IdPattern.cs
Mono.Xml.XPath/KeyPattern.cs
Mono.Xml.XPath/LocationPathPattern.cs
Mono.Xml.XPath/Pattern.cs
Mono.Xml.XPath/UnionPattern.cs
Mono.Xml.XPath/XPathEditableDocument.cs
Mono.Xml.XPath/XPathNavigatorReader.cs
Mono.Xml.Xsl.Operations/XslApplyImports.cs
Mono.Xml.Xsl.Operations/XslApplyTemplates.cs
Mono.Xml.Xsl.Operations/XslAttribute.cs
Mono.Xml.Xsl.Operations/XslAvt.cs
Mono.Xml.Xsl.Operations/XslCallTemplate.cs
Mono.Xml.Xsl.Operations/XslChoose.cs
Mono.Xml.Xsl.Operations/XslComment.cs
Mono.Xml.Xsl.Operations/XslCompiledElement.cs
Mono.Xml.Xsl.Operations/XslCopy.cs
Mono.Xml.Xsl.Operations/XslCopyOf.cs
Mono.Xml.Xsl.Operations/XslElement.cs
Mono.Xml.Xsl.Operations/XslFallback.cs
Mono.Xml.Xsl.Operations/XslForEach.cs
Mono.Xml.Xsl.Operations/XslIf.cs
Mono.Xml.Xsl.Operations/XslLiteralElement.cs
Mono.Xml.Xsl.Operations/XslMessage.cs
Mono.Xml.Xsl.Operations/XslNotSupportedOperation.cs
Mono.Xml.Xsl.Operations/XslNumber.cs
Mono.Xml.Xsl.Operations/XslOperation.cs
Mono.Xml.Xsl.Operations/XslProcessingInstruction.cs
Mono.Xml.Xsl.Operations/XslTemplateContent.cs
Mono.Xml.Xsl.Operations/XslText.cs
Mono.Xml.Xsl.Operations/XslValueOf.cs
Mono.Xml.Xsl.Operations/XslVariable.cs
Mono.Xml.Xsl/Attribute.cs
Mono.Xml.Xsl/Compiler.cs
Mono.Xml.Xsl/Debug.cs
Mono.Xml.Xsl/Emitter.cs
Mono.Xml.Xsl/GenericOutputter.cs
Mono.Xml.Xsl/HtmlEmitter.cs
Mono.Xml.Xsl/MSXslScriptManager.cs
Mono.Xml.Xsl/Outputter.cs
Mono.Xml.Xsl/ScriptCompilerInfo.cs
Mono.Xml.Xsl/TextEmitter.cs
Mono.Xml.Xsl/TextOutputter.cs
Mono.Xml.Xsl/XmlWriterEmitter.cs
Mono.Xml.Xsl/XslAttributeSet.cs
Mono.Xml.Xsl/XslDecimalFormat.cs
Mono.Xml.Xsl/XslKey.cs
Mono.Xml.Xsl/XslOutput.cs
Mono.Xml.Xsl/XslSortEvaluator.cs
Mono.Xml.Xsl/XslStylesheet.cs
Mono.Xml.Xsl/XslTemplate.cs
Mono.Xml.Xsl/XslTransformProcessor.cs
Mono.Xml.Xsl/XsltCompiledContext.cs
Mono.Xml.Xsl/XsltDebuggerWrapper.cs
Mono.Xml.Xsl/XslFunctions.cs
Mono.Xml/IHasXmlParserContext.cs
Mono.Xml/IHasXmlSchemaInfo.cs
Mono.Xml/SubtreeXmlReader.cs
Mono.Xml/XmlFilterReader.cs
Mono.Xml/XmlNodeWriter.cs
System.Xml/ConformanceLevel.cs
System.Xml/DTDAutomata.cs
System.Xml/DTDObjectModel.cs
System.Xml/DTDReader.cs
System.Xml/DTDValidatingReader2.cs
System.Xml/DefaultXmlWriter.cs
System.Xml/EntityResolvingXmlReader.cs
System.Xml/EntityHandling.cs
System.Xml/Formatting.cs
System.Xml/IHasXmlNode.cs
System.Xml/IXmlLineInfo.cs
System.Xml/IHasXmlChildNode.cs
System.Xml/IXmlNamespaceResolver.cs
System.Xml/MonoFIXAttribute.cs
System.Xml/NameTable.cs
System.Xml/NamespaceHandling.cs
System.Xml/NewLineHandling.cs
System.Xml/ReadState.cs
System.Xml/ValidationType.cs
System.Xml/WhitespaceHandling.cs
System.Xml/WriteState.cs
System.Xml/XmlEntity.cs
System.Xml/XmlAttribute.cs
System.Xml/XmlAttributeCollection.cs
System.Xml/XmlCDataSection.cs
System.Xml/XmlConstructs.cs
System.Xml/XmlChar.cs
System.Xml/XmlCharacterData.cs
System.Xml/XmlComment.cs
System.Xml/XmlNotation.cs
System.Xml/XmlDeclaration.cs
System.Xml/XmlDocument.cs
System.Xml/XmlDocumentFragment.cs
System.Xml/XmlDocumentNavigator.cs
System.Xml/XmlDocumentType.cs
System.Xml/XmlElement.cs
System.Xml/XmlEntityReference.cs
System.Xml/XmlException.cs
System.Xml/XmlImplementation.cs
System.Xml/XmlConvert.cs
System.Xml/XmlDateTimeSerializationMode.cs
System.Xml/XmlLinkedNode.cs
System.Xml/XmlNameEntry.cs
System.Xml/XmlNameEntryCache.cs
System.Xml/XmlNameTable.cs
System.Xml/XmlNamedNodeMap.cs
System.Xml/XmlNamespaceScope.cs
System.Xml/XmlNamespaceManager.cs
System.Xml/XmlNode.cs
System.Xml/XmlNodeChangedAction.cs
System.Xml/XmlNodeChangedEventArgs.cs
System.Xml/XmlNodeChangedEventHandler.cs
System.Xml/XmlNodeList.cs
System.Xml/XmlNodeListChildren.cs
System.Xml/XmlNodeArrayList.cs
System.Xml/XmlIteratorNodeList.cs
System.Xml/XmlNodeOrder.cs
System.Xml/XmlNodeReader2.cs
System.Xml/XmlNodeReaderImpl.cs
System.Xml/XmlNodeType.cs
System.Xml/XmlOutputMethod.cs
System.Xml/XmlParserContext.cs
System.Xml/XmlProcessingInstruction.cs
System.Xml/XmlQualifiedName.cs
System.Xml/XmlReader.cs
System.Xml/XmlReaderBinarySupport.cs
System.Xml/XmlReaderSettings.cs
System.Xml/DtdProcessing.cs
System.Xml/XmlResolver.cs
System.Xml/XmlSecureResolver.cs
System.Xml/XmlSignificantWhitespace.cs
System.Xml/XmlSpace.cs
System.Xml/XmlText.cs
System.Xml/XmlTextReader.cs
System.Xml/XmlTextReader2.cs
System.Xml/XmlTokenizedType.cs
System.Xml/XmlUrlResolver.cs
System.Xml/XmlValidatingReader.cs
System.Xml/XmlWhitespace.cs
System.Xml/XmlWriter.cs
System.Xml/XmlWriterSettings.cs
System.Xml/XmlTextWriter2.cs
System.Xml/XmlInputStream.cs
System.Xml/XmlParserInput.cs
System.Xml.XPath/IXPathNavigable.cs
System.Xml.XPath/XPathNavigator.cs
System.Xml.XPath/XPathExpression.cs
System.Xml.XPath/XPathItem.cs
System.Xml.XPath/XPathNamespaceScope.cs
System.Xml.XPath/XPathNodeIterator.cs
System.Xml.XPath/XPathResultType.cs
System.Xml.XPath/XPathNodeType.cs
System.Xml.XPath/XmlDataType.cs
System.Xml.XPath/XmlSortOrder.cs
System.Xml.XPath/XmlCaseOrder.cs
System.Xml.XPath/XPathDocument.cs
System.Xml.XPath/XPathException.cs
System.Xml.XPath/XPathComparer.cs
System.Xml.XPath/DefaultContext.cs
System.Xml.XPath/Expression.cs
System.Xml.XPath/Iterator.cs
System.Xml.XPath/Tokenizer.cs
System.Xml.Xsl/IXsltContextFunction.cs
System.Xml.Xsl/IXsltContextVariable.cs
System.Xml.Xsl/XslCompiledTransform.cs
System.Xml.Xsl/XslTransform.cs
System.Xml.Xsl/XsltArgumentList.cs
System.Xml.Xsl/XsltCompileException.cs
System.Xml.Xsl/XsltContext.cs
System.Xml.Xsl/XsltException.cs
System.Xml.Xsl/XsltMessageEncounteredEventArgs.cs
System.Xml.Xsl/XsltMessageEncounteredEventHandler.cs
System.Xml.Xsl/XsltSettings.cs
System.Xml.Schema/BuiltInDatatype.cs
System.Xml.Schema/IXmlSchemaInfo.cs
System.Xml.Schema/SchemaDataValueType.cs
System.Xml.Schema/ValidationEventArgs.cs
System.Xml.Schema/XmlAtomicValue.cs
System.Xml.Schema/XmlSchema.cs
System.Xml.Schema/XmlSchemaAll.cs
System.Xml.Schema/XmlSchemaAnnotated.cs
System.Xml.Schema/XmlSchemaAnnotation.cs
System.Xml.Schema/XmlSchemaAny.cs
System.Xml.Schema/XmlSchemaAnyAttribute.cs
System.Xml.Schema/XmlSchemaAppInfo.cs
System.Xml.Schema/XmlSchemaAttribute.cs
System.Xml.Schema/XmlSchemaAttributeGroup.cs
System.Xml.Schema/XmlSchemaAttributeGroupRef.cs
System.Xml.Schema/XmlSchemaChoice.cs
System.Xml.Schema/XmlSchemaCollection.cs
System.Xml.Schema/XmlSchemaCollectionEnumerator.cs
System.Xml.Schema/XmlSchemaCompilationSettings.cs
System.Xml.Schema/XmlSchemaComplexContent.cs
System.Xml.Schema/XmlSchemaComplexContentExtension.cs
System.Xml.Schema/XmlSchemaComplexContentRestriction.cs
System.Xml.Schema/XmlSchemaComplexType.cs
System.Xml.Schema/XmlSchemaContent.cs
System.Xml.Schema/XmlSchemaContentModel.cs
System.Xml.Schema/XmlSchemaContentProcessing.cs
System.Xml.Schema/XmlSchemaContentType.cs
System.Xml.Schema/XmlSchemaDatatype.cs
System.Xml.Schema/XmlSchemaDatatypeVariety.cs
System.Xml.Schema/XmlSchemaDerivationMethod.cs
System.Xml.Schema/XmlSchemaDocumentation.cs
System.Xml.Schema/XmlSchemaElement.cs
System.Xml.Schema/XmlSchemaEnumerationFacet.cs
System.Xml.Schema/XmlSchemaException.cs
System.Xml.Schema/XmlSchemaExternal.cs
System.Xml.Schema/XmlSchemaFacet.cs
System.Xml.Schema/XmlSchemaForm.cs
System.Xml.Schema/XmlSchemaFractionDigitsFacet.cs
System.Xml.Schema/XmlSchemaGroup.cs
System.Xml.Schema/XmlSchemaGroupBase.cs
System.Xml.Schema/XmlSchemaGroupRef.cs
System.Xml.Schema/XmlSchemaIdentityConstraint.cs
System.Xml.Schema/XmlSchemaImport.cs
System.Xml.Schema/XmlSchemaInclude.cs
System.Xml.Schema/XmlSchemaInference.cs
System.Xml.Schema/XmlSchemaInferenceException.cs
System.Xml.Schema/XmlSchemaInfo.cs
System.Xml.Schema/XmlSchemaKey.cs
System.Xml.Schema/XmlSchemaKeyref.cs
System.Xml.Schema/XmlSchemaLengthFacet.cs
System.Xml.Schema/XmlSchemaMaxExclusiveFacet.cs
System.Xml.Schema/XmlSchemaMaxInclusiveFacet.cs
System.Xml.Schema/XmlSchemaMaxLengthFacet.cs
System.Xml.Schema/XmlSchemaMinExclusiveFacet.cs
System.Xml.Schema/XmlSchemaMinInclusiveFacet.cs
System.Xml.Schema/XmlSchemaMinLengthFacet.cs
System.Xml.Schema/XmlSchemaNotation.cs
System.Xml.Schema/XmlSchemaNumericFacet.cs
System.Xml.Schema/XmlSchemaObject.cs
System.Xml.Schema/XmlSchemaObjectCollection.cs
System.Xml.Schema/XmlSchemaObjectEnumerator.cs
System.Xml.Schema/XmlSchemaObjectTable.cs
System.Xml.Schema/XmlSchemaParticle.cs
System.Xml.Schema/XmlSchemaPatternFacet.cs
System.Xml.Schema/XmlSchemaRedefine.cs
System.Xml.Schema/XmlSchemaSet.cs
System.Xml.Schema/XmlSchemaSequence.cs
System.Xml.Schema/XmlSchemaSerializer.cs
System.Xml.Schema/XmlSchemaSimpleContent.cs
System.Xml.Schema/XmlSchemaSimpleContentExtension.cs
System.Xml.Schema/XmlSchemaSimpleContentRestriction.cs
System.Xml.Schema/XmlSchemaSimpleType.cs
System.Xml.Schema/XmlSchemaSimpleTypeContent.cs
System.Xml.Schema/XmlSchemaSimpleTypeList.cs
System.Xml.Schema/XmlSchemaSimpleTypeRestriction.cs
System.Xml.Schema/XmlSchemaSimpleTypeUnion.cs
System.Xml.Schema/XmlSchemaTotalDigitsFacet.cs
System.Xml.Schema/XmlSchemaType.cs
System.Xml.Schema/XmlSchemaUnique.cs
System.Xml.Schema/XmlSchemaUse.cs
System.Xml.Schema/XmlSchemaValidator.cs
System.Xml.Schema/XmlSchemaValidity.cs
System.Xml.Schema/XmlSchemaValidationException.cs
System.Xml.Schema/XmlSchemaWhiteSpaceFacet.cs
System.Xml.Schema/XmlSchemaXPath.cs
System.Xml.Schema/XmlSeverityType.cs
System.Xml.Schema/ValidationHandler.cs
System.Xml.Schema/XmlSchemaUtil.cs
System.Xml.Schema/XmlSchemaReader.cs
System.Xml.Schema/XmlSchemaValidationFlags.cs
System.Xml.Schema/XmlTypeCode.cs
System.Xml.Schema/XmlValueConverter.cs
System.Xml.Schema/XmlValueGetter.cs
System.Xml.Serialization/IXmlTextParser.cs
Dummy.cs
System.Xml.Res.cs
System.Xml.Utils.Res.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/Assembly.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/IlGen/GenerateHelper.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/IlGen/IteratorDescriptor.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/IlGen/OptimizerPatterns.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/IlGen/StaticDataManager.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/IlGen/TailCallAnalyzer.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/IlGen/XmlILAnnotation.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/IlGen/XmlILConstructAnalyzer.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/IlGen/XmlILModule.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/IlGen/XmlILOptimization.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/IlGen/XmlILOptimizerVisitor.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/IlGen/XmlIlTrace.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/IlGen/XmlIlTypeHelper.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/IlGen/XmlIlVisitor.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/ISourceLineInfo.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/ListBase.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/Pair.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/QIL/QilBinary.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/QIL/QilChoice.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/QIL/QilCloneVisitor.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/QIL/QilDataSource.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/QIL/QilExpression.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/QIL/QilFactory.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/QIL/QilFunction.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/QIL/QilInvoke.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/QIL/QilInvokeEarlyBound.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/QIL/QilInvokeLateBound.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/QIL/QilIterator.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/QIL/QilList.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/QIL/QilLiteral.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/QIL/QilLoop.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/QIL/QilName.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/QIL/QilNode.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/QIL/QilNodeType.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/QIL/QilParameter.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/QIL/QilPatternFactory.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/QIL/QilPatternVisitor.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/QIL/QilReference.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/QIL/QilReplaceVisitor.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/QIL/QilScopedVisitor.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/QIL/QilSortKey.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/QIL/QilStrConcat.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/QIL/QilTargetType.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/QIL/QilTernary.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/QIL/QilTypeChecker.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/QIL/QilUnary.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/QIL/QilValidationVisitor.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/QIL/QilVisitor.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/QIL/QilXmlReader.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/QIL/QilXmlWriter.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/QIL/SerializationHints.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/QIL/SubstitutionList.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/QIL/WhitespaceRule.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/QueryReaderSettings.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/Runtime/ContentIterators.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/Runtime/DecimalFormatter.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/Runtime/DocumentOrderComparer.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/Runtime/DodSequenceMerge.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/Runtime/EarlyBoundInfo.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/Runtime/NumberFormatter.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/Runtime/RtfNavigator.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/Runtime/SetIterators.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/Runtime/SiblingIterators.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/Runtime/StringConcat.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/Runtime/TreeIterators.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/Runtime/WhitespaceRuleLookup.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/Runtime/WhitespaceRuleReader.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/Runtime/XmlAggregates.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/Runtime/XmlAttributeCache.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/Runtime/XmlCollation.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/Runtime/XmlExtensionFunction.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/Runtime/XmlILIndex.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/Runtime/XmlILStorageConverter.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/Runtime/XmlIterators.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/Runtime/XmlNavigatorFilter.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/Runtime/XmlNavigatorStack.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/Runtime/XmlQueryContext.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/Runtime/XmlQueryOutput.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/Runtime/XmlQueryRuntime.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/Runtime/XmlQuerySequence.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/Runtime/XmlQueryStaticData.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/Runtime/XmlRawWriterWrapper.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/Runtime/XmlSequenceWriter.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/Runtime/XmlSortKeyAccumulator.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/Runtime/XmlSortKey.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/Runtime/XslNumber.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/Runtime/XsltConvert.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/Runtime/XsltFunctions.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/Runtime/XsltLibrary.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/SourceLineInfo.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/XmlILCommand.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/XmlIlGenerator.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/XmlNodeKindFlags.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/XmlQualifiedNameTest.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/XmlQueryCardinality.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/XmlQueryType.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/XmlQueryTypeFactory.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/XPathConvert.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/XPath/IXpathBuilder.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/XPath/IXPathEnvironment.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/XPath/XPathAxis.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/XPath/XPathBuilder.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/XPath/XPathCompileException.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/XPath/XPathContext.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/XPath/XPathOperator.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/XPath/XPathParser.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/XPath/XPathQilFactory.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/XPath/XPathScanner.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/XslException.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/Xslt/Compiler.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/Xslt/CompilerScopeManager.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/Xslt/Focus.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/Xslt/IErrorHelper.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/Xslt/InvokeGenerator.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/Xslt/KeyMatchBuilder.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/Xslt/Keywords.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/Xslt/MatcherBuilder.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/XsltOld/Action.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/XsltOld/ActionFrame.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/XsltOld/ApplyImportsAction.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/XsltOld/ApplyTemplatesAction.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/XsltOld/AttributeAction.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/XsltOld/AttributeSetAction.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/XsltOld/Avt.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/XsltOld/AvtEvent.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/XsltOld/BeginEvent.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/XsltOld/BuilderInfo.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/XsltOld/CallTemplateAction.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/XsltOld/ChooseAction.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/XsltOld/CommentAction.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/XsltOld/CompiledAction.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/XsltOld/Compiler.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/XsltOld/ContainerAction.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/XsltOld/CopyAction.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/XsltOld/CopyAttributesAction.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/XsltOld/CopyCodeAction.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/XsltOld/CopyNamespacesAction.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/XsltOld/CopyNodesetAction.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/XsltOld/CopyOfAction.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/XsltOld/DbgCompiler.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/XsltOld/DocumentScope.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/XsltOld/ElementAction.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/XsltOld/EndEvent.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/XsltOld/Event.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/XsltOld/ForeachAction.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/XsltOld/HtmlProps.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/XsltOld/IfAction.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/XsltOld/InputScope.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/XsltOld/InputScopeManager.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/XsltOld/MessageAction.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/XsltOld/NamespaceDecl.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/XsltOld/NamespaceEvent.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/XsltOld/NavigatorInput.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/XsltOld/NavigatorOutput.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/XsltOld/NewInstructionAction.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/XsltOld/NumberAction.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/XsltOld/OutKeywords.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/XsltOld/OutputScope.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/XsltOld/OutputScopeManager.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/XsltOld/PrefixQname.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/XsltOld/ProcessingInstructionAction.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/XsltOld/Processor.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/XsltOld/ReaderOutput.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/XsltOld/RecordBuilder.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/XsltOld/RecordOutput.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/XsltOld/RootAction.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/XsltOld/SequentialOutput.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/XsltOld/SortAction.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/XsltOld/StateMachine.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/XsltOld/StringOutput.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/XsltOld/Stylesheet.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/XsltOld/TemplateAction.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/XsltOld/TemplateBaseAction.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/XsltOld/TemplateLookupAction.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/XsltOld/Templatemanager.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/XsltOld/TextAction.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/XsltOld/TextEvent.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/XsltOld/TextOnlyOutput.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/XsltOld/TextOutput.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/XsltOld/TheQuery.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/XsltOld/UseAttributesetsAction.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/XsltOld/ValueOfAction.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/XsltOld/VariableAction.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/XsltOld/WithParamAction.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/XsltOld/WriterOutput.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/XsltOld/XsltCompileContext.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/XsltOld/XsltDebugger.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/XsltOld/XsltOutput.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/Xslt/OutputScopeManager.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/Xslt/QilGenerator.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/Xslt/QilGeneratorEnv.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/Xslt/QilStrConcatenator.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/Xslt/Scripts.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/Xslt/Stylesheet.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/Xslt/XPathPatternBuilder.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/Xslt/XPathPatternParser.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/Xslt/XslAstAnalyzer.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/Xslt/XslAst.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/Xslt/XslFlags.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/Xslt/XsltInput.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/Xslt/XsltLoader.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/Xslt/XsltQilFactory.cs
../../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/Xslt/XslVisitor.cs
../../../external/referencesource/System.Xml/InternalApis/NDP_Common/inc/Win8Helpers.cs
../../../external/referencesource/System.Xml/misc/HResults.cs
../../../external/referencesource/System.Xml/misc/InvariantComparer.cs
../../../external/referencesource/System.Xml/misc/PrivilegedConfigurationManager.cs
../../../external/referencesource/System.Xml/System/Xml/Assembly/System.Xml.Assembly.cs
../../../external/referencesource/System.Xml/System/Xml/AsyncHelper.cs
../../../external/referencesource/System.Xml/System/Xml/Base64Decoder.cs
../../../external/referencesource/System.Xml/System/Xml/Base64EncoderAsync.cs
../../../external/referencesource/System.Xml/System/Xml/Base64Encoder.cs
../../../external/referencesource/System.Xml/System/Xml/BinaryXml/BinXmltoken.cs
../../../external/referencesource/System.Xml/System/Xml/BinaryXml/SqlUtils.cs
../../../external/referencesource/System.Xml/System/Xml/BinaryXml/XmlBinaryReaderAsync.cs
../../../external/referencesource/System.Xml/System/Xml/BinaryXml/XmlBinaryReader.cs
../../../external/referencesource/System.Xml/System/Xml/BinHexDecoder.cs
../../../external/referencesource/System.Xml/System/Xml/BinHexEncoderAsync.cs
../../../external/referencesource/System.Xml/System/Xml/BinHexEncoder.cs
../../../external/referencesource/System.Xml/System/Xml/Bits.cs
../../../external/referencesource/System.Xml/System/Xml/BitStack.cs
../../../external/referencesource/System.Xml/System/Xml/ByteStack.cs
../../../external/referencesource/System.Xml/System/Xml/Cache/Shape.cs
../../../external/referencesource/System.Xml/System/Xml/Cache/ShapeGenerator.cs
../../../external/referencesource/System.Xml/System/Xml/Cache/XPathDocumentBuilder.cs
../../../external/referencesource/System.Xml/System/Xml/Cache/XPathDocumentIterator.cs
../../../external/referencesource/System.Xml/System/Xml/Cache/XPathDocumentNavigator.cs
../../../external/referencesource/System.Xml/System/Xml/Cache/XPathDocumentView.cs
../../../external/referencesource/System.Xml/System/Xml/Cache/XPathNode.cs
../../../external/referencesource/System.Xml/System/Xml/Cache/XPathNodeHelper.cs
../../../external/referencesource/System.Xml/System/Xml/Cache/XPathNodeInfoAtom.cs
../../../external/referencesource/System.Xml/System/Xml/Cache/XPathNodeView.cs
../../../external/referencesource/System.Xml/System/Xml/Cache/XPathNodeViewPropertyDescriptor.cs
../../../external/referencesource/System.Xml/System/Xml/Core/BinaryCompatibility.cs
../../../external/referencesource/System.Xml/System/Xml/Core/CharEntityEncoderFallback.cs
../../../external/referencesource/System.Xml/System/Xml/Core/ConformanceLevel.cs
../../../external/referencesource/System.Xml/System/Xml/Core/DtdProcessing.cs
../../../external/referencesource/System.Xml/System/Xml/Core/EntityHandling.cs
../../../external/referencesource/System.Xml/System/Xml/Core/HtmlEncodedRawTextWriter.cs
../../../external/referencesource/System.Xml/System/Xml/Core/HtmlTernaryTree.cs
../../../external/referencesource/System.Xml/System/Xml/Core/HtmlUtf8RawTextWriter.cs
../../../external/referencesource/System.Xml/System/Xml/Core/IDtdInfo.cs
../../../external/referencesource/System.Xml/System/Xml/Core/IDtdParserAdapterAsync.cs
../../../external/referencesource/System.Xml/System/Xml/Core/IDtdParserAdapter.cs
../../../external/referencesource/System.Xml/System/Xml/Core/IDtdParserAsync.cs
../../../external/referencesource/System.Xml/System/Xml/Core/IDtdParser.cs
../../../external/referencesource/System.Xml/System/Xml/Core/IncrementalReadDecoders.cs
../../../external/referencesource/System.Xml/System/Xml/Core/IRemovableWriter.cs
../../../external/referencesource/System.Xml/System/Xml/Core/IValidationEventHandling.cs
../../../external/referencesource/System.Xml/System/Xml/Core/NamespaceHandling.cs
../../../external/referencesource/System.Xml/System/Xml/Core/NewLineHandling.cs
../../../external/referencesource/System.Xml/System/Xml/Core/QueryOutputWriter.cs
../../../external/referencesource/System.Xml/System/Xml/Core/QueryOutputWriterV1.cs
../../../external/referencesource/System.Xml/System/Xml/Core/ReadContentAsBinaryHelperAsync.cs
../../../external/referencesource/System.Xml/System/Xml/Core/ReadContentAsBinaryHelper.cs
../../../external/referencesource/System.Xml/System/Xml/Core/ReadOnlyTernaryTree.cs
../../../external/referencesource/System.Xml/System/Xml/Core/ReadState.cs
../../../external/referencesource/System.Xml/System/Xml/Core/SecureStringHasher.cs
../../../external/referencesource/System.Xml/System/Xml/Core/TextEncodedRawTextWriter.cs
../../../external/referencesource/System.Xml/System/Xml/Core/TextUtf8RawTextWriter.cs
../../../external/referencesource/System.Xml/System/Xml/Core/ValidatingReaderNodeData.cs
../../../external/referencesource/System.Xml/System/Xml/Core/ValidationType.cs
../../../external/referencesource/System.Xml/System/Xml/Core/WhitespaceHandling.cs
../../../external/referencesource/System.Xml/System/Xml/Core/XmlAsyncCheckReader.cs
../../../external/referencesource/System.Xml/System/Xml/Core/XmlAsyncCheckWriter.cs
../../../external/referencesource/System.Xml/System/Xml/Core/XmlAutoDetectWriter.cs
../../../external/referencesource/System.Xml/System/Xml/Core/XmlCharCheckingReaderAsync.cs
../../../external/referencesource/System.Xml/System/Xml/Core/XmlCharCheckingReader.cs
../../../external/referencesource/System.Xml/System/Xml/Core/XmlCharCheckingWriterAsync.cs
../../../external/referencesource/System.Xml/System/Xml/Core/XmlCharCheckingWriter.cs
../../../external/referencesource/System.Xml/System/Xml/Core/XmlConfiguration.cs
../../../external/referencesource/System.Xml/System/Xml/Core/XmlEncodedRawTextWriterAsync.cs
../../../external/referencesource/System.Xml/System/Xml/Core/XmlEncodedRawTextWriter.cs
../../../external/referencesource/System.Xml/System/Xml/Core/XmlEventCache.cs
../../../external/referencesource/System.Xml/System/Xml/Core/XmlParserContext.cs
../../../external/referencesource/System.Xml/System/Xml/Core/XmlRawWriterAsync.cs
../../../external/referencesource/System.Xml/System/Xml/Core/XmlRawWriter.cs
../../../external/referencesource/System.Xml/System/Xml/Core/XmlReaderAsync.cs
../../../external/referencesource/System.Xml/System/Xml/Core/XmlReader.cs
../../../external/referencesource/System.Xml/System/Xml/Core/XmlReaderSettings.cs
../../../external/referencesource/System.Xml/System/Xml/Core/XmlSpace.cs
../../../external/referencesource/System.Xml/System/Xml/Core/XmlSubtreeReaderAsync.cs
../../../external/referencesource/System.Xml/System/Xml/Core/XmlSubtreeReader.cs
../../../external/referencesource/System.Xml/System/Xml/Core/XmlTextEncoder.cs
../../../external/referencesource/System.Xml/System/Xml/Core/XmlTextReader.cs
../../../external/referencesource/System.Xml/System/Xml/Core/XmlTextReaderImplAsync.cs
../../../external/referencesource/System.Xml/System/Xml/Core/XmlTextReaderImpl.cs
../../../external/referencesource/System.Xml/System/Xml/Core/XmlTextReaderImplHelpersAsync.cs
../../../external/referencesource/System.Xml/System/Xml/Core/XmlTextReaderImplHelpers.cs
../../../external/referencesource/System.Xml/System/Xml/Core/XmlTextWriter.cs
../../../external/referencesource/System.Xml/System/Xml/Core/XmlUtf8RawTextWriterAsync.cs
../../../external/referencesource/System.Xml/System/Xml/Core/XmlUtf8RawTextWriter.cs
../../../external/referencesource/System.Xml/System/Xml/Core/XmlValidatingReader.cs
../../../external/referencesource/System.Xml/System/Xml/Core/XmlValidatingReaderImplAsync.cs
../../../external/referencesource/System.Xml/System/Xml/Core/XmlValidatingReaderImpl.cs
../../../external/referencesource/System.Xml/System/Xml/Core/XmlWellFormedWriterAsync.cs
../../../external/referencesource/System.Xml/System/Xml/Core/XmlWellFormedWriter.cs
../../../external/referencesource/System.Xml/System/Xml/Core/XmlWellFormedWriterHelpersAsync.cs
../../../external/referencesource/System.Xml/System/Xml/Core/XmlWellFormedWriterHelpers.cs
../../../external/referencesource/System.Xml/System/Xml/Core/XmlWrappingReaderAsync.cs
../../../external/referencesource/System.Xml/System/Xml/Core/XmlWrappingReader.cs
../../../external/referencesource/System.Xml/System/Xml/Core/XmlWrappingWriterAsync.cs
../../../external/referencesource/System.Xml/System/Xml/Core/XmlWrappingWriter.cs
../../../external/referencesource/System.Xml/System/Xml/Core/XmlWriterAsync.cs
../../../external/referencesource/System.Xml/System/Xml/Core/XmlWriter.cs
../../../external/referencesource/System.Xml/System/Xml/Core/XmlWriterSettings.cs
../../../external/referencesource/System.Xml/System/Xml/Core/XsdCachingReaderAsync.cs
../../../external/referencesource/System.Xml/System/Xml/Core/XsdCachingReader.cs
../../../external/referencesource/System.Xml/System/Xml/Core/XsdValidatingReaderAsync.cs
../../../external/referencesource/System.Xml/System/Xml/Core/XsdValidatingReader.cs
../../../external/referencesource/System.Xml/System/Xml/DiagnosticsSwitches.cs
../../../external/referencesource/System.Xml/System/Xml/Dom/DocumentSchemaValidator.cs
../../../external/referencesource/System.Xml/System/Xml/Dom/DocumentXmlWriter.cs
../../../external/referencesource/System.Xml/System/Xml/Dom/DocumentXPathNavigator.cs
../../../external/referencesource/System.Xml/System/Xml/Dom/DomNameTable.cs
../../../external/referencesource/System.Xml/System/Xml/Dom/XmlAttributeCollection.cs
../../../external/referencesource/System.Xml/System/Xml/Dom/XmlAttribute.cs
../../../external/referencesource/System.Xml/System/Xml/Dom/XmlCDataSection.cs
../../../external/referencesource/System.Xml/System/Xml/Dom/XmlCharacterData.cs
../../../external/referencesource/System.Xml/System/Xml/Dom/XmlChildEnumerator.cs
../../../external/referencesource/System.Xml/System/Xml/Dom/XmlChildNodes.cs
../../../external/referencesource/System.Xml/System/Xml/Dom/XmlComment.cs
../../../external/referencesource/System.Xml/System/Xml/Dom/XmlDeclaration.cs
../../../external/referencesource/System.Xml/System/Xml/Dom/XmlDocument.cs
../../../external/referencesource/System.Xml/System/Xml/Dom/XmlDocumentFragment.cs
../../../external/referencesource/System.Xml/System/Xml/Dom/XmlDocumentType.cs
../../../external/referencesource/System.Xml/System/Xml/Dom/XmlDomTextWriter.cs
../../../external/referencesource/System.Xml/System/Xml/Dom/XmlElement.cs
../../../external/referencesource/System.Xml/System/Xml/Dom/XmlElementList.cs
../../../external/referencesource/System.Xml/System/Xml/Dom/XmlEntity.cs
../../../external/referencesource/System.Xml/System/Xml/Dom/XmlEntityReference.cs
../../../external/referencesource/System.Xml/System/Xml/Dom/XmlEventChangedAction.cs
../../../external/referencesource/System.Xml/System/Xml/Dom/XmlImplementation.cs
../../../external/referencesource/System.Xml/System/Xml/Dom/XmlLinkedNode.cs
../../../external/referencesource/System.Xml/System/Xml/Dom/XmlLoader.cs
../../../external/referencesource/System.Xml/System/Xml/Dom/XmlName.cs
../../../external/referencesource/System.Xml/System/Xml/Dom/XmlNamedNodemap.cs
../../../external/referencesource/System.Xml/System/Xml/Dom/XmlNamedNodeMap.SmallXmlNodeList.cs
../../../external/referencesource/System.Xml/System/Xml/Dom/XmlNodeChangedEventArgs.cs
../../../external/referencesource/System.Xml/System/Xml/Dom/XmlNodeChangedEventHandler.cs
../../../external/referencesource/System.Xml/System/Xml/Dom/XmlNode.cs
../../../external/referencesource/System.Xml/System/Xml/Dom/XmlNodeList.cs
../../../external/referencesource/System.Xml/System/Xml/Dom/XmlNodeReader.cs
../../../external/referencesource/System.Xml/System/Xml/Dom/XmlNotation.cs
../../../external/referencesource/System.Xml/System/Xml/Dom/XmlProcessingInstruction.cs
../../../external/referencesource/System.Xml/System/Xml/Dom/XmlSignificantWhiteSpace.cs
../../../external/referencesource/System.Xml/System/Xml/Dom/XmlText.cs
../../../external/referencesource/System.Xml/System/Xml/Dom/XmlUnspecifiedAttribute.cs
../../../external/referencesource/System.Xml/System/Xml/Dom/XmlWhitespace.cs
../../../external/referencesource/System.Xml/System/Xml/Dom/XPathNodeList.cs
../../../external/referencesource/System.Xml/System/Xml/EmptyEnumerator.cs
../../../external/referencesource/System.Xml/System/Xml/HWStack.cs
../../../external/referencesource/System.Xml/System/Xml/IApplicationResourceStreamResolver.cs
../../../external/referencesource/System.Xml/System/Xml/IHasXmlNode.cs
../../../external/referencesource/System.Xml/System/Xml/IXmlLineInfo.cs
../../../external/referencesource/System.Xml/System/Xml/IXmlNamespaceResolver.cs
../../../external/referencesource/System.Xml/System/Xml/LineInfo.cs
../../../external/referencesource/System.Xml/System/Xml/MTNameTable.cs
../../../external/referencesource/System.Xml/System/Xml/NameTable.cs
../../../external/referencesource/System.Xml/System/Xml/Ref.cs
../../../external/referencesource/System.Xml/System/Xml/Resolvers/XmlKnownDtds.cs
../../../external/referencesource/System.Xml/System/Xml/Resolvers/XmlPreloadedResolverAsync.cs
../../../external/referencesource/System.Xml/System/Xml/Resolvers/XmlPreloadedResolver.cs
../../../external/referencesource/System.Xml/System/Xml/Schema/Asttree.cs
../../../external/referencesource/System.Xml/System/Xml/Schema/AutoValidator.cs
../../../external/referencesource/System.Xml/System/Xml/Schema/BaseProcessor.cs
../../../external/referencesource/System.Xml/System/Xml/Schema/BaseValidator.cs
../../../external/referencesource/System.Xml/System/Xml/Schema/BitSet.cs
../../../external/referencesource/System.Xml/System/Xml/Schema/Chameleonkey.cs
../../../external/referencesource/System.Xml/System/Xml/Schema/CompiledidEntityConstraint.cs
../../../external/referencesource/System.Xml/System/Xml/Schema/ConstraintStruct.cs
../../../external/referencesource/System.Xml/System/Xml/Schema/ContentValidator.cs
../../../external/referencesource/System.Xml/System/Xml/Schema/DataTypeImplementation.cs
../../../external/referencesource/System.Xml/System/Xml/Schema/DtdParserAsync.cs
../../../external/referencesource/System.Xml/System/Xml/Schema/DtdParser.cs
../../../external/referencesource/System.Xml/System/Xml/Schema/DtdValidator.cs
../../../external/referencesource/System.Xml/System/Xml/Schema/FacetChecker.cs
../../../external/referencesource/System.Xml/System/Xml/Schema/Inference/Infer.cs
../../../external/referencesource/System.Xml/System/Xml/Schema/Inference/XmlSchemaInferenceException.cs
../../../external/referencesource/System.Xml/System/Xml/Schema/IXmlSchemaInfo.cs
../../../external/referencesource/System.Xml/System/Xml/Schema/NamespaceList.cs
../../../external/referencesource/System.Xml/System/Xml/Schema/ParserAsync.cs
../../../external/referencesource/System.Xml/System/Xml/Schema/Parser.cs
../../../external/referencesource/System.Xml/System/Xml/Schema/Preprocessor.cs
../../../external/referencesource/System.Xml/System/Xml/Schema/SchemaAttDef.cs
../../../external/referencesource/System.Xml/System/Xml/Schema/SchemaBuilder.cs
../../../external/referencesource/System.Xml/System/Xml/Schema/SchemaCollectionCompiler.cs
../../../external/referencesource/System.Xml/System/Xml/Schema/SchemaCollectionpreProcessor.cs
../../../external/referencesource/System.Xml/System/Xml/Schema/SchemaDeclBase.cs
../../../external/referencesource/System.Xml/System/Xml/Schema/SchemaElementDecl.cs
../../../external/referencesource/System.Xml/System/Xml/Schema/SchemaEntity.cs
../../../external/referencesource/System.Xml/System/Xml/Schema/SchemaInfo.cs
../../../external/referencesource/System.Xml/System/Xml/Schema/SchemaNames.cs
../../../external/referencesource/System.Xml/System/Xml/Schema/SchemaNamespacemanager.cs
../../../external/referencesource/System.Xml/System/Xml/Schema/SchemaNotation.cs
../../../external/referencesource/System.Xml/System/Xml/Schema/SchemaSetCompiler.cs
../../../external/referencesource/System.Xml/System/Xml/Schema/SchemaType.cs
../../../external/referencesource/System.Xml/System/Xml/Schema/ValidationEventArgs.cs
../../../external/referencesource/System.Xml/System/Xml/Schema/ValidationEventHandler.cs
../../../external/referencesource/System.Xml/System/Xml/Schema/ValidationState.cs
../../../external/referencesource/System.Xml/System/Xml/Schema/XdrBuilder.cs
../../../external/referencesource/System.Xml/System/Xml/Schema/XdrValidator.cs
../../../external/referencesource/System.Xml/System/Xml/Schema/XmlAtomicValue.cs
../../../external/referencesource/System.Xml/System/Xml/Schema/XmlSchemaAll.cs
../../../external/referencesource/System.Xml/System/Xml/Schema/XmlSchemaAnnotated.cs
../../../external/referencesource/System.Xml/System/Xml/Schema/XmlSchemaAnnotation.cs
../../../external/referencesource/System.Xml/System/Xml/Schema/XmlSchemaAnyAttribute.cs
../../../external/referencesource/System.Xml/System/Xml/Schema/XmlSchemaAny.cs
../../../external/referencesource/System.Xml/System/Xml/Schema/XmlSchemaAppInfo.cs
../../../external/referencesource/System.Xml/System/Xml/Schema/XmlSchemaAttribute.cs
../../../external/referencesource/System.Xml/System/Xml/Schema/XmlSchemaAttributeGroup.cs
../../../external/referencesource/System.Xml/System/Xml/Schema/XmlSchemaAttributeGroupref.cs
../../../external/referencesource/System.Xml/System/Xml/Schema/XmlSchemaChoice.cs
../../../external/referencesource/System.Xml/System/Xml/Schema/XmlSchemaCollection.cs
../../../external/referencesource/System.Xml/System/Xml/Schema/XmlSchemaCompilationSettings.cs
../../../external/referencesource/System.Xml/System/Xml/Schema/XmlSchemaComplexContent.cs
../../../external/referencesource/System.Xml/System/Xml/Schema/XmlSchemaComplexContentExtension.cs
../../../external/referencesource/System.Xml/System/Xml/Schema/XmlSchemaComplexContentRestriction.cs
../../../external/referencesource/System.Xml/System/Xml/Schema/XmlSchemaComplexType.cs
../../../external/referencesource/System.Xml/System/Xml/Schema/XmlSchemaContent.cs
../../../external/referencesource/System.Xml/System/Xml/Schema/XmlSchemaContentModel.cs
../../../external/referencesource/System.Xml/System/Xml/Schema/XmlSchemaContentProcessing.cs
../../../external/referencesource/System.Xml/System/Xml/Schema/XmlSchemaContentType.cs
../../../external/referencesource/System.Xml/System/Xml/Schema/XmlSchema.cs
../../../external/referencesource/System.Xml/System/Xml/Schema/XmlSchemaDataType.cs
../../../external/referencesource/System.Xml/System/Xml/Schema/XmlSchemaDerivationMethod.cs
../../../external/referencesource/System.Xml/System/Xml/Schema/XmlSchemaDocumentation.cs
../../../external/referencesource/System.Xml/System/Xml/Schema/XmlSchemaElement.cs
../../../external/referencesource/System.Xml/System/Xml/Schema/XmlSchemaException.cs
../../../external/referencesource/System.Xml/System/Xml/Schema/XmlSchemaExternal.cs
../../../external/referencesource/System.Xml/System/Xml/Schema/XmlSchemaFacet.cs
../../../external/referencesource/System.Xml/System/Xml/Schema/XmlSchemaForm.cs
../../../external/referencesource/System.Xml/System/Xml/Schema/XmlSchemaGroupBase.cs
../../../external/referencesource/System.Xml/System/Xml/Schema/XmlSchemaGroup.cs
../../../external/referencesource/System.Xml/System/Xml/Schema/XmlSchemaGroupRef.cs
../../../external/referencesource/System.Xml/System/Xml/Schema/XmlSchemaIdEntityConstraint.cs
../../../external/referencesource/System.Xml/System/Xml/Schema/XmlSchemaImport.cs
../../../external/referencesource/System.Xml/System/Xml/Schema/XmlSchemaInclude.cs
../../../external/referencesource/System.Xml/System/Xml/Schema/XmlSchemaInfo.cs
../../../external/referencesource/System.Xml/System/Xml/Schema/XmlSchemaNotation.cs
../../../external/referencesource/System.Xml/System/Xml/Schema/XmlSchemaObjectCollection.cs
../../../external/referencesource/System.Xml/System/Xml/Schema/XmlSchemaObject.cs
../../../external/referencesource/System.Xml/System/Xml/Schema/XmlSchemaObjectTable.cs
../../../external/referencesource/System.Xml/System/Xml/Schema/XmlSchemaParticle.cs
../../../external/referencesource/System.Xml/System/Xml/Schema/XmlSchemaRedefine.cs
../../../external/referencesource/System.Xml/System/Xml/Schema/XmlSchemaSequence.cs
../../../external/referencesource/System.Xml/System/Xml/Schema/XmlSchemaSet.cs
../../../external/referencesource/System.Xml/System/Xml/Schema/XmlSchemaSimpleContent.cs
../../../external/referencesource/System.Xml/System/Xml/Schema/XmlSchemaSimpleContentExtension.cs
../../../external/referencesource/System.Xml/System/Xml/Schema/XmlSchemaSimpleContentRestriction.cs
../../../external/referencesource/System.Xml/System/Xml/Schema/XmlSchemaSimpleTypeContent.cs
../../../external/referencesource/System.Xml/System/Xml/Schema/XmlSchemaSimpleType.cs
../../../external/referencesource/System.Xml/System/Xml/Schema/XmlSchemaSimpleTypeList.cs
../../../external/referencesource/System.Xml/System/Xml/Schema/XmlSchemaSimpleTypeRestriction.cs
../../../external/referencesource/System.Xml/System/Xml/Schema/XmlSchemaSimpleTypeUnion.cs
../../../external/referencesource/System.Xml/System/Xml/Schema/XmlSchemaSubstitutionGroup.cs
../../../external/referencesource/System.Xml/System/Xml/Schema/XmlSchemaType.cs
../../../external/referencesource/System.Xml/System/Xml/Schema/XmlSchemaUse.cs
../../../external/referencesource/System.Xml/System/Xml/Schema/XmlSchemaValidationException.cs
../../../external/referencesource/System.Xml/System/Xml/Schema/XmlSchemaValidator.cs
../../../external/referencesource/System.Xml/System/Xml/Schema/XmlSchemaValidity.cs
../../../external/referencesource/System.Xml/System/Xml/Schema/XmlSeverityType.cs
../../../external/referencesource/System.Xml/System/Xml/Schema/XmlTokenizedType.cs
../../../external/referencesource/System.Xml/System/Xml/Schema/XmlTypeCode.cs
../../../external/referencesource/System.Xml/System/Xml/Schema/XmlValueConverter.cs
../../../external/referencesource/System.Xml/System/Xml/Schema/XsdBuilder.cs
../../../external/referencesource/System.Xml/System/Xml/Schema/XsdDateTime.cs
../../../external/referencesource/System.Xml/System/Xml/Schema/XsdDuration.cs
../../../external/referencesource/System.Xml/System/Xml/Schema/XsdValidator.cs
../../../external/referencesource/System.Xml/System/Xml/Serialization/CodeIdentifier.cs
../../../external/referencesource/System.Xml/System/Xml/Serialization/ImportContext.cs
../../../external/referencesource/System.Xml/System/Xml/Serialization/SchemaObjectWriter.cs
../../../external/referencesource/System.Xml/System/Xml/Serialization/XmlSchemas.cs
../../../external/referencesource/System.Xml/System/Xml/Serialization/XmlSerializerNamespaces.cs
../../../external/referencesource/System.Xml/System/Xml/ValidateNames.cs
../../../external/referencesource/System.Xml/System/Xml/XmlCharType.cs
../../../external/referencesource/System.Xml/System/Xml/XmlComplianceUtil.cs
../../../external/referencesource/System.Xml/System/Xml/XmlConvert.cs
../../../external/referencesource/System.Xml/System/Xml/XmlDownloadManagerAsync.cs
../../../external/referencesource/System.Xml/System/Xml/XmlDownloadManager.cs
../../../external/referencesource/System.Xml/System/Xml/XmlEncoding.cs
../../../external/referencesource/System.Xml/System/Xml/XmlException.cs
../../../external/referencesource/System.Xml/System/Xml/XmlNamespacemanager.cs
../../../external/referencesource/System.Xml/System/Xml/XmlNamespaceScope.cs
../../../external/referencesource/System.Xml/System/Xml/XmlNameTable.cs
../../../external/referencesource/System.Xml/System/Xml/XmlNodeOrder.cs
../../../external/referencesource/System.Xml/System/Xml/XmlNodeType.cs
../../../external/referencesource/System.Xml/System/Xml/XmlNullResolver.cs
../../../external/referencesource/System.Xml/System/Xml/XmlQualifiedName.cs
../../../external/referencesource/System.Xml/System/Xml/XmlReservedNs.cs
../../../external/referencesource/System.Xml/System/Xml/XmlResolverAsync.cs
../../../external/referencesource/System.Xml/System/Xml/XmlResolver.cs
../../../external/referencesource/System.Xml/System/Xml/XmlSecureResolverAsync.cs
../../../external/referencesource/System.Xml/System/Xml/XmlSecureResolver.cs
../../../external/referencesource/System.Xml/System/Xml/XmlUrlResolverAsync.cs
../../../external/referencesource/System.Xml/System/Xml/XmlUrlResolver.cs
../../../external/referencesource/System.Xml/System/Xml/XmlXapResolver.cs
../../../external/referencesource/System.Xml/System/Xml/XPath/Internal/AbsoluteQuery.cs
../../../external/referencesource/System.Xml/System/Xml/XPath/Internal/AstNode.cs
../../../external/referencesource/System.Xml/System/Xml/XPath/Internal/AttributeQuery.cs
../../../external/referencesource/System.Xml/System/Xml/XPath/Internal/Axis.cs
../../../external/referencesource/System.Xml/System/Xml/XPath/Internal/BaseAxisQuery.cs
../../../external/referencesource/System.Xml/System/Xml/XPath/Internal/BooleanExpr.cs
../../../external/referencesource/System.Xml/System/Xml/XPath/Internal/BooleanFunctions.cs
../../../external/referencesource/System.Xml/System/Xml/XPath/Internal/CacheAxisQuery.cs
../../../external/referencesource/System.Xml/System/Xml/XPath/Internal/CacheChildrenQuery.cs
../../../external/referencesource/System.Xml/System/Xml/XPath/Internal/CacheOutputQuery.cs
../../../external/referencesource/System.Xml/System/Xml/XPath/Internal/ChildrenQuery.cs
../../../external/referencesource/System.Xml/System/Xml/XPath/Internal/ClonableStack.cs
../../../external/referencesource/System.Xml/System/Xml/XPath/Internal/CompiledXPathExpr.cs
../../../external/referencesource/System.Xml/System/Xml/XPath/Internal/ContextQuery.cs
../../../external/referencesource/System.Xml/System/Xml/XPath/Internal/DescendantBaseQuery.cs
../../../external/referencesource/System.Xml/System/Xml/XPath/Internal/DescendantoverDescendantQuery.cs
../../../external/referencesource/System.Xml/System/Xml/XPath/Internal/DescendantQuery.cs
../../../external/referencesource/System.Xml/System/Xml/XPath/Internal/DocumentorderQuery.cs
../../../external/referencesource/System.Xml/System/Xml/XPath/Internal/EmptyQuery.cs
../../../external/referencesource/System.Xml/System/Xml/XPath/Internal/ExtensionQuery.cs
../../../external/referencesource/System.Xml/System/Xml/XPath/Internal/Filter.cs
../../../external/referencesource/System.Xml/System/Xml/XPath/Internal/FilterQuery.cs
../../../external/referencesource/System.Xml/System/Xml/XPath/Internal/FollowingQuery.cs
../../../external/referencesource/System.Xml/System/Xml/XPath/Internal/FollowingSibling.cs
../../../external/referencesource/System.Xml/System/Xml/XPath/Internal/ForwardPositionQuery.cs
../../../external/referencesource/System.Xml/System/Xml/XPath/Internal/Function.cs
../../../external/referencesource/System.Xml/System/Xml/XPath/Internal/FunctionQuery.cs
../../../external/referencesource/System.Xml/System/Xml/XPath/Internal/Group.cs
../../../external/referencesource/System.Xml/System/Xml/XPath/Internal/GroupQuery.cs
../../../external/referencesource/System.Xml/System/Xml/XPath/Internal/IdQuery.cs
../../../external/referencesource/System.Xml/System/Xml/XPath/Internal/IteratorFilter.cs
../../../external/referencesource/System.Xml/System/Xml/XPath/Internal/LogicalExpr.cs
../../../external/referencesource/System.Xml/System/Xml/XPath/Internal/MergeFilterQuery.cs
../../../external/referencesource/System.Xml/System/Xml/XPath/Internal/NamespaceQuery.cs
../../../external/referencesource/System.Xml/System/Xml/XPath/Internal/NodeFunctions.cs
../../../external/referencesource/System.Xml/System/Xml/XPath/Internal/NumberFunctions.cs
../../../external/referencesource/System.Xml/System/Xml/XPath/Internal/NumericExpr.cs
../../../external/referencesource/System.Xml/System/Xml/XPath/Internal/Operand.cs
../../../external/referencesource/System.Xml/System/Xml/XPath/Internal/OperandQuery.cs
../../../external/referencesource/System.Xml/System/Xml/XPath/Internal/Operator.cs
../../../external/referencesource/System.Xml/System/Xml/XPath/Internal/ParentQuery.cs
../../../external/referencesource/System.Xml/System/Xml/XPath/Internal/PrecedingQuery.cs
../../../external/referencesource/System.Xml/System/Xml/XPath/Internal/PrecedingSibling.cs
../../../external/referencesource/System.Xml/System/Xml/XPath/Internal/QueryBuilder.cs
../../../external/referencesource/System.Xml/System/Xml/XPath/Internal/Query.cs
../../../external/referencesource/System.Xml/System/Xml/XPath/Internal/ResetableIterator.cs
../../../external/referencesource/System.Xml/System/Xml/XPath/Internal/ReversePositionQuery.cs
../../../external/referencesource/System.Xml/System/Xml/XPath/Internal/Root.cs
../../../external/referencesource/System.Xml/System/Xml/XPath/Internal/SortQuery.cs
../../../external/referencesource/System.Xml/System/Xml/XPath/Internal/StringFunctions.cs
../../../external/referencesource/System.Xml/System/Xml/XPath/Internal/UnionExpr.cs
../../../external/referencesource/System.Xml/System/Xml/XPath/Internal/ValueQuery.cs
../../../external/referencesource/System.Xml/System/Xml/XPath/Internal/Variable.cs
../../../external/referencesource/System.Xml/System/Xml/XPath/Internal/VariableQuery.cs
../../../external/referencesource/System.Xml/System/Xml/XPath/Internal/XPathAncestorIterator.cs
../../../external/referencesource/System.Xml/System/Xml/XPath/Internal/XPathAncestorQuery.cs
../../../external/referencesource/System.Xml/System/Xml/XPath/Internal/XPathArrayIterator.cs
../../../external/referencesource/System.Xml/System/Xml/XPath/Internal/XPathAxisIterator.cs
../../../external/referencesource/System.Xml/System/Xml/XPath/Internal/XPathChildIterator.cs
../../../external/referencesource/System.Xml/System/Xml/XPath/Internal/XPathDescendantIterator.cs
../../../external/referencesource/System.Xml/System/Xml/XPath/Internal/XPathEmptyIterator.cs
../../../external/referencesource/System.Xml/System/Xml/XPath/Internal/XPathMultyIterator.cs
../../../external/referencesource/System.Xml/System/Xml/XPath/Internal/XPathParser.cs
../../../external/referencesource/System.Xml/System/Xml/XPath/Internal/XPathScanner.cs
../../../external/referencesource/System.Xml/System/Xml/XPath/Internal/XPathSelectionIterator.cs
../../../external/referencesource/System.Xml/System/Xml/XPath/Internal/XPathSelfQuery.cs
../../../external/referencesource/System.Xml/System/Xml/XPath/Internal/XPathSingletonIterator.cs
../../../external/referencesource/System.Xml/System/Xml/XPath/IXPathNavigable.cs
../../../external/referencesource/System.Xml/System/Xml/XPath/XPathDocument.cs
../../../external/referencesource/System.Xml/System/Xml/XPath/XPathException.cs
../../../external/referencesource/System.Xml/System/Xml/XPath/XPathExpr.cs
../../../external/referencesource/System.Xml/System/Xml/XPath/XPathItem.cs
../../../external/referencesource/System.Xml/System/Xml/XPath/XPathNamespaceScope.cs
../../../external/referencesource/System.Xml/System/Xml/XPath/XPathNavigator.cs
../../../external/referencesource/System.Xml/System/Xml/XPath/XPathNavigatorKeyComparer.cs
../../../external/referencesource/System.Xml/System/Xml/XPath/XPathNavigatorReader.cs
../../../external/referencesource/System.Xml/System/Xml/XPath/XPathNodeIterator.cs
../../../external/referencesource/System.Xml/System/Xml/XPath/XPathNodeType.cs
../../../external/referencesource/System.Xml/System/Xml/Xslt/XslCompiledTransform.cs
../../../external/referencesource/System.Xml/System/Xml/Xslt/XsltArgumentList.cs
../../../external/referencesource/System.Xml/System/Xml/Xslt/XsltContext.cs
../../../external/referencesource/System.Xml/System/Xml/Xslt/XsltException.cs
../../../external/referencesource/System.Xml/System/Xml/Xslt/XslTransform.cs
../../../external/referencesource/System.Xml/System/Xml/Xslt/XsltSettings.cs
System.Xml.Serialization.Advanced/SchemaImporterExtensionCollection.cs
System.Xml.Serialization.Advanced/SchemaImporterExtension.cs
System.Xml.Serialization/CodeExporter.cs
System.Xml.Serialization/CodeGenerationOptions.cs
System.Xml.Serialization/CodeIdentifier.cs
System.Xml.Serialization/CodeIdentifiers.cs
System.Xml.Serialization/IXmlSerializable.cs
System.Xml.Serialization.Configuration/DateTimeSerializationSection.cs
System.Xml.Serialization.Configuration/SchemaImporterExtensionElementCollection.cs
System.Xml.Serialization.Configuration/SchemaImporterExtensionElement.cs
System.Xml.Serialization.Configuration/SchemaImporterExtensionsSection.cs
System.Xml.Serialization.Configuration/SerializationSectionGroup.cs
System.Xml.Serialization.Configuration/XmlSerializerSection.cs
System.Xml.Serialization/ImportContext.cs
System.Xml.Serialization/IXmlSerializable.cs
System.Xml.Serialization/IXmlTextParser.cs
System.Xml.Serialization/KeyHelper.cs
System.Xml.Serialization/MapCodeGenerator.cs
System.Xml.Serialization/ReflectionHelper.cs
System.Xml.Serialization/SchemaImporter.cs
System.Xml.Serialization/SchemaTypes.cs
System.Xml.Serialization/SerializationCodeGenerator.cs
System.Xml.Serialization/SerializationCodeGeneratorConfiguration.cs
System.Xml.Serialization/SerializationCodeGenerator.cs
System.Xml.Serialization/SerializationSource.cs
System.Xml.Serialization/SoapAttributeAttribute.cs
System.Xml.Serialization/SoapAttributeOverrides.cs
@@ -307,10 +616,10 @@ System.Xml.Serialization/SoapElementAttribute.cs
System.Xml.Serialization/SoapEnumAttribute.cs
System.Xml.Serialization/SoapIgnoreAttribute.cs
System.Xml.Serialization/SoapIncludeAttribute.cs
System.Xml.Serialization/SoapSchemaImporter.cs
System.Xml.Serialization/SoapSchemaExporter.cs
System.Xml.Serialization/SoapSchemaMember.cs
System.Xml.Serialization/SoapReflectionImporter.cs
System.Xml.Serialization/SoapSchemaExporter.cs
System.Xml.Serialization/SoapSchemaImporter.cs
System.Xml.Serialization/SoapSchemaMember.cs
System.Xml.Serialization/SoapTypeAttribute.cs
System.Xml.Serialization/TypeData.cs
System.Xml.Serialization/TypeMember.cs
@@ -328,30 +637,30 @@ System.Xml.Serialization/XmlAttributeEventArgs.cs
System.Xml.Serialization/XmlAttributeEventHandler.cs
System.Xml.Serialization/XmlAttributeOverrides.cs
System.Xml.Serialization/XmlAttributes.cs
System.Xml.Serialization/XmlCodeExporter.cs
System.Xml.Serialization/XmlChoiceIdentifierAttribute.cs
System.Xml.Serialization/XmlCodeExporter.cs
System.Xml.Serialization/XmlCustomFormatter.cs
System.Xml.Serialization/XmlDeserializationEvents.cs
System.Xml.Serialization/XmlElementAttribute.cs
System.Xml.Serialization/XmlElementAttributes.cs
System.Xml.Serialization/XmlElementEventArgs.cs
System.Xml.Serialization/XmlElementEventHandler.cs
System.Xml.Serialization/XmlEnumAttribute.cs
System.Xml.Serialization/XmlIgnoreAttribute.cs
System.Xml.Serialization/XmlIncludeAttribute.cs
System.Xml.Serialization/XmlMappingAccess.cs
System.Xml.Serialization/XmlMapping.cs
System.Xml.Serialization/XmlMemberMapping.cs
System.Xml.Serialization/XmlMembersMapping.cs
System.Xml.Serialization/XmlMapping.cs
System.Xml.Serialization/XmlMappingAccess.cs
System.Xml.Serialization/XmlNamespaceDeclarationsAttribute.cs
System.Xml.Serialization/XmlNodeEventArgs.cs
System.Xml.Serialization/XmlNodeEventHandler.cs
System.Xml.Serialization/XmlReflectionImporter.cs
System.Xml.Serialization/XmlReflectionMember.cs
System.Xml.Serialization/XmlRootAttribute.cs
System.Xml.Serialization/XmlSchemaEnumerator.cs
System.Xml.Serialization/XmlSchemaExporter.cs
System.Xml.Serialization/XmlSchemaImporter.cs
System.Xml.Serialization/XmlSchemaProviderAttribute.cs
System.Xml.Serialization/XmlSchemas.cs
System.Xml.Serialization/XmlSerializationCollectionFixupCallback.cs
System.Xml.Serialization/XmlSerializationFixupCallback.cs
System.Xml.Serialization/XmlSerializationGeneratedCode.cs
@@ -361,28 +670,16 @@ System.Xml.Serialization/XmlSerializationReaderInterpreter.cs
System.Xml.Serialization/XmlSerializationWriteCallback.cs
System.Xml.Serialization/XmlSerializationWriter.cs
System.Xml.Serialization/XmlSerializationWriterInterpreter.cs
System.Xml.Serialization/XmlSerializer.cs
System.Xml.Serialization/XmlSerializerAssemblyAttribute.cs
System.Xml.Serialization/XmlSerializer.cs
System.Xml.Serialization/XmlSerializerFactory.cs
System.Xml.Serialization/XmlSerializerImplementation.cs
System.Xml.Serialization/XmlSerializerNamespaces.cs
System.Xml.Serialization/XmlSerializerVersionAttribute.cs
System.Xml.Serialization/XmlTextAttribute.cs
System.Xml.Serialization/XmlTypeAttribute.cs
System.Xml.Serialization/XmlTypeMapElementInfo.cs
System.Xml.Serialization/XmlTypeMapMember.cs
System.Xml.Serialization/XmlTypeMapMemberAttribute.cs
System.Xml.Serialization/XmlTypeMapMember.cs
System.Xml.Serialization/XmlTypeMapMemberElement.cs
System.Xml.Serialization/XmlTypeMapMemberNamespaces.cs
System.Xml.Serialization/XmlTypeMapping.cs
System.Xml.Serialization/XmlElementEventHandler.cs
System.Xml.Serialization/XmlNodeEventHandler.cs
System.Xml.Serialization.Advanced/SchemaImporterExtension.cs
System.Xml.Serialization.Advanced/SchemaImporterExtensionCollection.cs
System.Xml.Serialization.Configuration/DateTimeSerializationSection.cs
System.Xml.Serialization.Configuration/SchemaImporterExtensionElement.cs
System.Xml.Serialization.Configuration/SchemaImporterExtensionElementCollection.cs
System.Xml.Serialization.Configuration/SchemaImporterExtensionsSection.cs
System.Xml.Serialization.Configuration/SerializationSectionGroup.cs
System.Xml.Serialization.Configuration/XmlSerializerSection.cs
System.Xml/XQueryConvert.cs
@@ -163,7 +163,7 @@ namespace MonoTests.System.Xml
ss.Compile ();
Assert.IsTrue (ss.IsCompiled, "#4");
ss.RemoveRecursive (s);
Assert.IsTrue (ss.IsCompiled, "#5");
Assert.IsFalse (ss.IsCompiled, "#5");
}
[Test] // bug #77489
@@ -20,7 +20,8 @@ namespace MonoTests.System.Xml
[TestFixture]
public class XmlSchemaTests : XmlSchemaAssertion
{
static readonly bool StrictMsCompliant = Environment.GetEnvironmentVariable ("MONO_STRICT_MS_COMPLIANT") == "yes";
// Whatever this flag is used is buggy tests. Now mono implementation is MS reference source based, so enabled.
static readonly bool StrictMsCompliant = true;// Environment.GetEnvironmentVariable ("MONO_STRICT_MS_COMPLIANT") == "yes";
[Test]
public void TestRead ()
@@ -537,6 +538,7 @@ namespace MonoTests.System.Xml
}
[Test]
[Ignore (".NET fails as well as referencesource")]
public void TestResolveUri ()
{
XmlSchemaSet schemaSet = new XmlSchemaSet ();
@@ -583,6 +585,7 @@ namespace MonoTests.System.Xml
}
[Test]
[Ignore (".NET fails as well as referencesource")]
public void TestImportSchemaThatIncludesAnother ()
{
XmlSchema xs = GetSchema ("Test/XmlFiles/xsd/importNamespaceTest2.xsd");
@@ -75,6 +75,7 @@ namespace MonoTests.System.Xml.Serialization.Advanced
[Test]
[Category ("NotDotNet")] // NRE happens there.
[Ignore ("Microsoft referencesource fails")]
[ExpectedException (typeof (ArgumentNullException))]
public void AddTypeNull ()
{
@@ -2053,7 +2053,7 @@ namespace MonoTests.System.XmlSerialization
writer.Close ();
Assert.AreEqual (@"<?xml version=""1.0"" encoding=""utf-16""?>
<Bug594490Class xmlns:xsi=""http://www.w3.org/2001/XMLSchema-instance"" xmlns:xsd=""http://www.w3.org/2001/XMLSchema"" xml:lang=""hello world"" />",
<Bug594490Class xmlns:xsd=""http://www.w3.org/2001/XMLSchema"" xmlns:xsi=""http://www.w3.org/2001/XMLSchema-instance"" xml:lang=""hello world"" />",
writer.ToString (),
"Novell bug #594490 (https://bugzilla.novell.com/show_bug.cgi?id=594490) not fixed.");
}
@@ -736,7 +736,7 @@ namespace MonoTests.System.XmlSerialization
SerializeEncoded (f, typeof (Field_Encoded));
Assert.AreEqual (string.Format (CultureInfo.InvariantCulture,
"<?xml version='1.0' encoding='utf-16'?>" +
"<q1:field xmlns:xsi='{1}' xmlns:xsd='{0}' id='id1' flag1=''" +
"<q1:field xmlns:xsd='{0}' xmlns:xsi='{1}' id='id1' flag1=''" +
" flag2='' flag3='' flag4='' modifiers='PuBlIc'" +
" modifiers2='PuBlIc' modifiers4='PuBlIc' xmlns:q1='some:urn' />",
XmlSchema.Namespace, XmlSchema.InstanceNamespace),
@@ -753,7 +753,7 @@ namespace MonoTests.System.XmlSerialization
SerializeEncoded (f, typeof (Field_Encoded));
Assert.AreEqual (string.Format (CultureInfo.InvariantCulture,
"<?xml version='1.0' encoding='utf-16'?>" +
"<q1:field xmlns:xsi='{1}' xmlns:xsd='{0}' id='id1' flag3='two'" +
"<q1:field xmlns:xsd='{0}' xmlns:xsi='{1}' id='id1' flag3='two'" +
" flag4='' modifiers='Protected' modifiers2='PuBlIc'" +
" xmlns:q1='some:urn' />",
XmlSchema.Namespace, XmlSchema.InstanceNamespace),
@@ -770,7 +770,7 @@ namespace MonoTests.System.XmlSerialization
SerializeEncoded (f, typeof (Field_Encoded));
Assert.AreEqual (string.Format (CultureInfo.InvariantCulture,
"<?xml version='1.0' encoding='utf-16'?>" +
"<q1:field xmlns:xsi='{1}' xmlns:xsd='{0}' id='id1' flag1='two'" +
"<q1:field xmlns:xsd='{0}' xmlns:xsi='{1}' id='id1' flag1='two'" +
" flag2='two' flag4='' modifiers='PuBlIc' modifiers2='Protected'" +
" modifiers3='Protected' modifiers4='PuBlIc' modifiers5='Protected'" +
" xmlns:q1='some:urn' />",
@@ -976,7 +976,7 @@ namespace MonoTests.System.XmlSerialization
Serialize (optionalValue);
Assert.AreEqual (string.Format (CultureInfo.InvariantCulture,
"<?xml version='1.0' encoding='utf-16'?>" +
"<optionalValue xmlns:xsi='{1}' xmlns:xsd='{0}' xmlns='{2}' />",
"<optionalValue xmlns:xsd='{0}' xmlns:xsi='{1}' xmlns='{2}' />",
XmlSchema.Namespace, XmlSchema.InstanceNamespace, AnotherNamespace),
sw.ToString (), "#1");
@@ -990,7 +990,7 @@ namespace MonoTests.System.XmlSerialization
Serialize (optionalValue, overrides);
Assert.AreEqual (string.Format (CultureInfo.InvariantCulture,
"<?xml version='1.0' encoding='utf-16'?>" +
"<optionalValue xmlns:xsi='{1}' xmlns:xsd='{0}' xmlns='{2}'>" +
"<optionalValue xmlns:xsd='{0}' xmlns:xsi='{1}' xmlns='{2}'>" +
"<Attributes xmlns='{3}'>one four</Attributes>" +
"</optionalValue>", XmlSchema.Namespace, XmlSchema.InstanceNamespace,
AnotherNamespace, ANamespace), sw.ToString (), "#2");
@@ -999,7 +999,7 @@ namespace MonoTests.System.XmlSerialization
Serialize (optionalValue, overrides);
Assert.AreEqual (string.Format (CultureInfo.InvariantCulture,
"<?xml version='1.0' encoding='utf-16'?>" +
"<optionalValue xmlns:xsi='{1}' xmlns:xsd='{0}' xmlns='{2}'>" +
"<optionalValue xmlns:xsd='{0}' xmlns:xsi='{1}' xmlns='{2}'>" +
"<Attributes xmlns='{3}'>one four</Attributes>" +
"<Flags xmlns='{3}'>one</Flags>" +
"</optionalValue>",
@@ -772,6 +772,7 @@ namespace MonoTests.System.Xml.XPath
}
[Test]
[Ignore ("Microsoft reference source causes InvalidOperationException")]
public void WriteAttributeOnAppendedChild ()
{
XmlDocument x = new XmlDocument ();
@@ -341,6 +341,7 @@ namespace MonoTests.System.Xml.XPath
[Test]
[Category ("NotDotNet")] // MS bug
[Ignore ("Bug in Microsoft reference source")]
public void AttributesAndNamespaces ()
{
string xml = "<root attr='value' x:a2='v2' xmlns:x='urn:foo' xmlns='urn:default'></root>";
@@ -591,6 +591,11 @@ namespace MonoTests.System.Xml
Assert.AreEqual ("val1", iter.Current.InnerXml, "#1");
}
string AlterNewLine (string s)
{
return s.Replace ("\r\n", Environment.NewLine);
}
[Test]
public void InnerXmlTextEscape ()
{
@@ -599,16 +604,17 @@ namespace MonoTests.System.Xml
XPathNavigator nav = doc.CreateNavigator ();
XPathNodeIterator iter = nav.Select ("/Abc/Foo");
iter.MoveNext ();
Assert.AreEqual ("Hello&lt;\r\nInnerXml", iter.Current.InnerXml, "#1");
Assert.AreEqual ("<Foo>Hello&lt;\r\nInnerXml</Foo>", iter.Current.OuterXml, "#2");
Assert.AreEqual (AlterNewLine ("Hello&lt;\r\nInnerXml"), iter.Current.InnerXml, "#1");
Assert.AreEqual (AlterNewLine ("<Foo>Hello&lt;\r\nInnerXml</Foo>"), iter.Current.OuterXml, "#2");
iter = nav.Select ("/Abc/Foo/text()");
iter.MoveNext ();
Assert.AreEqual (String.Empty, iter.Current.InnerXml, "#3");
Assert.AreEqual ("Hello&lt;\r\nInnerXml", iter.Current.OuterXml, "#4");
Assert.AreEqual (AlterNewLine ("Hello&lt;\r\nInnerXml"), iter.Current.OuterXml, "#4");
}
[Test]
[Category ("NotDotNet")] // .NET bug; it should escape value
[Ignore ("Bug in Microsoft reference source")]
public void InnerXmlAttributeEscape ()
{
StringReader sr = new StringReader ("<Abc><Foo attr='val&quot;1&#13;&#10;&gt;'/></Abc>");
@@ -21,6 +21,8 @@ namespace MonoTests.System.Xml.Xsl
[TestFixture]
public class XslTransformTests
{
static readonly string end_of_line = "\r\n";
XmlDocument doc;
XslTransform xslt;
XmlDocument result;
@@ -150,11 +152,6 @@ xmlns:xsl='http://www.w3.org/1999/XSL/Transform' xmlns:msxsl='urn:schemas-micros
}
[Test]
[Category ("NotDotNet")]
// Actually MS.NET here throws XsltException, but Mono returns
// XPathException (since XPath evaluation engine generally
// catches (should catch) static error. It is implementation
// dependent matter.
[ExpectedException (typeof (XPathException))]
public void MSXslNodeSetRejectsNodeSet ()
{
@@ -415,7 +412,7 @@ xmlns:xsl='http://www.w3.org/1999/XSL/Transform' xmlns:msxsl='urn:schemas-micros
// http://support.microsoft.com/default.aspx?scid=kb;en-us;834667
[Test]
[Category ("NotDotNet")]
//[Category ("NotDotNet")]
public void LocalParameter ()
{
string xsltFragment = @"<?xml version=""1.0"" encoding=""UTF-8"" ?>
@@ -999,7 +996,7 @@ xmlns:xsl='http://www.w3.org/1999/XSL/Transform' xmlns:msxsl='urn:schemas-micros
" <something>{0}" +
" <else />{0}" +
" </something>{0}" +
"</test>", Environment.NewLine), sw.ToString (), "#1");
"</test>", end_of_line), sw.ToString (), "#1");
// set indent to no
sw.GetStringBuilder ().Length = 0;
@@ -1134,7 +1131,7 @@ xmlns:xsl='http://www.w3.org/1999/XSL/Transform' xmlns:msxsl='urn:schemas-micros
" <something>{0}" +
" <else />{0}" +
" </something>{0}" +
"</test>", Environment.NewLine), sw.ToString (), "#1");
"</test>", end_of_line), sw.ToString (), "#1");
// set indent to no
sw.GetStringBuilder ().Length = 0;
@@ -1585,7 +1582,7 @@ xmlns:xsl='http://www.w3.org/1999/XSL/Transform' xmlns:msxsl='urn:schemas-micros
"{1}<Body>{0}" +
"{1}{1}<BR>{0}" +
"{1}</Body>{0}" +
"</html>", Environment.NewLine, " "), sw.ToString (), "#1");
"</html>", end_of_line, " "), sw.ToString (), "#1");
// indent no, media-type not set
options = "indent=\"no\"";
@@ -1624,7 +1621,7 @@ xmlns:xsl='http://www.w3.org/1999/XSL/Transform' xmlns:msxsl='urn:schemas-micros
"{1}<Body>{0}" +
"{1}{1}<BR>{0}" +
"{1}</Body>{0}" +
"</html>", Environment.NewLine, " "), sw.ToString (), "#3");
"</html>", end_of_line, " "), sw.ToString (), "#3");
}
[Test]
@@ -1674,7 +1671,7 @@ xmlns:xsl='http://www.w3.org/1999/XSL/Transform' xmlns:msxsl='urn:schemas-micros
"{1}<Body>{0}" +
"{1}{1}<BR>{0}" +
"{1}</Body>{0}" +
"</html>", Environment.NewLine, " "), result, "#1");
"</html>", end_of_line, " "), result, "#1");
// indent no, media-type not set
options = "indent=\"no\"";
@@ -1721,7 +1718,7 @@ xmlns:xsl='http://www.w3.org/1999/XSL/Transform' xmlns:msxsl='urn:schemas-micros
"{1}<Body>{0}" +
"{1}{1}<BR>{0}" +
"{1}</Body>{0}" +
"</html>", Environment.NewLine, " "), result, "#3");
"</html>", end_of_line, " "), result, "#3");
}
[Test]
@@ -1808,7 +1805,7 @@ xmlns:xsl='http://www.w3.org/1999/XSL/Transform' xmlns:msxsl='urn:schemas-micros
" <tr>{0}" +
" <td>1,000</td>{0}" +
" </tr>{0}" +
"</table>", Environment.NewLine), sw.ToString ());
"</table>", end_of_line), sw.ToString ());
}
// http://support.microsoft.com/kb/293469/en-us
@@ -1845,7 +1842,7 @@ xmlns:xsl='http://www.w3.org/1999/XSL/Transform' xmlns:msxsl='urn:schemas-micros
"<?xml version=\"1.0\" encoding=\"utf-16\"?>{0}" +
"<html>{0}" +
" <body>44.442,70</body>{0}" +
"</html>", Environment.NewLine), sw.ToString ());
"</html>", end_of_line), sw.ToString ());
}
[Test]
@@ -2330,7 +2327,7 @@ NO
</l0>
</root>")), null, sw);
// Assert.AreEqual (@"<y><t yes-one-node="""">1</t><t not-node=""""></t></y>", sw.ToString ());
Assert.AreEqual ("\r\n \r\n <y><t yes-one-node=\"\">1</t><t not-node=\"\"></t></y>\r\n \r\n", sw.ToString ());
Assert.AreEqual ("\r\n \r\n <y><t yes-one-node=\"\">1</t><t not-node=\"\"></t></y>\r\n \r\n".Replace ("\r\n", Environment.NewLine), sw.ToString ());
}
[Test]
@@ -2364,6 +2361,7 @@ NO
}
[Test]
[Category ("NotWorking")] // FIXME: SRE related regression
public void Bug487065 ()
{
using (XmlReader input = GetInput ()) {
@@ -36,7 +36,7 @@ using System.Security.Permissions;
using System.Security.Policy;
using System.Xml.Xsl;
namespace MonoCasTests.System.Xml.Xsl
namespace MonoTests.System.Xml.Xsl
{
[TestFixture]
public class XsltCompileExceptionTests {
@@ -194,6 +194,7 @@ namespace MonoTests.System.Xml
[Test]
[Category ("NotDotNet")] // enbug
[Ignore ("bug in Microsoft sources")]
public void RemoveDefaultAttribute ()
{
string dtd = "<!DOCTYPE root [<!ELEMENT root EMPTY><!ATTLIST root attr CDATA 'default'>]>";
@@ -87,6 +87,7 @@ namespace MonoTests.System.Xml
[Test]
[Category ("NotDotNet")] // enbug in 2.0
[Ignore ("bug in Microsoft sources")]
public void InsertData ()
{
comment.Value = "foobaz";
@@ -128,6 +129,7 @@ namespace MonoTests.System.Xml
[Test]
[Category ("NotDotNet")] // enbug in 2.0
[Ignore ("bug in Microsoft sources")]
public void ReplaceData ()
{
changed = false;
@@ -71,7 +71,6 @@ namespace MonoTests.System.Xml
}
[Test]
[ExpectedException (typeof (XmlException))]
public void EncodeNmTokenError ()
{
XmlConvert.EncodeNmToken (String.Empty);
@@ -225,8 +225,10 @@ namespace MonoTests.System.Xml
node = document.CreateNode("documentfragment", null, null);
Assert.AreEqual (XmlNodeType.DocumentFragment, node.NodeType);
node = document.CreateNode("documenttype", null, null);
Assert.AreEqual (XmlNodeType.DocumentType, node.NodeType);
try {
node = document.CreateNode("documenttype", null, null);
Assert.Fail ("Expected an ArgumentNullException to be thrown.");
} catch (ArgumentNullException) {}
node = document.CreateNode("element", "foo", null);
Assert.AreEqual (XmlNodeType.Element, node.NodeType);
@@ -243,7 +243,6 @@ namespace MonoTests.System.Xml
XmlNamespaceScope a = XmlNamespaceScope.All;
[Test]
[Category ("NotDotNet")] // MS bug
public void GetNamespacesInScope ()
{
XmlNamespaceManager nsmgr =
@@ -279,7 +278,7 @@ namespace MonoTests.System.Xml
nsmgr.AddNamespace ("", "");
// MS bug - it should return 1 for .Local but it returns 2 instead.
Assert.AreEqual (1, nsmgr.GetNamespacesInScope (l).Count, "#16");
//Assert.AreEqual (1, nsmgr.GetNamespacesInScope (l).Count, "#16");
Assert.AreEqual (1, nsmgr.GetNamespacesInScope (x).Count, "#17");
Assert.AreEqual (2, nsmgr.GetNamespacesInScope (a).Count, "#18");
}
@@ -36,8 +36,8 @@ namespace MonoTests.System.Xml
XmlNodeReader nrdr;
try {
nrdr = new XmlNodeReader (null);
Assert.Fail ("null reference exception is preferable.");
} catch (NullReferenceException) {
Assert.Fail ("ArgumentNullException is expected.");
} catch (ArgumentNullException) {
}
nrdr = new XmlNodeReader (new XmlDocument ());
nrdr.Read ();
@@ -195,7 +195,7 @@ namespace MonoTests.System.Xml
document.LoadXml ("<ul test='xxx'></ul>");
XmlNodeReader nr = new XmlNodeReader (document);
nr.Read ();
nr.Read ();
//nr.Read (); // why twice?
Assert.IsTrue (nr.MoveToFirstAttribute (), "#1");
Assert.IsTrue (nr.ReadAttributeValue (), "#2");
Assert.IsFalse (nr.MoveToNextAttribute (), "#3");
@@ -1346,6 +1346,7 @@ namespace MonoTests.System.Xml
[Test]
[Category ("NotDotNet")]
[Ignore ("Bug in Microsoft referencesource")]
public void IndexerAndAttributes ()
{
string xml = @"<?xml version='1.0' standalone='no'?><foo _1='1' _2='2' _3='3' />";
@@ -2244,7 +2245,7 @@ namespace MonoTests.System.Xml
Assert.AreEqual (XmlNodeType.Text, reader.NodeType, "#2");
bytesRead = reader.ReadElementContentAsBase64 (fixedSizeBuffer, 0, fixedSizeBuffer.Length);
Assert.AreEqual (0, bytesRead, "#3");
Assert.AreEqual (XmlNodeType.EndElement, reader.NodeType, "#4");
Assert.AreEqual (XmlNodeType.None, reader.NodeType, "#4");
}
[Test]
@@ -421,7 +421,7 @@ namespace MonoTests.System.Xml
#if NET_4_5
[Test]
[ExpectedException (typeof (InvalidOperationException))]
[ExpectedException (typeof (XmlException))]
public void ReadonlyAsync ()
{
var s = new XmlReaderSettings ();
@@ -58,6 +58,7 @@ namespace MonoTests.System.Xml
}
[Test]
[Ignore ("This test doesn't work for referencesource anymore.")]
public void CreateEvidenceForUrl_Local ()
{
// "normal" path
@@ -92,6 +93,7 @@ namespace MonoTests.System.Xml
}
[Test]
[Ignore ("This test doesn't work for referencesource anymore.")]
public void CreateEvidenceForUrl_Http ()
{
// http://
@@ -1211,6 +1211,7 @@ namespace MonoTests.System.Xml
}
[Test]
[Ignore ("bug in Microsoft referencesource")]
public void WhitespacesAfterTextDeclaration ()
{
XmlTextReader xtr = new XmlTextReader (
@@ -1517,14 +1517,14 @@ namespace MonoTests.System.Xml
}
[Test]
[ExpectedException (typeof (ArgumentException))]
//[ExpectedException (typeof (ArgumentException))]
public void WriteWhitespace_Null ()
{
xtw.WriteWhitespace ((string) null);
}
[Test]
[ExpectedException (typeof (ArgumentException))]
//[ExpectedException (typeof (ArgumentException))]
public void WriteWhitespace_Empty ()
{
xtw.WriteWhitespace (string.Empty);
@@ -36,7 +36,6 @@ namespace MonoTests.System.Xml
}
[Test]
[Category ("NotDotNet")]
public void FileUri2 ()
{
Assert.AreEqual (resolver.ResolveUri (new Uri ("file://usr/local/src"), null).ToString (), "file://usr/local/src");
@@ -74,7 +73,7 @@ namespace MonoTests.System.Xml
}
[Test]
[ExpectedException (typeof (ArgumentException))]
[ExpectedException (typeof (InvalidOperationException))]
public void GetEntityWithRelativeFileUri ()
{
resolver.GetEntity (new Uri ("file.txt", UriKind.Relative), null, typeof (Stream));
@@ -36,7 +36,7 @@ namespace MonoTests.System.Xml
Assert.AreEqual (Encoding.UTF8, s.Encoding);
Assert.AreEqual (false, s.Indent);
Assert.AreEqual (" ", s.IndentChars);
Assert.AreEqual ("\r\n", s.NewLineChars);
Assert.AreEqual (Environment.NewLine, s.NewLineChars);
Assert.AreEqual (false, s.NewLineOnAttributes);
Assert.AreEqual (false, s.OmitXmlDeclaration);
Assert.AreEqual (NewLineHandling.Replace, s.NewLineHandling);
@@ -383,7 +383,7 @@ namespace MonoTests.System.Xml
#if NET_4_5
[Test]
[ExpectedException (typeof (InvalidOperationException))]
[ExpectedException (typeof (XmlException))]
public void ReadonlyAsync ()
{
var sw = new StringWriter ();
@@ -111,6 +111,7 @@ namespace MonoTests.System.Xml
[Test]
[Category ("NotDotNet")] // enbugged in 2.0
[Ignore ("Bug in Microsoft referencesource")]
[ExpectedException (typeof (XmlException))]
public void WriteNodeError ()
{
@@ -375,7 +376,7 @@ namespace MonoTests.System.Xml
}
[Test]
[ExpectedException (typeof (XmlException))]
[ExpectedException (typeof (ArgumentException))]
public void CreateWriter_AttributeNamespacesXmlnsXmlns ()
{
// Unlike XmlTextWriter, null namespace is not ignored.
@@ -44,9 +44,7 @@ namespace MonoTests.System.Xml
}
[Test]
[Category ("NotDotNet")]
// MS.NET throws XmlSchemaException, not -ValidationException.
[ExpectedException (typeof (ValidationException))]
[ExpectedException (typeof (XmlSchemaException))]
public void ValidateRootElementOnlyInvalid ()
{
PrepareReader1 ("1.xsd", "<invalid xmlns='urn:foo' />");
@@ -322,11 +322,10 @@ namespace MonoTests.System.Xml
}
[Test] // bug #79650
// annoyance
[ExpectedException (typeof (XmlSchemaValidationException))]
[ExpectedException (typeof (XmlSchemaException))]
public void EnumerationFacetOnAttribute ()
{
string xml = "<test mode='NOT A ENUMERATION VALUE' />";
string xml = "<test mode='NOT AN ENUMERATION VALUE' />";
XmlSchema schema = XmlSchema.Read (new XmlTextReader ("Test/XmlFiles/xsd/79650.xsd"), null);
XmlValidatingReader xvr = new XmlValidatingReader (xml, XmlNodeType.Document, null);
xvr.ValidationType = ValidationType.Schema;
@@ -324,7 +324,7 @@ namespace nist_dom.fundamental
//----------------------------------------------------------------------------
[Test]
[Category ("NotDotNet")]
[Ignore(".NET DOM implementation does not match W3C DOM specification.")]
public void core0006A()
{
string computedValue = "";
@@ -760,7 +760,7 @@ namespace nist_dom.fundamental
//----------------------------------------------------------------------------
[Test]
[Category ("NotDotNet")] // MS DOM is buggy
[Ignore(".NET DOM implementation does not match W3C DOM specification.")] // MS DOM is buggy
public void core0014A()
{
string computedValue = "";
Loaded 100 of 351 files, more files were not shown because too many files have changed in this diff. Show more