ChangeLog 16 KB

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