[Mono-bugs] [Bug 76828][Nor] New - XSLT extension functions can't return subclass of XPathNodeIterator

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Sat Nov 26 13:08:33 EST 2005


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 dean at brettle.com.

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

--- shadow/76828	2005-11-26 13:08:33.000000000 -0500
+++ shadow/76828.tmp.19874	2005-11-26 13:08:33.000000000 -0500
@@ -0,0 +1,51 @@
+Bug#: 76828
+Product: Mono: Class Libraries
+Version: 1.1
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: Sys.XML
+AssignedTo: atsushi at ximian.com                            
+ReportedBy: dean at brettle.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: XSLT extension functions can't return subclass of XPathNodeIterator
+
+Description of Problem:
+
+XSLT extension functions can't return a subclass of XPathNodeIterator. 
+Mono's Expression.EvaluateNodeSet() throws XPathException("expected
+nodeset") when it tries to evaluate such a function because it requires
+that it return a BaseIterator which is an *internal* subclass of
+XPathNodeIterator.  
+
+Steps to reproduce the problem:
+1. Define a subclass of XPathNodeIterator.
+2. Define an extension object class containing a method which returns the
+above subclass of XPathNodeIterator.
+3. Load an XslTransform that calls the xtension object's method.
+3. Instantiate the extension object and add it to the XsltArgumentList
+passed to XslTransform.Transform()
+
+Actual Results:
+XPathException("expected nodeset") is thrown
+
+Expected Results:
+no exception is thrown
+
+How often does this happen? 
+
+everytime
+
+Additional Information:
+
+
+A similar bug existed in .NET in 2002.  I don't know whether it has since
+been fixed.  See:
+
+http://dotnet247.com/247reference/msgs/24/123027.aspx


More information about the mono-bugs mailing list