You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "Yang ZHONG (JIRA)" <tu...@ws.apache.org> on 2007/02/20 21:53:06 UTC

[jira] Created: (TUSCANY-1128) Support attribute and element with same name

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
             Fix For: Java-SDO-Mx


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


[jira] Updated: (TUSCANY-1128) Support attribute and element with same name

Posted by "Kelvin Goodson (JIRA)" <tu...@ws.apache.org>.
     [ https://issues.apache.org/jira/browse/TUSCANY-1128?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kelvin Goodson updated TUSCANY-1128:
------------------------------------

      Priority: Minor  (was: Major)
    Patch Info:   (was: [Patch Available])

> 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


[jira] Commented: (TUSCANY-1128) Support attribute and element with same name

Posted by "Andy Grove (JIRA)" <tu...@ws.apache.org>.
    [ https://issues.apache.org/jira/browse/TUSCANY-1128?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12509195 ] 

Andy Grove commented on TUSCANY-1128:
-------------------------------------

Out of interest, does Tuscany support the use of sdo:aliasName xsd annotations to distinguish between elements and attributes with the same name?

Thanks,

Andy.

> 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-Next
>            Reporter: Yang ZHONG
>            Priority: Minor
>             Fix For: Java-SDO-Next
>
>         Attachments: 1128.patch, 1128.patch, DifferAttrFromElementTestCase.java, dupelement.xsd, DupElementTestCase.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


[jira] Updated: (TUSCANY-1128) Support attribute and element with same name

Posted by "Jean-Sebastien Delfino (JIRA)" <tu...@ws.apache.org>.
     [ https://issues.apache.org/jira/browse/TUSCANY-1128?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jean-Sebastien Delfino updated TUSCANY-1128:
--------------------------------------------

    Patch Info: [Patch Available]

> 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


[jira] Updated: (TUSCANY-1128) Support attribute and element with same name

Posted by "Yang ZHONG (JIRA)" <tu...@ws.apache.org>.
     [ https://issues.apache.org/jira/browse/TUSCANY-1128?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Yang ZHONG updated TUSCANY-1128:
--------------------------------

    Attachment: DifferAttrFromElementTestCase.java
                1128.patch

The attached prototype has passed all build tests.

> 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
>             Fix For: Java-SDO-Mx
>
>         Attachments: 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


[jira] Updated: (TUSCANY-1128) Support attribute and element with same name

Posted by "Kelvin Goodson (JIRA)" <tu...@ws.apache.org>.
     [ https://issues.apache.org/jira/browse/TUSCANY-1128?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kelvin Goodson updated TUSCANY-1128:
------------------------------------

    Patch Info: [Patch Available]

> 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
>             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


[jira] Updated: (TUSCANY-1128) Support attribute and element with same name

Posted by "Fuhwei Lwo (JIRA)" <tu...@ws.apache.org>.
     [ https://issues.apache.org/jira/browse/TUSCANY-1128?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Fuhwei Lwo updated TUSCANY-1128:
--------------------------------

    Attachment: DupElementTestCase.java
                dupelement.xsd

Yes, we are. The new DupElementTestCase.java demonstrated it. - Fuhwei

> 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-Next
>            Reporter: Yang ZHONG
>            Priority: Minor
>             Fix For: Java-SDO-Next
>
>         Attachments: 1128.patch, 1128.patch, DifferAttrFromElementTestCase.java, dupelement.xsd, dupelement.xsd, DupElementTestCase.java, DupElementTestCase.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


[jira] Updated: (TUSCANY-1128) Support attribute and element with same name

Posted by "Yang ZHONG (JIRA)" <tu...@ws.apache.org>.
     [ https://issues.apache.org/jira/browse/TUSCANY-1128?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Yang ZHONG updated TUSCANY-1128:
--------------------------------

    Attachment: 1128.patch

> 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
>             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


[jira] Resolved: (TUSCANY-1128) Support attribute and element with same name

Posted by "Kelvin Goodson (JIRA)" <tu...@ws.apache.org>.
     [ https://issues.apache.org/jira/browse/TUSCANY-1128?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kelvin Goodson resolved TUSCANY-1128.
-------------------------------------

    Resolution: Fixed

> 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-Next
>            Reporter: Yang ZHONG
>            Priority: Minor
>             Fix For: Java-SDO-Next
>
>         Attachments: 1128.patch, 1128.patch, DifferAttrFromElementTestCase.java, dupelement.xsd, dupelement.xsd, DupElementTestCase.java, DupElementTestCase.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


[jira] Commented: (TUSCANY-1128) Support attribute and element with same name

Posted by "Frank Budinsky (JIRA)" <tu...@ws.apache.org>.
    [ 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


[jira] Updated: (TUSCANY-1128) Support attribute and element with same name

Posted by "Fuhwei Lwo (JIRA)" <tu...@ws.apache.org>.
     [ https://issues.apache.org/jira/browse/TUSCANY-1128?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Fuhwei Lwo updated TUSCANY-1128:
--------------------------------

    Attachment: dupelement.xsd
                DupElementTestCase.java

Attached DupElementTestCase.java and dupelement.xsd.

It seems our current implementation is renaming the duplicate element so the first one always hides the second one so I think we are complying to the 2.1 spec.

Fuhwei

> 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-Next
>            Reporter: Yang ZHONG
>            Priority: Minor
>             Fix For: Java-SDO-Next
>
>         Attachments: 1128.patch, 1128.patch, DifferAttrFromElementTestCase.java, dupelement.xsd, DupElementTestCase.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


[jira] Updated: (TUSCANY-1128) Support attribute and element with same name

Posted by "Amita Vadhavkar (JIRA)" <tu...@ws.apache.org>.
     [ https://issues.apache.org/jira/browse/TUSCANY-1128?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Amita Vadhavkar updated TUSCANY-1128:
-------------------------------------

    Fix Version/s:     (was: Java-SDO-Next)
                   Java-SDO-1.1

> 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-Next
>            Reporter: Yang ZHONG
>            Priority: Minor
>             Fix For: Java-SDO-1.1
>
>         Attachments: 1128.patch, 1128.patch, DifferAttrFromElementTestCase.java, dupelement.xsd, dupelement.xsd, DupElementTestCase.java, DupElementTestCase.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