Commit Graph
29 Commits
Author SHA1 Message Date
Atsushi Eno 66af161d92 2004-08-31 Atsushi Enomoto <[email protected]>
* XPath2Expression.cs,
	  XPathSequence.cs :
	  Implemented GroupExpr.Evaluate() [union/intersect/except].
	  Fixed incorrect iterator input for DescendantExpr.Evaluate().
	  MinusExpr is (already) implemented not to be evaluated.
	* XQueryExpression.cs :
	  PI name and nameExpr could be implemented.
	* XQueryFunction.cs :
	  UserFunctionCallExpr.Invoke() should not be invoked.
	* XQueryFunctionCliImpl.cs :
	  Implemented count(), doc(). Halfly implemented trace().
	* XmlQueryException.cs : Serializable.

svn path=/trunk/mcs/; revision=33111
2004-08-31 17:34:24 +00:00
Atsushi Eno ed26cfb28c 2004-08-31 Atsushi Enomoto <[email protected]>
* XPath2Expression.cs :
	  Implemented the whole ComparisonExpr.Evaluate(). It now handles
	  empty sequence expectedly.
	* XQueryComparisonOperator.cs : added.

svn path=/trunk/mcs/; revision=33105
2004-08-31 16:01:09 +00:00
Atsushi Eno 8750d1a80d 2004-08-31 Atsushi Enomoto <[email protected]>
* XPath2Expression.cs :
	  Revised some parameters for XPathSequence classes ctor().
	  Don't require XPathSequence while they are not required.
	  AxisIterator need to accept only current node as its input.
	  Implemented node comparison operators.
	  Removed AxisStepExpr.ParentStep (in the future it might hold line
	  information).
	* XQueryParser.jay : changes wrt AxisStepExpr.ParentStep.
	* XPathSequence.cs, XQueryExpression.cs, XQueryFunction.cs :
	  Removed some extraneous code.
	  NodeIterator.ctor() now requires XPathNavigator and XQueryContext
	  instead of XPathSequence.
	  Added SelfIterator (derived from NodeIterator).

svn path=/trunk/mcs/; revision=33100
2004-08-31 14:23:49 +00:00
Atsushi Eno ce6aa0b2cb 2004-08-31 Atsushi Enomoto <[email protected]>
* XQueryArithmeticOperator.cs : added.
	* XPath2Expression.cs, XQueryParser.jay :
	  renamed some ArithmeticOperator enumeration members.
	  Implemented ArithmeticOperationExpr.Evaluate().

svn path=/trunk/mcs/; revision=33076
2004-08-31 07:17:34 +00:00
Atsushi Eno f0e7566f48 2004-08-30 Atsushi Enomoto <[email protected]>
* XPathSequence.cs : fixed NodeIterator to get correct current node
	  from the input sequence. Now open MoveNext() again as public to
	  allow override by NodeIterator.

svn path=/trunk/mcs/; revision=33040
2004-08-30 15:06:23 +00:00
Atsushi Eno e4b1cc6ead 2004-08-30 Atsushi Enomoto <[email protected]>
* XPath2Expression.cs : empty ExprSequence should not be allowed for
	  FLWORExpr.WhereClause. It should be null.
	* XPathSequence.cs : ExprSequenceIterator.Clone() was missing copy of
	  the input sequence. FLWORIterator.MoveNext() had incorrect !(not)
	  and wrong Where test.
	* XQueryContext.cs : sequence should be cloned when pushed to context.

