ChangeLog 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360
  1. 2004-10-07 Atsushi Enomoto <[email protected]>
  2. * XPath2Expression.cs, XPathSequence.cs :
  3. Changed ListIterator.ctor() signature not to demand current sequence.
  4. * XQueryCliFunction.cs, XQueryFunctionCliImpl.cs :
  5. Now, to represent a sequence, IEnumerable is not used anymore (it is
  6. confusing because System.String is also IEnumerable). So those native
  7. functions should just require XPathSequence (for user functions?
  8. not idea how MS will solve the "problem").
  9. If a native function method has [XQueryFunctionContext] attribute,
  10. then it means that the function requires current sequence, so fill
  11. it before invoking the method.
  12. * XQueryFunctionContextAttribute.cs : added, to mark "it needs
  13. current sequence" for fn:position() and fn:count().
  14. 2004-10-05 Atsushi Enomoto <[email protected]>
  15. * XPathSequence.cs, XQueryTokenizer.cs :
  16. removed commented && unused code.
  17. * XQueryContext.cs, XQueryCliFunction.cs, XQueryFunction.cs,
  18. XQueryFunctionCliImpl.cs :
  19. Now that position() requires current sequence that is not managed by
  20. XQueryContextManager (that is for FLWOR), it need to support
  21. XPathSequence input as the current node information.
  22. 2004-10-05 Atsushi Enomoto <[email protected]>
  23. * XQueryParser.jay, XQueryTokenizer.cs :
  24. Added attribute value template support.
  25. * XPath2Expression.cs : Inside attribute value, expressions must not
  26. serialize attributes as attribute node but should just pick value up.
  27. e.g. attr="{foo/@bar}" and <elem>{foo/@bar}</elem> are different.
  28. 2004-10-04 Atsushi Enomoto <[email protected]>
  29. * XQueryParser.jay, XPath2Expression.cs, XPathSequence.cs :
  30. two or more Filter expressions could be simply constructed as
  31. nested FilterExpr objects.
  32. 2004-09-22 Atsushi Enomoto <[email protected]>
  33. * SequenceType.cs : return TypedValue instead of null in case of
  34. XPathNavigator.
  35. * XPath2Expression.cs : now FunctionCallExpr also handles evaluation.
  36. * XPathSequence.cs : rewrote FLWORIterator to iterate forlet
  37. expressions based on index.
  38. 2004-09-13 Atsushi Enomoto <[email protected]>
  39. * SequenceType.cs, XPath2Expression.cs :
  40. Added SequenceType.IsNumeric(XmlTypeCode).
  41. In type comparison, untyped XPathNavigator is xdt:untypedAtomic
  42. (not sure as yet if it is always correct.)
  43. * XQueryComparisonOperator.cs : rewrote all numeric comparison using
  44. IsNumeric().
  45. 2004-09-12 Atsushi Enomoto <[email protected]>
  46. * XPath2Expression.cs : ComparisonExpr.CompareAtomic() should consider
  47. spec-conformant untypedAtomic handling.
  48. * XQueryContext.cs : Variables were incorrectly added to the older
  49. context. Fixed Context and ContextManager constructors that were
  50. in silly chicken-and-egg.
  51. * XPathSequence.cs : now Context property always returns current
  52. XQuery context (will be fixed; it is workaround for variable
  53. resolution). In For iteration, context sequence should vary.
  54. * XQueryComparisonOperator.cs : All value comparison failed to return
  55. true when both operands are the same types.
  56. * XsltCommand.cs : use XmlWriter.Create().
  57. 2004-09-08 Atsushi Enomoto <[email protected]>
  58. * XPathSequence.cs : workarounded bug #65521. Erased foreach inside
  59. iterators.
  60. 2004-09-08 Atsushi Enomoto <[email protected]>
  61. * XPath2Expression.cs : fixed EnclosedExpr.Compile() that resulted
  62. in index out of range.
  63. * XPathSequence.cs : FLWORIterator got working, but only when compiled
  64. with .NET 2.0 csc (still weird Invalid IL error happens).
  65. 2004-08-31 Atsushi Enomoto <[email protected]>
  66. * XPath2Expression.cs,
  67. XPathSequence.cs :
  68. Implemented GroupExpr.Evaluate() [union/intersect/except].
  69. Fixed incorrect iterator input for DescendantExpr.Evaluate().
  70. MinusExpr is (already) implemented not to be evaluated.
  71. * XQueryExpression.cs :
  72. PI name and nameExpr could be implemented.
  73. * XQueryFunction.cs :
  74. UserFunctionCallExpr.Invoke() should not be invoked.
  75. * XQueryFunctionCliImpl.cs :
  76. Implemented count(), doc(). Halfly implemented trace().
  77. * XmlQueryException.cs : Serializable.
  78. 2004-08-31 Atsushi Enomoto <[email protected]>
  79. * XPath2Expression.cs :
  80. Implemented the whole ComparisonExpr.Evaluate(). It now handles
  81. empty sequence expectedly.
  82. * XQueryComparisonOperator.cs : added.
  83. 2004-08-31 Atsushi Enomoto <[email protected]>
  84. * XPath2Expression.cs :
  85. Revised some parameters for XPathSequence classes ctor().
  86. Don't require XPathSequence while they are not required.
  87. AxisIterator need to accept only current node as its input.
  88. Implemented node comparison operators.
  89. Removed AxisStepExpr.ParentStep (in the future it might hold line
  90. information).
  91. * XQueryParser.jay : changes wrt AxisStepExpr.ParentStep.
  92. * XPathSequence.cs, XQueryExpression.cs, XQueryFunction.cs :
  93. Removed some extraneous code.
  94. NodeIterator.ctor() now requires XPathNavigator and XQueryContext
  95. instead of XPathSequence.
  96. Added SelfIterator (derived from NodeIterator).
  97. 2004-08-31 Atsushi Enomoto <[email protected]>
  98. * XQueryArithmeticOperator.cs : added.
  99. * XPath2Expression.cs, XQueryParser.jay :
  100. renamed some ArithmeticOperator enumeration members.
  101. Implemented ArithmeticOperationExpr.Evaluate().
  102. 2004-08-30 Atsushi Enomoto <[email protected]>
  103. * XPathSequence.cs : fixed NodeIterator to get correct current node
  104. from the input sequence. Now open MoveNext() again as public to
  105. allow override by NodeIterator.
  106. 2004-08-30 Atsushi Enomoto <[email protected]>
  107. * XPath2Expression.cs : empty ExprSequence should not be allowed for
  108. FLWORExpr.WhereClause. It should be null.
  109. * XPathSequence.cs : ExprSequenceIterator.Clone() was missing copy of
  110. the input sequence. FLWORIterator.MoveNext() had incorrect !(not)
  111. and wrong Where test.
  112. * XQueryContext.cs : sequence should be cloned when pushed to context.
  113. 2004-08-30 Atsushi Enomoto <[email protected]>
  114. * XQueryCommandImpl.cs : dust cleaning :(
  115. 2004-08-30 Atsushi Enomoto <[email protected]>
  116. * XQueryASTCompiler.cs, XQueryStaticContext.cs :
  117. Now it requires Evidence and XQueryCommandImpl for security check
  118. and event dispatch.
  119. * XQueryCommandImpl.cs :
  120. Provide Evidence for compiler. Added some code for message dispatch.
  121. * XQueryContext.cs :
  122. Now don't pool variable only in XQueryContextManager.
  123. When variable name could not be resolved, return empty sequence
  124. (not sure if it is always correct).
  125. Fixes which reflects XPathEmptySequence.ctor() parameter changes.
  126. * XQueryCliFunction.cs :
  127. Now it requires CAS if Evidence is supplied (in the future
  128. Evidence won't be null _at any time_).
  129. * XQueryConvert.cs :
  130. implemented GetFallbackType(). Fixed some comments.
  131. * XPathSequence.cs :
  132. Don't require XPathSequence as an argument for XPathEmptySequence.
  133. Implemented FilteredIterator.
  134. Implemented FLWORIterator partly (not working).
  135. Fixed some incorrect exception type: XPathEx- to XmlQueryEx-.
  136. Dispatch message event to XQueryStaticContext.OnMessageEvent().
  137. Added EnumeratorIterator.
  138. * XQueryFunction.cs:
  139. Fixes which reflects XPathEmptySequence.ctor() parameter changes.
  140. * XQueryExpression.cs :
  141. Commonized content serialization for node constructors.
  142. * XPath2Expression.cs :
  143. use XPathItem.TypedValue instead of (string) Value.
  144. In effective boolean value computation, Check Decimal as well.
  145. Fixed misimplemented QuantifiedExpr.EvaluateAsBoolean().
  146. Fix which reflects XQueryContext.PushVariables() changes.
  147. Handle possible null argument on ParenthesizedExpr i.e. "( )".
  148. 2004-08-26 Atsushi Enomoto <[email protected]>
  149. * XPath2Expression.cs :
  150. Fixed PathRootExpr.Evaluate() that always failed.
  151. Renamed PathChildExpr to PathSlashExpr, PathDescendantExpr to
  152. PathSlash2Expr, and added abstract PathStepExpr.
  153. PathSlash2Expr.Evaluate() now uses PathStepIterator
  154. * XPathSequence.cs :
  155. - Modified MoveNextCore() as protected.
  156. - Fixed SingleItemIterator.MoveNext() to be simple.
  157. - Renamed ChildPathIterator to PathStepIterator. Mostly copied
  158. SlashIterator logic from Iterator.cs into PathStepIterator.
  159. - Removed DescendantPathIterator ("//" should be the same as
  160. "/descendant-or-self::node()/").
  161. - NodeIterator.Node should come from current node, not context node.
  162. - Added dummy flag for NodeIterator's copy constructor (that resulted
  163. in incorrect copying for some usecases).
  164. * XQueryParser.jay : Fixes in sync with Expr class name changes.
  165. 2004-08-26 Atsushi Enomoto <[email protected]>
  166. * XPath2Expression.cs :
  167. Don't compute node's EBV based on atomized value.
  168. 2004-08-26 Atsushi Enomoto <[email protected]>
  169. * XPath2Expression.cs : in Compiler(), function call's arguments must
  170. also be compiled.
  171. * XQueryASTCompiler.cs : When function is external, it should not try
  172. to compile body, and tries to handle it as a native CLI method (I
  173. don't like this name resolution design very much, so it is likely
  174. to be redesigned).
  175. * XQueryCliFunction.cs : trivial code comment fix.
  176. * XQueryFunction : added user-specified function call support.
  177. When CLI function returned null, don't wrap null and just return
  178. XQueryEmptySequence.
  179. * XQueryFunctionCliImpl.cs : fn:nilled() requires certain node.
  180. Implemented numeric functions (in the future they might be
  181. rewritten to avoid boxing).
  182. * XQueryTokenizer.cs : Skip XQuery comment inside default state.
  183. PI and XML comment are not read correctly.
  184. 2004-08-25 Atsushi Enomoto <[email protected]>
  185. * XPath2Expression.cs :
  186. Check write state before writing document node.
  187. Check if navigator's SchemaInfo is null or not before atomizing.
  188. Use individual axis-based iterator in AxisStepExpr.Evaluate().
  189. * XPathSequence.cs : added individual axis-based iterator.
  190. Removed commented NodeKindTestIterator.
  191. * XQueryCliFunction.cs, XQueryContext.cs, XQueryFunction.cs :
  192. Now XQueryContext.CurrentItem explicitly throws exception if
  193. no context node was provided (also XQueryCommand.Execute() is
  194. fixed not to provide empty document as input).
  195. Now XQueryFunction should not access to CurrentItem unless it is
  196. required.
  197. * XQueryFunctionCliImpl.cs : fixed more method signatures.
  198. 2004-08-25 Atsushi Enomoto <[email protected]>
  199. * removed IXmlCompilerInclude.cs (does not exist anymore).
  200. 2004-08-25 Atsushi Enomoto <[email protected]>
  201. * SequenceType.cs : moved type inference method to XPathAtomicValue.
  202. Use IsArray in runtime type inference. Initialize fields completely.
  203. Handle collection to runtime type for functions that takes array.
  204. * XPath2Expression.cs : Add whitespaces on serializing XPath items.
  205. EBV != atomized boolean value. Add Atomize() for XPathItem (Atomize()
  206. for XPathSequence should be removed in the future).
  207. Replaced some ExprSequence to ExprSingle for optimization.
  208. * XQueryFunctionCliImpl.cs : Fixed some return types.
  209. * XQueryTokenizer.cs : Fixed weird ReadDecimal().
  210. 2004-08-24 Atsushi Enomoto <[email protected]>
  211. * SequenceType.cs : added ToRuntimeType().
  212. * XPath2Expression.cs : override is required.
  213. * XPathSequence.cs : fixed ExprSequenceIterator.MoveNext() that caused
  214. infinite loop.
  215. * XQueryCompileContext.cs : CultureInfo was missing.
  216. * XQueryContext.cs : CurrentContext must be created after setting
  217. currentSequence.
  218. * XQueryConvert.cs : DateTimeToString() was missing.
  219. * XQueryFunction.cs : convert parameters to runtime type before
  220. being used in Invoke(). Use function's ReturnType to create typed
  221. atomic.
  222. * XQueryParser.jay : create XQueryFunctionArgumentList instance
  223. for function calls that does not have parameters.
  224. 2004-08-23 Atsushi Enomoto <[email protected]>
  225. * SequenceType.cs, XPath2Expression.cs, XQueryASTCompiler.cs,
  226. XQueryCliFunction.cs, XQueryCompileOptions.cs, XQueryContext.cs,
  227. XQueryConvert.cs, XQueryExpression.cs, XQueryFunction,cs,
  228. XQueryFunctionCliImpl.cs, XQueryFunctionTable.cs,
  229. XQueryModuleProlog.cs, XQueryParser.jay, XQueryStaticContext.cs,
  230. XQueryTokenizer.cs :
  231. Eliminate MS.Internal.Xml.* classes. More null check everywhere and
  232. make Compile() pass though as a dummy. Unified FunctionParam into
  233. XQueryFunctionArgument. More kind error message. Several fixes.
  234. 2004-08-20 Atsushi Enomoto <[email protected]>
  235. * XQueryExpression.cs : Content for XmlTextConstructor might be null,
  236. and use literal text for constructor argument if supplied.
  237. * XQueryParser.jay, XQueryTokenizer.cs : Element content literal
  238. string was not parsed and kept correctly. Parse CDATA section.
  239. 2004-08-20 Atsushi Enomoto <[email protected]>
  240. * XPath2Expression.cs, XQueryConvert.cs, XQueryExpression.cs,
  241. XQueryModuleProlog.cs, XQueryParser.jay, XQueryTokenizer.cs :
  242. several changes for XQueryCommand.Execute() implementation.
  243. 2004-08-20 Atsushi Enomoto <[email protected]>
  244. * XQueryContext.cs, XQueryStaticContext.cs, SequenceType.cs,
  245. XPathSequence.cs, XQueryFunction.cs, XQueryFunctionTable.cs,
  246. XQueryCliFunction.cs, XQueryCompileContext.cs, XQueryASTCompiler.cs,
  247. XQueryCommandImpl.cs, XQueryFunctionCliImpl :
  248. new files for XQuery implementation.
  249. 2004-07-28 Atsushi Enomoto <[email protected]>
  250. * XmlQueryCompileException.cs : removed extra GetObjectData().
  251. * XsltCommand.cs : fixed signatures of Compile() and Execute() methods.
  252. 2004-07-27 Atsushi Enomoto <[email protected]>
  253. * XQueryParser.jay,
  254. XPath2Expression.cs,
  255. XQueryModuleProlog.cs,
  256. XQueryTokenizer.cs :
  257. Removed SchemaContext. StepExpr and XPathAxis redesign.
  258. (Partially) updated Prolog to match with XQuery 7/23/2004 spec.
  259. XML comment/PI/CDATA recognition in tokenizer.
  260. 2004-07-26 Atsushi Enomoto <[email protected]>
  261. * skelton-2.0.cs,
  262. XQueryParser.jay,
  263. XQueryTokenizer.cs,
  264. XQueryModuleProlog.cs,
  265. XPath2Expression.cs,
  266. XQueryExpression.cs : added.
  267. 2004-07-23 Atsushi Enomoto <[email protected]>
  268. * XmlQueryCompileException.cs, XmlQueryException.cs :
  269. added internal constructor that supplies error location.
  270. Removed Message property.
  271. 2004-07-20 Atsushi Enomoto <[email protected]>
  272. * XsltCommand.cs, XmlArgumentList.cs : sealed. Added missing MonoTODO.
  273. * XQueryConvert.cs : added. (namespace is temporarily MS.Internal.Xml)
  274. 2004-05-22 Atsushi Enomoto <[email protected]>
  275. * IXmlCompilerInclude.cs,
  276. QueryEventArgs.cs,
  277. QuertEventHandler.cs,
  278. XmlArgumentList.cs,
  279. XsltCommand.cs : added.
  280. * XmlQueryArgumentList.cs,
  281. XsltProcessor.cs : removed (only in .NET 1.2).
  282. * XmlCommand.cs,
  283. XmlQueryCompileException.cs,
  284. XmlQueryException.cs : updated API to that of .NET 2.0.
  285. 2003-12-14 Tim Coleman <[email protected]>
  286. * ChangeLog XmlCommand.cs XmlQueryArgumentList.cs
  287. * XmlQueryCompileException.cs XmlQueryException.cs XsltProcessor.cs:
  288. Move classes from the System.Data.SqlXml assembly where they
  289. did not belong.