* Expression.cs,
Iterator.cs, :
SlashIterator is now constructed with requireSorting parameter
that thus just use RequireSorting from both left/right Expressions,
not iterators.
When attribute axis is on the left expression, the result needs to
be sorted.
svn path=/trunk/mcs/; revision=41614
* XslVariable.cs : clone stored XPathNavigator items before storing.
* XslAttribute.cs : tiny code reduction.
* Iterator.cs : Now for most of iterator types, Current property always
returns the same instance. It results in huge memory reduction.
svn path=/trunk/mcs/; revision=41591
* Iterator.cs : (SlashIterator.MoveNext()) For SortedList.Add(), the
key should be iterator itself. Key by list count never makes sense.
svn path=/trunk/mcs/; revision=41556
* Iterator.cs :
In FollowingIterator, attribute and namespace nodes should be
considered to have following nodes. See XPath 1.0 section 5 (esp.
the description on "document order").
On fixing @*/following::*, attribute nodes are regarded as to be
RequireSorting = true (which might result in duplicate).
svn path=/trunk/mcs/; revision=41074
* Expression.cs : string() function expects "Infinity" and "-Infinity"
instead of "INF" for conversion from number. XmlConvert is for XSD,
not for XSLT.
svn path=/trunk/mcs/; revision=40845
* Expression.cs : RelationalExpr was comparing number and node in
reverse order. Patch by Kazuki Oikawa. Fixed bug #72343.
RelationalExpr should also handle result tree fragment as node-set
as well as EqualityExpr. This fixes RTF case wrt #72343.
svn path=/trunk/mcs/; revision=40326
* XPathDocument.cs : switch to DTMXPathNavigator2 which fully
eliminated string fields from struct.
(When we switch from struct to class, revert this change to use
DTMXPathNavigator, since class-based DTMXPathNavigator2 is rather
wasting processing speed.)
svn path=/trunk/mcs/; revision=37086
* Iterator.cs : when PredicateIterator has a numeric predicate, it
will never be true twice. So just break up the iteration on true.
* XPathNavigator.cs : implemented LookupPrefix().
* Expression.cs : ExprParens.Optimize() could just return the content
expression.
svn path=/trunk/mcs/; revision=36944
* Iterator.cs : Create _current clone only when required. So just set
null when MoveNextCore() succeeded (except for some cases that
_current is _nav, such as SelfIterator).
svn path=/trunk/mcs/; revision=36879
* Iterator.cs : SlashIterator.RequireSorting is always false. Whether
it has to collect nodes in prior or not and whether it might return
nodes in inconsistent order is different matter.
(It still needs to store nodes when either of branches requires
sorting, because they might return the same node later.)
svn path=/trunk/mcs/; revision=36850
* Iterator.cs : reduced some extraneous ComparePosition() that could
be written as IsSamePosition(). ParentIterator doesn't have to be
RequireSorting.
svn path=/trunk/mcs/; revision=36848
* Iterator.cs : reimplemented AncestorIterator and
AncestorOrSelfIterator just to collect parents and not to move to
siblings. In some cases like thousands of siblings, it used to be
so slow, while we usually don't have so deep ancestors.
svn path=/trunk/mcs/; revision=36847
* Expression.cs : warning removal. Added Optimize() which is not
implemented at all.
* Tokenizer.cs : warning elimination
svn path=/trunk/mcs/; revision=36597
* Tokenizer.cs : just use raw string instead of char[].
* XPathNavigator.cs : reuse NameTable when creating XmlTextReader.
svn path=/trunk/mcs/; revision=35810
* Iterator.cs :
- Made copy constructor certainly different from other constructors.
- Position is never computed in each derived type. All MoveNext() are
now MoveNextCore().
- Most of the protected members could just be private.
svn path=/trunk/mcs/; revision=35776
* Expression.cs, XPathNavigator.cs : hold raw expression field for
get_Expression. It is preparation for expression optimization.
svn path=/trunk/mcs/; revision=35767
* XPathDocument.cs : now all the new stuff that used to be in 2.0 are
reverted.
* XPathEditableNavigator.cs : It will be removed. Right now modified
a bit to pass build.
* XPathNavigator.cs : Added members that are merged from
XPathEditableNavigator. Updated members name.
svn path=/trunk/mcs/; revision=35264
* Iterator.cs :
- Added WrapperIterator to return BaseIterator in such case that
variable reference is resolved to XPathNodeIterator. This fixes
bug #68267.
- Path ".." is reverse axis (actually no effect).
- Fixed DescendantIterator.Clone() that missed "_finished" field.
* Expression.cs :
In ExprVariable.Evaluate(), use WrapperIterator() for custom
XPathNodeIterator.
svn path=/trunk/mcs/; revision=34996
* XPathAtomicValue.cs : missing Init() definition for float and string;
latter one resulted in infinite loop in Init(object,XmlSchemaType).
svn path=/trunk/mcs/; revision=34733
* XPathNavigator.cs : TypedValue could be implemented.
* XPathEditableNavigator.cs : removed some MonoTODO since now there
are implementations.
svn path=/trunk/mcs/; revision=34692
* XPathAtomicValue.cs : All .ctor() are separeted from Init().
In .ctor(object, XmlSchemaType):
- For lists that contains just one item, Init() recursively.
- For XPathAtomicValue, Init() recursively for its content fields.
For Value and TypedValue, consider typecode from XmlSchemaType.
svn path=/trunk/mcs/; revision=33790
* XPathEditableNavigator.cs :
AppendChild(xmlReader) ignored nodes after than first one, and
resulted in infinite loop.
Added get_OuterXml overrides. set_OuterXml should not move to
parent before deleting current.
svn path=/trunk/mcs/; revision=33414
* XPathAtomicValue.cs : Value was not returning expected value when
it is created as new XPathAtomicValue (object, XmlSchemaType).
Compute stringValue and reuse.
* XPathNavigator.cs : Temporarily stubbed as to ignore SchemaInfo
(for checking XQuery implementation).
svn path=/trunk/mcs/; revision=32826
* XPathAtomicValue.cs : Handle .ctor() with object parameter more
precisely (still not enough, for list argument).
Removed commended blocks.
svn path=/trunk/mcs/; revision=32811
* XPathAtomicValue.cs : DateTime should be convertible to string.
Use schemaType's TypeCode for .ctor() that takes object.
* XPathNavigator.cs : copied get_InnerXml from XPathEditableNavigator.
* XPathEditableNavigator.cs : set_InnerXml should be different (new)
property from get_InnerXml. Removed get_InnerXml and get_OuterXml
overrides.
svn path=/trunk/mcs/; revision=32756
* XPathDocument.cs :
- For .NET 2.0, added a switch to support new XPathDocument2.
If switch is off, then it uses DTM.
- Implemented remaining 2.0 bits (except for Obsolete ones).
To use them in XPathDocument, set environment MONO_XPATH_DOCUMENT_2=yes
(It is still too unstable to pass all nunit tests and standalone XSLT
tests).
svn path=/trunk/mcs/; revision=31724
* XPathDocument.cs : for .ctor() and .ctor(XmlNameTable), now it
creates Mono.Xml.XPath.XPathEditableDocument and thus supports
IXPathEditable.CreateEditor().
svn path=/trunk/mcs/; revision=31548
* XPathEditableNavigator.cs : Implemented InsertAfter() and
PrependChild(); they are virtual, not abstract.
* XPathNavigator.cs :
Implemented many 2.0 virtual properties and methods that were
abstract in 1.x.
Implemented some Select() methods that uses IXmlNamespaceResolver.
Implemented most of ValueAsXxx() using XQueryConvert.
IsNode is always true. Implemented OuterXml and WriteSubtree() (but
actually they don't work because it depends on ReadSubtree()).
svn path=/trunk/mcs/; revision=31542