svn path=/trunk/mcs/; revision=33031
2004-08-30 08:12:35 +00:00
Atsushi Eno b0b0630120 2004-08-30 Atsushi Enomoto <[email protected]>
* XQueryCommandImpl.cs : dust cleaning :(

svn path=/trunk/mcs/; revision=33029
2004-08-30 06:04:55 +00:00
Atsushi Eno 1ef82f9f54 2004-08-30 Atsushi Enomoto <[email protected]>
* XQueryASTCompiler.cs, XQueryStaticContext.cs :
	  Now it requires Evidence and XQueryCommandImpl for security check
	  and event dispatch.
	* XQueryCommandImpl.cs :
	  Provide Evidence for compiler. Added some code for message dispatch.
	* XQueryContext.cs :
	  Now don't pool variable only in XQueryContextManager.
	  When variable name could not be resolved, return empty sequence
	  (not sure if it is always correct).
	  Fixes which reflects XPathEmptySequence.ctor() parameter changes.
	* XQueryCliFunction.cs :
	  Now it requires CAS if Evidence is supplied (in the future
	  Evidence won't be null _at any time_).
	* XQueryConvert.cs :
	  implemented GetFallbackType(). Fixed some comments.
	* XPathSequence.cs :
	  Don't require XPathSequence as an argument for XPathEmptySequence.
	  Implemented FilteredIterator.
	  Implemented FLWORIterator partly (not working).
	  Fixed some incorrect exception type: XPathEx- to XmlQueryEx-.
	  Dispatch message event to XQueryStaticContext.OnMessageEvent().
	  Added EnumeratorIterator.
	* XQueryFunction.cs:
	  Fixes which reflects XPathEmptySequence.ctor() parameter changes.
	* XQueryExpression.cs :
	  Commonized content serialization for node constructors.
	* XPath2Expression.cs :
	  use XPathItem.TypedValue instead of (string) Value.
	  In effective boolean value computation, Check Decimal as well.
	  Fixed misimplemented QuantifiedExpr.EvaluateAsBoolean().
	  Fix which reflects XQueryContext.PushVariables() changes.
	  Handle possible null argument on ParenthesizedExpr i.e. "( )".

svn path=/trunk/mcs/; revision=33011
2004-08-30 02:09:10 +00:00
Atsushi Eno a1b78fcc55 2004-08-26 Atsushi Enomoto <[email protected]>
* XPath2Expression.cs :
	  Fixed PathRootExpr.Evaluate() that always failed.
	  Renamed PathChildExpr to PathSlashExpr, PathDescendantExpr to
	  PathSlash2Expr, and added abstract PathStepExpr.
	  PathSlash2Expr.Evaluate() now uses PathStepIterator
	* XPathSequence.cs :
	  - Modified MoveNextCore() as protected.
	  - Fixed SingleItemIterator.MoveNext() to be simple.
	  - Renamed ChildPathIterator to PathStepIterator. Mostly copied
	    SlashIterator logic from Iterator.cs into PathStepIterator.
	  - Removed DescendantPathIterator ("//" should be the same as
	    "/descendant-or-self::node()/").
	  - NodeIterator.Node should come from current node, not context node.
	  - Added dummy flag for NodeIterator's copy constructor (that resulted
	    in incorrect copying for some usecases).
	* XQueryParser.jay : Fixes in sync with Expr class name changes.

svn path=/trunk/mcs/; revision=32871
2004-08-26 08:28:07 +00:00
Atsushi Eno 2b4326031a 2004-08-26 Atsushi Enomoto <[email protected]>
* XPath2Expression.cs :
	  Don't compute node's EBV based on atomized value.

svn path=/trunk/mcs/; revision=32865
2004-08-26 05:58:09 +00:00
Atsushi Eno 6c18fec5aa 2004-08-26 Atsushi Enomoto <[email protected]>
* XPath2Expression.cs : in Compiler(), function call's arguments must
	  also be compiled.
	* XQueryASTCompiler.cs : When function is external, it should not try
	  to compile body, and tries to handle it as a native CLI method (I
	  don't like this name resolution design very much, so it is likely
	  to be redesigned).
	* XQueryCliFunction.cs : trivial code comment fix.
	* XQueryFunction : added user-specified function call support.
	  When CLI function returned null, don't wrap null and just return
	  XQueryEmptySequence.
	* XQueryFunctionCliImpl.cs : fn:nilled() requires certain node.
	  Implemented numeric functions (in the future they might be
	  rewritten to avoid boxing).
	* XQueryTokenizer.cs : Skip XQuery comment inside default state.
	  PI and XML comment are not read correctly.

svn path=/trunk/mcs/; revision=32856
2004-08-26 02:27:48 +00:00
Atsushi Eno 5c7fdb0b7d 2004-08-25 Atsushi Enomoto <[email protected]>
* XPath2Expression.cs :
	  Check write state before writing document node.
	  Check if navigator's SchemaInfo is null or not before atomizing.
	  Use individual axis-based iterator in AxisStepExpr.Evaluate().
	* XPathSequence.cs : added individual axis-based iterator.
	  Removed commented NodeKindTestIterator.
	* XQueryCliFunction.cs, XQueryContext.cs, XQueryFunction.cs :
	  Now XQueryContext.CurrentItem explicitly throws exception if
	  no context node was provided (also XQueryCommand.Execute() is
	  fixed not to provide empty document as input).
	  Now XQueryFunction should not access to CurrentItem unless it is
	  required.
	* XQueryFunctionCliImpl.cs : fixed more method signatures.

svn path=/trunk/mcs/; revision=32827
2004-08-25 14:31:27 +00:00
Atsushi Eno 1d61d9cc4f 2004-08-25 Atsushi Enomoto <[email protected]>
* removed IXmlCompilerInclude.cs (does not exist anymore).

svn path=/trunk/mcs/; revision=32821
2004-08-25 11:40:50 +00:00
Atsushi Eno f9c88642ff 2004-08-25 Atsushi Enomoto <[email protected]>
* SequenceType.cs : moved type inference method to XPathAtomicValue.
	  Use IsArray in runtime type inference. Initialize fields completely.
	  Handle collection to runtime type for functions that takes array.
	* XPath2Expression.cs : Add whitespaces on serializing XPath items.
	  EBV != atomized boolean value. Add Atomize() for XPathItem (Atomize()
	  for XPathSequence should be removed in the future).
	  Replaced some ExprSequence to ExprSingle for optimization.
	* XQueryFunctionCliImpl.cs : Fixed some return types.
	* XQueryTokenizer.cs : Fixed weird ReadDecimal().

svn path=/trunk/mcs/; revision=32812
2004-08-25 08:21:52 +00:00
Atsushi Eno 745070974a 2004-08-24 Atsushi Enomoto <[email protected]>
* SequenceType.cs : added ToRuntimeType().
	* XPath2Expression.cs : override is required.
	* XPathSequence.cs : fixed ExprSequenceIterator.MoveNext() that caused
	  infinite loop.
	* XQueryCompileContext.cs : CultureInfo was missing.
	* XQueryContext.cs : CurrentContext must be created after setting
	  currentSequence.
	* XQueryConvert.cs : DateTimeToString() was missing.
	* XQueryFunction.cs : convert parameters to runtime type before
	  being used in Invoke(). Use function's ReturnType to create typed
	  atomic.
	* XQueryParser.jay : create XQueryFunctionArgumentList instance
	  for function calls that does not have parameters.

svn path=/trunk/mcs/; revision=32755
2004-08-24 14:31:28 +00:00
Atsushi Eno ee7bb8e9ad 2004-08-23 Atsushi Enomoto <[email protected]>
* SequenceType.cs, XPath2Expression.cs, XQueryASTCompiler.cs,
	  XQueryCliFunction.cs, XQueryCompileOptions.cs, XQueryContext.cs,
	  XQueryConvert.cs, XQueryExpression.cs, XQueryFunction,cs,
	  XQueryFunctionCliImpl.cs, XQueryFunctionTable.cs,
	  XQueryModuleProlog.cs, XQueryParser.jay, XQueryStaticContext.cs,
	  XQueryTokenizer.cs :
	  Eliminate MS.Internal.Xml.* classes. More null check everywhere and
	  make Compile() pass though as a dummy. Unified FunctionParam into
	  XQueryFunctionArgument. More kind error message. Several fixes.

svn path=/trunk/mcs/; revision=32703
2004-08-23 15:05:04 +00:00
Atsushi Eno 86946e9209 2004-08-20 Atsushi Enomoto <[email protected]>
* XQueryExpression.cs : Content for XmlTextConstructor might be null,
	  and use literal text for constructor argument if supplied.
	* XQueryParser.jay, XQueryTokenizer.cs : Element content literal
	  string was not parsed and kept correctly. Parse CDATA section.

svn path=/trunk/mcs/; revision=32582
2004-08-20 16:00:19 +00:00
Atsushi Eno 33563819d0 2004-08-20 Atsushi Enomoto <[email protected]>
* XPath2Expression.cs, XQueryConvert.cs, XQueryExpression.cs,
	  XQueryModuleProlog.cs, XQueryParser.jay, XQueryTokenizer.cs :
	  several changes for XQueryCommand.Execute() implementation.

svn path=/trunk/mcs/; revision=32568
2004-08-20 12:58:03 +00:00
Atsushi Eno c29380f5f1 2004-08-20 Atsushi Enomoto <[email protected]>
* XQueryContext.cs, XQueryStaticContext.cs, SequenceType.cs,
	  XPathSequence.cs, XQueryFunction.cs, XQueryFunctionTable.cs,
	  XQueryCliFunction.cs, XQueryCompileContext.cs, XQueryASTCompiler.cs,
	  XQueryCommandImpl.cs, XQueryFunctionCliImpl :
	  new files for XQuery implementation.

svn path=/trunk/mcs/; revision=32567
2004-08-20 12:54:00 +00:00
Martin Baulig 3898bb0c92 Be more quiet.
svn path=/trunk/mcs/; revision=31718
2004-08-01 22:00:29 +00:00
Atsushi Eno 821d167198 2004-07-28 Atsushi Enomoto <[email protected]>
* XmlQueryCompileException.cs : removed extra GetObjectData().
	* XsltCommand.cs : fixed signatures of Compile() and Execute() methods.

svn path=/trunk/mcs/; revision=31554
2004-07-28 13:31:58 +00:00
Atsushi Eno 0d16cd0f97 2004-07-27 Atsushi Enomoto <[email protected]>
* XQueryParser.jay,
	  XPath2Expression.cs,
	  XQueryModuleProlog.cs,
	  XQueryTokenizer.cs :
	  Removed SchemaContext. StepExpr and XPathAxis redesign.
	  (Partially) updated Prolog to match with XQuery 7/23/2004 spec.
	  XML comment/PI/CDATA recognition in tokenizer.

svn path=/trunk/mcs/; revision=31526
2004-07-27 16:56:41 +00:00
Atsushi Eno 3306d34b98 2004-07-26 Atsushi Enomoto <[email protected]>
* skelton-2.0.cs,
	  XQueryParser.jay,
	  XQueryTokenizer.cs,
	  XQueryModuleProlog.cs,
	  XPath2Expression.cs,
	  XQueryExpression.cs : added.

svn path=/trunk/mcs/; revision=31460
2004-07-26 10:35:51 +00:00
Atsushi Eno 00b474ee98 2004-07-23 Atsushi Enomoto <[email protected]>
* XmlQueryCompileException.cs, XmlQueryException.cs :
	  added internal constructor that supplies error location.
	  Removed Message property.

svn path=/trunk/mcs/; revision=31414
2004-07-23 16:03:50 +00:00
Atsushi Eno 6284c84eb7 2004-07-20 Atsushi Enomoto <[email protected]>
* XsltCommand.cs, XmlArgumentList.cs : sealed. Added missing MonoTODO.
	* XQueryConvert.cs : added. (namespace is temporarily MS.Internal.Xml)

svn path=/trunk/mcs/; revision=31334
2004-07-21 14:45:58 +00:00
Duncan Mak 8fa6e766dd Add MIT license to System.XML.DLL
svn path=/trunk/mcs/; revision=30055
2004-06-21 18:07:31 +00:00
Atsushi Eno 06fd5a823c 2004-05-22 Atsushi Enomoto <[email protected]>
* IXmlCompilerInclude.cs,
	  QueryEventArgs.cs,
	  QuertEventHandler.cs,
	  XmlArgumentList.cs,
	  XsltCommand.cs : added.

	* XmlQueryArgumentList.cs,
	  XsltProcessor.cs : removed (only in .NET 1.2).

	* XmlCommand.cs,
	  XmlQueryCompileException.cs,
	  XmlQueryException.cs : updated API to that of .NET 2.0.

svn path=/trunk/mcs/; revision=27882
2004-05-22 16:56:21 +00:00
Martin Baulig dfedf08d98 2004-04-22 Martin Baulig <[email protected]>
Renamed the `NET_1_2' conditional to `NET_2_0' in all files.

svn path=/trunk/mcs/; revision=25877
2004-04-23 02:24:02 +00:00
Tim Coleman 5bc274334a 2003-12-14 Tim Coleman <[email protected]>
* ChangeLog XmlCommand.cs XmlQueryArgumentList.cs
        * XmlQueryCompileException.cs XmlQueryException.cs XsltProcessor.cs:
                Move classes from the System.Data.SqlXml assembly where they
                did not belong.

svn path=/trunk/mcs/; revision=21114
2003-12-14 16:17:47 +00:00