You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commons-dev@ws.apache.org by "Ajith Harshana Ranabahu (JIRA)" <ji...@apache.org> on 2007/05/14 07:38:16 UTC

[jira] Assigned: (WSCOMMONS-204) Attribute QName problem

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

Ajith Harshana Ranabahu reassigned WSCOMMONS-204:
-------------------------------------------------

    Assignee: Ajith Harshana Ranabahu

> 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
>         Assigned To: 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: commons-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: commons-dev-help@ws.apache.org