* Expression.cs : don't expect namespace resolver; namespace could be
supplied in QName without nsresolver need (i.e. SelectChildren()).
Fixed bug #75609.
* XPathNavigatorCommonTests.cs : added test for bug #75609
svn path=/trunk/mcs/; revision=47573
* System.Xml.dll.sources : XPathAtomicValue.cs -> XmlAtomicValue.cs.
* XmlAtomicValue.cs : moved from XPathAtomicValue, removed some stuff.
* SubtreeXmlReader.cs :
removed atomizedName related 2.0 member (deprecated).
* XPathAtomicValue.cs :
it is now XmlAtomicValue and in sys.xml.schema.
* XPathNavigator.cs, Expression.cs :
removed atomizedName related 2.0 members (deprecated).
* XsdValidatingReader.cs :
removed atomicName related 2.0 members (deprecated in beta2).
* XmlNodeReader2.cs, XmlTextReader2.cs, XmlValidatingReader.cs,
XmlNamespaceManager.cs, IXmlNamespaceResolver.cs,
DTDValidatingReader.cs : Removed most of "atomizedName" related
stuff that are obsoleted in 2.0 beta2.
* XQueryConvert.cs : XPathAtomicValue -> XmlAtomicValue.
* XmlNamespaceManagerTests.cs : removed atomizedName related tests.
svn path=/trunk/mcs/; revision=44083
* Expression.cs : In ExprSLASH2, replace A//B with A/descendant::B if
B is child axis test (thus peer&subtree optimization became possible)
Fixed warning (incorrect variable let).
svn path=/trunk/mcs/; revision=42247
* Expression.cs : EvaluateBoolean() for RTF should check return true
for empty elements. Fixed static analysis for RTF.
* XslTransformTests.cs : added test 1)that examines pattern sanity and
2)that examines if empty element RTF is evaluated as true for bool.
--his line, and those below, will be ignored--
M System.Xml.XPath/ChangeLog
M System.Xml.XPath/Expression.cs
M Test/System.Xml.Xsl/ChangeLog
M Test/System.Xml.Xsl/XslTransformTests.cs
M Test/System.Xml.Xsl/standalone_tests/Makefile
svn path=/trunk/mcs/; revision=42118
* Makefile : now it creates XSLT pattern parser files from
Parser.jay and Tokenizer.cs in System.Xml.XPath.
* Parser.jay, Tokenizer.cs : Now they are used as common code base for
XPath parser and XSLT pattern parser. Makefile now creates two
set of sources of them. (This change takes effect on the next change).
svn path=/trunk/mcs/; revision=42062
* DefaultContext.cs,
Expression.cs,
Iterator.cs : Now RequireSorting is not required in BaseIterator
(it is now fully in Expression).
Removed the last ListIterator .ctor() argument.
* XslKey.cs : removed last ListIterator.ctor() argument.
Reverted the last commit that changed internal key index change
from ArrayList to Hashtable. Avoid clone in CollectIndex().
Sort results in Evaluate() before passing list to ListIterator.
* XslFunctions.cs : removed last ListIterator.ctor() argument.
* XslVariable.cs : removed last ListIterator.ctor() argument.
svn path=/trunk/mcs/; revision=41864
* 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