浏览代码

2003-11-19 Atsushi Enomoto <[email protected]>

	* DefaultContext.cs : Imcomplete fix ;-)

svn path=/trunk/mcs/; revision=20227
Atsushi Eno 22 年之前
父节点
当前提交
400eba4fbe

+ 4 - 0
mcs/class/System.XML/System.Xml.XPath/ChangeLog

@@ -1,3 +1,7 @@
+2003-11-19  Atsushi Enomoto  <[email protected]>
+
+	* DefaultContext.cs : Imcomplete fix ;-)
+
 2003-11-19  Atsushi Enomoto  <[email protected]>
 
 	* DefaultContext.cs : XPathFunctions.ToNumber() should catch overflow.

+ 8 - 4
mcs/class/System.XML/System.Xml.XPath/DefaultContext.cs

@@ -197,15 +197,19 @@ namespace System.Xml.XPath
 				strArgs = XPathFunctions.ToString (val);
 			
 			XPathNavigator n = iter.Current.Clone ();
-			SortedList rgNodes = new SortedList (XPathComparer.Instance);
+			ArrayList rgNodes = new ArrayList ();
+			// FIXME: sort
+//			SortedList rgNodes = new SortedList (XPathComparer.Instance);
 			foreach (string strArg in strArgs.Split (rgchWhitespace))
 			{
 				if (n.MoveToId (strArg)) {
-					XPathNavigator clone = n.Clone ();
-					rgNodes.Add (clone, clone);
+					rgNodes.Add (n.Clone ());
+//					XPathNavigator clone = n.Clone ();
+//					rgNodes.Add (clone, clone);
 				}
 			}
-			return new EnumeratorIterator (iter, rgNodes.Values.GetEnumerator ());
+			return new EnumeratorIterator (iter, rgNodes.GetEnumerator ());
+//			return new EnumeratorIterator (iter, rgNodes.Values.GetEnumerator ());
 		}
 	}