[
https://issues.apache.org/jira/browse/TUSCANY-1835?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12532726
]
Fuhwei Lwo commented on TUSCANY-1835:
-------------------------------------
It seems EMF ecore model didn't keep the original <appinfo> elements from XSD
and there is no way of querying the prefix of appinfo namespace. So the best
solution I can come up with is to hard code the prefix to "xsd". I will provide
a patch shortly. Please let me know whether it's acceptable.
> XSDHelper.getAppinfo() returns wrong result
> -------------------------------------------
>
> Key: TUSCANY-1835
> URL: https://issues.apache.org/jira/browse/TUSCANY-1835
> Project: Tuscany
> Issue Type: Bug
> Components: Java SDO Implementation
> Affects Versions: Java-SDO-1.0
> Environment: WinXP
> Reporter: Fuhwei Lwo
> Assignee: Fuhwei Lwo
>
> According to SDO 2.1 spec section 3.13 (*The getAppinfo() methods return the
> XML, starting from the specified source element.*). This means if we have an
> annotation defined like below.
> {noformat}
> <xsd:annotation>
> <xsd:appinfo source="appinfosrc">
> <simple:stockQuote xmlns:simple="http://www.example.com/simple">
> <symbol>fbnt</symbol>
> </simple:stockQuote>
> </xsd:appinfo>
> </xsd:annotation>
> {noformat}
> XSDHelper.getAppinfo() should return
> {noformat}
> <xsd:appinfo source="appinfosrc">
> <simple:stockQuote xmlns:simple="http://www.example.com/simple">
> <symbol>fbnt</symbol>
> </simple:stockQuote>
> </xsd:appinfo>
> {noformat}
> Now it's returning the wrong result like below.
> {noformat}
> <simple:stockQuote xmlns:simple="http://www.example.com/simple">
> <symbol>fbnt</symbol>
> </simple:stockQuote>
> {noformat}
--
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]