[
https://issues.apache.org/jira/browse/WSCOMMONS-204?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12495359
]
Amila Chinthaka Suriarachchi commented on WSCOMMONS-204:
--------------------------------------------------------
thank dennis for your explanation. As you have told then Top level groups
should also have a QName. (in
https://issues.apache.org/jira/browse/WSCOMMONS-205)
if we refered to an attribute from a complex type then that reffered attribute
is always namespace qualified isn't?
so the serialization format of the TestAttributeReferenceElement should be
something like this with a qualified name.
<ns1:TestAttributeReferenceElement xmlns:ns1="http://tempuri.org/attribute"
ns1:TestAttribute1="attribute1">
<ns1:param1>param1</ns1:param1>
<ns1:param2>param2</ns1:param2>
</ns1:TestAttributeReferenceElement>
> 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
>
> <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]