tuscany-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Frank Budinsky (JIRA)" <tuscany-...@ws.apache.org>
Subject [jira] Commented: (TUSCANY-1128) Support attribute and element with same name
Date Tue, 03 Apr 2007 14:14:32 GMT

    [ https://issues.apache.org/jira/browse/TUSCANY-1128?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12486369
] 

Frank Budinsky commented on TUSCANY-1128:
-----------------------------------------

The attached patch doesn't provide the correct semantics if there are duplicates of the same
kind (i.e., 2 elements with the same name). In that case, the spec says that the first one
hides the second, but this implementation will return the last one. Actually, it looks like
that's a bug in the current implementation (before this patch) as well.


> Support attribute and element with same name
> --------------------------------------------
>
>                 Key: TUSCANY-1128
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-1128
>             Project: Tuscany
>          Issue Type: New Feature
>          Components: Java SDO Implementation
>    Affects Versions: Java-SDO-Mx
>            Reporter: Yang ZHONG
>            Priority: Minor
>             Fix For: Java-SDO-Mx
>
>         Attachments: 1128.patch, 1128.patch, DifferAttrFromElementTestCase.java
>
>
> To support attribute and element with same name within one Type such as
>   <complexType>
>     <sequence>
>       <element name="property" type="int"/>
>     </sequence>
>     <attribute name="property" type="string"/>
>   </complexType>
> and using "@property" to access attribute and "property" to access element.
> This is to support OTA standard schema used in the travel industry.
> "@property" notation comes from XPath:
>     http://www.w3.org/TR/xpath#path-abbrev

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


Mime
View raw message