[Mono-bugs] [Bug 46797][Wis] Changed - XPath union expression does not return results in document order
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Thu, 13 May 2004 02:34:13 -0400 (EDT)
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by atsushi@ximian.com.
http://bugzilla.ximian.com/show_bug.cgi?id=46797
--- shadow/46797 2003-07-23 11:37:58.000000000 -0400
+++ shadow/46797.tmp.15522 2004-05-13 02:34:13.000000000 -0400
@@ -1,16 +1,16 @@
Bug#: 46797
-Product: Mono/Class Libraries
+Product: Mono: Class Libraries
Version: unspecified
-OS:
+OS: unknown
OS Details:
-Status: NEW
+Status: CLOSED
Resolution:
-Severity:
+Severity: Unknown
Priority: Wishlist
-Component: System.XML
+Component: Sys.XML
AssignedTo: mono-bugs@ximian.com
ReportedBy: bmaurer@users.sf.net
QAContact: mono-bugs@ximian.com
TargetMilestone: ---
URL:
Cc:
@@ -41,6 +41,42 @@
<xsl:apply-templates
select="@*|comment()|processing-instruction()|text()|*"/>
</xsl:copy>
</xsl:template>
fail in managed xslt.
+
+------- Additional Comments From ginga@kit.hi-ho.ne.jp 2003-10-13 03:37 -------
+I fixed this problem, but in the next stage I encountered another bug
+(maybe) in SlashIterator.
+
+XmlDocument doc = new XmlDocument ();
+doc.LoadXml
+("<root><foo/><bar/><bar/><foo/><baz/><bar/><foo/></root>");
+XPathNavigator nav = doc.CreateNavigator ();
+
+//(1) runs well with my fix
+//XPathNodeIterator iter = nav.Select ("/root/bar|/root/foo");
+//(2) incorrectly outputs extraneous bar * 3
+XPathNodeIterator iter = nav.Select ("//bar|/root/foo");
+//(3) results in infinite loop(!)
+//XPathNodeIterator iter = nav.Select ("//bar|//foo");
+
+while (iter.MoveNext ())
+ Console.WriteLine ("Name: " + iter.Current.Name);
+
+It would be better we apply the patch after fixing this problem.
+
+------- Additional Comments From ginga@kit.hi-ho.ne.jp 2003-10-13 03:38 -------
+Created an attachment (id=5573)
+Fixed UnionIterator's iteration order.
+
+
+------- Additional Comments From ginga@kit.hi-ho.ne.jp 2003-10-13 04:20 -------
+Okay. I just fixed both of them.
+
+------- Additional Comments From ginga@kit.hi-ho.ne.jp 2003-10-13 11:51 -------
+Reopened as per Ben's request.
+
+------- Additional Comments From atsushi@ximian.com 2004-05-13 02:34 -------
+Reopened, but no verification was done. So am closing it now. If you
+need, reopen by yourself next time.