[ 
https://wso2.org/jira/browse/MASHUP-737?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16085#action_16085
 ] 

Jonathan Marsh commented on MASHUP-737:
---------------------------------------

Also check out this test case:

foo.inputTypes={"qn" : "xs:QName*"};
foo.outputType="string";
function foo(qn){
    print(typeof(qn));
    return 3;
}

This faults.  Should give me an array of E4X QName objects.

> QName data binding doesn't handle unprefixed names
> --------------------------------------------------
>
>                 Key: MASHUP-737
>                 URL: https://wso2.org/jira/browse/MASHUP-737
>             Project: WSO2 Mashup Server
>          Issue Type: Bug
>            Reporter: Jonathan Marsh
>            Assignee: Keith Godwin Chapman
>             Fix For: 1.1
>
>
> qname.js
> foo.inputTypes="xs:QName";
> foo.outputType="xs:QName";
> function foo(qn){
>     print(qn.uri == null);  // Should return false when value has no prefix
>     print(qn.localName);
>     return qn;
> }
> Invoke using tryit (rev 15246 or later) with a blank namespace uri and an 
> uprefixed lexical QName.  The .uri property of the QName should be null, and 
> the output should indicate "true" in the log - instead it appears to be the 
> string value "null".

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
https://wso2.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

_______________________________________________
Mashup-dev mailing list
[email protected]
http://www.wso2.org/cgi-bin/mailman/listinfo/mashup-dev

Reply via email to