* DefaultContext.cs : do not use sloppy XmlConvert to parse xpath
number. Fixed bug #556619.
* XslTransformTests.cs : added test for bug #556619 by
Tor Lillqvist.
svn path=/trunk/mcs/; revision=146613
* Expression.cs : to support external function that returns non-
double (such as int) as number, add conversion from non-double at
evaluation. This should fix bug #498389.
svn path=/trunk/mcs/; revision=141965
* XPathNavigator.cs : name test did not handle String.Empty cases
for name and ns (i.e. no filter). Fixed bug #515136.
* XPathNavigatorTests.cs : added test for bug #515136.
svn path=/trunk/mcs/; revision=138384
* Expression.cs: improve the ExpressionCache, it still does not
work, but it will at least work better with multithreaded apps (we
take locks) and we use WeakReferences correctly.
For WeakReferences it is important to not depend on IsAlive to
retrieve the target (this is a documented race). IsAlive is only
useful to determine if it has already been collected, but if true,
the Target can still be released.
This race condition is exposed by #505678 on x86-64 platforms (only).
Sadly, this fix is not good enough to re-enable the cache, on
x86-64 this with a single thread, it still crashes randomly
svn path=/trunk/mcs/; revision=135815
* Expression.cs : gave up another optimization for bug #443090.
* SelectNodesTests.cs : added 2nd test for bug #443490.
svn path=/trunk/mcs/; revision=129574
* XPathExpression.cs : eliminate use of ExpressionCache and lose
significant performance in some use for the sake of multithreaded
use. Fixed bug #477049.
svn path=/trunk/mcs/; revision=129545
* Iterator.cs : DescendantIterator.Clone() was not cloning current
node in new code. Fixed bug #456103.
* XPathNavigatorTests.cs : added test fo bug #456103.
svn path=/trunk/mcs/; revision=121080
* XPathNavigator.cs : made some 2.0-only methods available in 1.x
so that we don't have to hesitate to optimize xpath using them.
svn path=/trunk/mcs/; revision=113491
* XPathNavigator.cs : fixed InnerXml to not give up with root node.
Indent InnerXml. Fixed bug #376191.
* XPathNavigatorTests.cs : added test for bug #376191.
svn path=/trunk/mcs/; revision=99623
* XPathNavigator.cs : in some MoveTo*() methods, it should allow any
destination node when "type" is XPathNodeType.All. Based on the
patch by Sanghyeon Seo, fixed bug #365112.
* XPathNavigatorTests.cs : added test for bug #365112.
svn path=/trunk/mcs/; revision=96753
* DefaultContext.cs : now number formatting for "R" works fine, so
just use it (and remove conditional compilation for TARGET_JVM).
svn path=/trunk/mcs/; revision=95479
* Iterator.cs : be more strict to detect the end of
PredicateIterator. Fixed bug #349111.
* XslTransformTests.cs : added test for bug #349111.
svn path=/trunk/mcs/; revision=91405
* Expression.cs : In any comparison expr, treat RTF as equivalent to
string type (as specified in XSLT 1.0 section 11.1: "An operation
is permitted on a result tree fragment only if that operation would
be permitted on a string." ...). Fixed bug #349035.
* XslTransformTests.cs : added test for bug #349035.
svn path=/trunk/mcs/; revision=91402
* Expression.cs : text() should match whitespace and significant
whitespace nodes.
* XPathNavigatorTests.cs : added test for text() and whitespace/
significantwhitespace node.
svn path=/trunk/mcs/; revision=70536
* XPathNavigator.cs :
- ReadSubtree() should reject everything but Element or Root.
- InnerXml and OuterXml should not use ReadSubtree() when it is
not positioned on an Element or the Root. Thus, implement them
in their own ways. Fixed bug #79875.
* XPathNavigatorTests.cs : added test for bug #79875, and some
"escaped" text tests for InnerXml.
* XPathNavigatorReaderTests.cs : make sure that most of XPath nodes
are rejected to read subtree.
svn path=/trunk/mcs/; revision=67659
* XPathNavigator.cs : InnerXml should allow Text-only content. Fixed
bug #79874, when tied to XPathNavigatorReader fix.
* XPathNavigatorReader.cs : removed node type restriction on
initialization. Fixed bug #79874, when tied to XPathNavigator fix.
* XPathNavigatorTests.cs : added test for bug #79874.
svn path=/trunk/mcs/; revision=67653
* XPathNavigatorCommonTests.cs : added test for bug #78067.
* XPathNavigatorReaderTests.cs : ditto, for ReadSubtree() part.
* XPathNavigatorReader.cs : Read() did not compute Depth correctly.
It caused bug #78067.
* XPathNavigator.cs : get_OuterXml() returns indented output, without
XML declaration.
* XmlWriter.cs : WriteNode(XPathNavigator) : directly write element
and root nodes instead of dispatching to ReadSubtree().
svn path=/trunk/mcs/; revision=59286
* XslTransformProcessor.cs,
Compiler.cs : eliminate ExpressionStore. Now sorting is done
inside XslSortEvaluator.
* XslSortEvaluator.cs : new file. It handles current node in XSLT
context. Fixed bug #77781.
* Expression.cs : extracted XPathSortElement, XPathSorters
and XPathSorter from CompiledExpression, and split
XPathSorters.Sort() into some methods. Those changes are to make
them reusable in XslSortEvaluator.
* System.Xml.dll.sources : added XslSortEvaluator.cs.
* knownFailures.txt : removed two xsl:sort+current() tests.
svn path=/trunk/mcs/; revision=58015
* Iterator.cs : seems like MS XPathNodeIterator.MoveNext() itself does
not handle XsltContext.PreserveWhitespace() unlike ours. It results
in not a small performance improvement. (just removed it since it
didn't cause any errors in XSLT standalone tests.)
svn path=/trunk/mcs/; revision=57298
* Iterator.cs : Nowadays removal of cloning of the argument list
in ListIterator is safe. Thanks to Joshua Tauberer for the hint.
svn path=/trunk/mcs/; revision=55394
* Iterator.cs : (DescendantOrSelfIterator/DescendantIterator)
the error message is for blaming custom XPathNavigator
implementation, not us ;-) (see also #77194)
svn path=/trunk/mcs/; revision=55389
* XmlWriter.cs : In WriteNode(XPathNavigator, bool), Avoid
ReadSubtree() for non-element content since they are not allowed
in ReadSubtree() (but allowed here).
* XPathNavigator.cs : use WriteNode(XPathNavigator, bool)
rather than WriteNode(XmlWriter, bool) in WriteSubtree().
* XmlWriterTests.cs : added tests for WriteNode(XPathNavigator, bool)
as well as XPathNavigator.WriteSubtree(XmlWriter).
svn path=/trunk/mcs/; revision=55143
* XPathNavigator.cs : Added MonoTODO to CreateAttributes(). Removed
MonoTODO from ReadSubtree().
* XPathNavigatorReaderTests.cs : Actually AttributesAndNamespaces()
does not work under MS.NET.
svn path=/trunk/mcs/; revision=54366
* XPathNavigator.cs : Reimplemented MoveToFollowing() to avoid
inefficient MoveToDescendant() and to match .NET 2.0 behavior.
* XPathEditableNavigatorTests.cs : added tests for MoveToFollowing().
svn path=/trunk/mcs/; revision=54296
* XPathNavigator.cs : PrependChild() should use AppendChild() when
there is no child.
* XPathEditableNavigatorTests.cs : added tests for PrependChild().
svn path=/trunk/mcs/; revision=54277
* XPathEditableDocument.cs :
- Now it does not append "written" nodes until Close() is invoked.
- Use XmlDocumentFragment to store incomplete tree fragment.
- Implemented DeleteRange() and ReplaceRange().
- Added "Closed" event for ReplaceRange() to "not remove until
Close() is called."
* XPathNavigator.cs : InsertAfter() should raise an error before
MoveToNext() when current node is either attribute or namespace.
* XPathEditableNavigatorTests.cs :
Added more tests for InsertAfter() and InsertBefore().
Added tests for DeleteRange() and ReplaceRange().
svn path=/trunk/mcs/; revision=54276
* XPathNavigator.cs : InsertAfter() should append children after it
once moved to parent. This method shoulr raise an error when it is
placed on Root.
* XPathEditableDocument.cs :
- Removed almost all redundant code in XPathEditableDocument,
which is based on .net 1.2 XPathDocument functionality.
- It was always doing AppendChild even if the operation is
InsertBefore or InsertAfter.
* XPathEditableNavigatorTests.cs : added tests for InsertAfter and
InsertBefore.
svn path=/trunk/mcs/; revision=54272
* XPathNavigator.cs : (CreateFragmentReader) return XmlReader that
considers current namespace contexts.
* XPathEditableNavigatorTests.cs : new file for testing all editor
functionality in XPathNavigator.
* System.Xml_test.dll.sources: Added XPathEditableNavigatorTests.cs.
svn path=/trunk/mcs/; revision=54270
* XmlReader.cs, XmlNode.cs :
[DebuggerDisplay] are not worthy of existing.
* XPathNavigator.cs, XPathNodeIterator.cs :
[DebuggerDisplay] are not worthy of existing.
svn path=/trunk/mcs/; revision=52880