[ 
https://issues.apache.org/jira/browse/WSCOMMONS-204?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ajith Harshana Ranabahu resolved WSCOMMONS-204.
-----------------------------------------------

    Resolution: Fixed

This issue is solved. However one has to call getRefName instead of getQName to 
get the reference QName. This is part of the API so we may need to discuss 
about this behavior if we are to change this behavior

> Attribute QName problem
> -----------------------
>
>                 Key: WSCOMMONS-204
>                 URL: https://issues.apache.org/jira/browse/WSCOMMONS-204
>             Project: WS-Commons
>          Issue Type: Bug
>          Components: XmlSchema
>            Reporter: Amila Chinthaka Suriarachchi
>            Assignee: Ajith Harshana Ranabahu
>
> <xs:schema elementFormDefault="qualified"
>            xmlns:xs="http://www.w3.org/2001/XMLSchema";
>            xmlns:tns="http://tempuri.org/attribute";
>            targetNamespace="http://tempuri.org/attribute";>
>     <xs:element name="TestAttributeReferenceElement" 
> type="tns:TestAttributeReferenceType"/>
>     <xs:attribute name="TestAttribute1" type="xs:string"/>
>     <xs:complexType name="TestAttributeReferenceType">
>         <xs:sequence>
>             <xs:element name="param1" type="xs:string"/>
>             <xs:element name="param2" type="xs:string"/>
>         </xs:sequence>
>         <xs:attribute ref="tns:TestAttribute1"/>
>     </xs:complexType>
> </xs:schema>
> Lets take the above schema. Since I have not declared any thing about 
> attributeFormDefault, it should be taken as the unqualified.
> So in this case What is the qname for TestAttribute1 ? Currently XmlSchmea 
> show it with out the namespace. But when I try to get the reference qname 
> from the 
> <xs:attribute ref="tns:TestAttribute1"/> attribute in the complex type (i.e 
> attribute.getRefName()) it gives me a qname with the namespace. So I there is 
> an inconsistency here.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to