You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "Fuhwei Lwo (JIRA)" <tu...@ws.apache.org> on 2007/10/05 19:08:50 UTC

[jira] Created: (TUSCANY-1835) XSDHelper.getAppinfo() returns wrong result

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


[jira] Updated: (TUSCANY-1835) XSDHelper.getAppinfo() returns wrong result

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

ant elder updated TUSCANY-1835:
-------------------------------

    Fix Version/s: Java-SDO-Next

> 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
>             Fix For: Java-SDO-Next
>
>         Attachments: 1835.patch
>
>
> 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.
> <xsd:annotation>
> 	<xsd:appinfo source="appinfosrc">
> 		<simple:stockQuote xmlns:simple="http://www.example.com/simple">
> 			<symbol>fbnt</symbol>
> 		</simple:stockQuote>
>     	</xsd:appinfo>
> </xsd:annotation>
> XSDHelper.getAppinfo() should return
> <xsd:appinfo source="appinfosrc">
> 	<simple:stockQuote xmlns:simple="http://www.example.com/simple">
> 		<symbol>fbnt</symbol>
> 	</simple:stockQuote>
> </xsd:appinfo>
> Now it's returning the wrong result like below.
> 	<simple:stockQuote xmlns:simple="http://www.example.com/simple">
> 		<symbol>fbnt</symbol>
> 	</simple:stockQuote>

-- 
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-1835) XSDHelper.getAppinfo() returns wrong result

Posted by "Amita Vadhavkar (JIRA)" <tu...@ws.apache.org>.
    [ https://issues.apache.org/jira/browse/TUSCANY-1835?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12566505#action_12566505 ] 

Amita Vadhavkar commented on TUSCANY-1835:
------------------------------------------

Please give more details,what constraints apply, what investigation led to conclusion about "appinfo". Thanks

> 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
>             Fix For: Java-SDO-Next
>
>         Attachments: 1835.patch
>
>
> 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.
> <xsd:annotation>
> 	<xsd:appinfo source="appinfosrc">
> 		<simple:stockQuote xmlns:simple="http://www.example.com/simple">
> 			<symbol>fbnt</symbol>
> 		</simple:stockQuote>
>     	</xsd:appinfo>
> </xsd:annotation>
> XSDHelper.getAppinfo() should return
> <xsd:appinfo source="appinfosrc">
> 	<simple:stockQuote xmlns:simple="http://www.example.com/simple">
> 		<symbol>fbnt</symbol>
> 	</simple:stockQuote>
> </xsd:appinfo>
> Now it's returning the wrong result like below.
> 	<simple:stockQuote xmlns:simple="http://www.example.com/simple">
> 		<symbol>fbnt</symbol>
> 	</simple:stockQuote>

-- 
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-1835) XSDHelper.getAppinfo() returns wrong result

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

Fuhwei Lwo updated TUSCANY-1835:
--------------------------------

    Description: 
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.

<xsd:annotation>
	<xsd:appinfo source="appinfosrc">
		<simple:stockQuote xmlns:simple="http://www.example.com/simple">
			<symbol>fbnt</symbol>
		</simple:stockQuote>
    	</xsd:appinfo>
</xsd:annotation>

XSDHelper.getAppinfo() should return

<xsd:appinfo source="appinfosrc">
	<simple:stockQuote xmlns:simple="http://www.example.com/simple">
		<symbol>fbnt</symbol>
	</simple:stockQuote>
</xsd:appinfo>

Now it's returning the wrong result like below.

	<simple:stockQuote xmlns:simple="http://www.example.com/simple">
		<symbol>fbnt</symbol>
	</simple:stockQuote>


  was:
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}



> 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.
> <xsd:annotation>
> 	<xsd:appinfo source="appinfosrc">
> 		<simple:stockQuote xmlns:simple="http://www.example.com/simple">
> 			<symbol>fbnt</symbol>
> 		</simple:stockQuote>
>     	</xsd:appinfo>
> </xsd:annotation>
> XSDHelper.getAppinfo() should return
> <xsd:appinfo source="appinfosrc">
> 	<simple:stockQuote xmlns:simple="http://www.example.com/simple">
> 		<symbol>fbnt</symbol>
> 	</simple:stockQuote>
> </xsd:appinfo>
> Now it's returning the wrong result like below.
> 	<simple:stockQuote xmlns:simple="http://www.example.com/simple">
> 		<symbol>fbnt</symbol>
> 	</simple:stockQuote>

-- 
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-1835) XSDHelper.getAppinfo() returns wrong result

Posted by "Fuhwei Lwo (JIRA)" <tu...@ws.apache.org>.
    [ 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: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


[jira] Updated: (TUSCANY-1835) XSDHelper.getAppinfo() returns wrong result

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

Fuhwei Lwo updated TUSCANY-1835:
--------------------------------

    Attachment: 1835.patch

> 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
>         Attachments: 1835.patch
>
>
> 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.
> <xsd:annotation>
> 	<xsd:appinfo source="appinfosrc">
> 		<simple:stockQuote xmlns:simple="http://www.example.com/simple">
> 			<symbol>fbnt</symbol>
> 		</simple:stockQuote>
>     	</xsd:appinfo>
> </xsd:annotation>
> XSDHelper.getAppinfo() should return
> <xsd:appinfo source="appinfosrc">
> 	<simple:stockQuote xmlns:simple="http://www.example.com/simple">
> 		<symbol>fbnt</symbol>
> 	</simple:stockQuote>
> </xsd:appinfo>
> Now it's returning the wrong result like below.
> 	<simple:stockQuote xmlns:simple="http://www.example.com/simple">
> 		<symbol>fbnt</symbol>
> 	</simple:stockQuote>

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