[Mono-bugs] [Bug 46797][Wis] New - XPath union expression does not return results in document order

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
Wed, 23 Jul 2003 11:37:58 -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 bmaurer@users.sf.net.

http://bugzilla.ximian.com/show_bug.cgi?id=46797

--- shadow/46797	Wed Jul 23 11:37:58 2003
+++ shadow/46797.tmp.2561	Wed Jul 23 11:37:58 2003
@@ -0,0 +1,46 @@
+Bug#: 46797
+Product: Mono/Class Libraries
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: System.XML
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: bmaurer@users.sf.net               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: XPath union expression does not return results in document order
+
+Description of Problem:
+In XPath when using the union expression (a|b), items are returned in the
+the order that they were specified (ie, all the things that match `a' then
+everything that matches `b'). They should be returned in document order
+
+Steps to reproduce the problem:
+evaluate 'a | b' on
+<root><b/><a/></root>
+
+Actual Results:
+you get a  then b
+
+Expected Results:
+you get b then a
+
+How often does this happen? 
+always
+
+Additional Information:
+This makes the identity transformation:
+<xsl:template match="@*|comment()|processing-instruction()|text()|*">
+  <xsl:copy>
+    <xsl:apply-templates
+select="@*|comment()|processing-instruction()|text()|*"/>
+  </xsl:copy>
+</xsl:template>
+
+fail in managed xslt.