http://bugzilla.novell.com/show_bug.cgi?id=498385


           Summary: Inconsistent behavior of XPathResultType.Navigator
                    between Mono and .NET
    Classification: Mono
           Product: Mono: Class Libraries
           Version: 2.4.x
          Platform: Other
        OS/Version: Windows Server 2003
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Sys.XML
        AssignedTo: [email protected]
        ReportedBy: [email protected]
         QAContact: [email protected]
          Found By: Third Party Developer/Partner


Description of Problem:

Steps to reproduce the problem:
1. Create a CustomXsltContext class inheriting from System.Xml.Xsl.XsltContext.
2. Create a CustomXsltFunction class inheriting from
System.Xml.Xsl.IXsltContextFunction.
3. In CustomXsltFunction.ArgTypes return a single element array consisting only
of XPathResultType.Navigator.
4. In CustomXsltFunction.Invoke do Console.WriteLine(args[0].GetType()).
4. In CustomXsltContext override ResolveFunction to return CustomXsltFunction
when name is "custom-function".
5. Create a new XPath expression:
var xpath = XPathExpression.Compile("custom-function('.')");
xpath.SetContext(new CustomXsltContext());
6. Apply the created expression to any xml document/node (probably non-text
one?).

Actual Results:
In Console you will see that the argument type was System.String.

Expected Results:
Doing the same in Microsoft .NET outputs System.Xml.XPath.XPathNodeIterator.


How often does this happen? 
Always.

-- 
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
_______________________________________________
mono-bugs maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to