* 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
* 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