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

Andy Grove commented on TUSCANY-708:
------------------------------------

DocumentRoot was mentioned in SDO 2.0.1 and was only relevant to XML documents 
*without* an XSD. All mentioned of DocumentRoot were removed from SDO 2.1 and 
XSDHelper.define() should not be returning DocumentRoot.

I have filed a similar bug against the CTS as the current tests expect 
DocumentRoot to be created when parsing XSD.

> Should TypeHelper.define return List of Types that includes DocumentRootType
> ----------------------------------------------------------------------------
>
>                 Key: TUSCANY-708
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-708
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SDO Implementation
>    Affects Versions: Java-M2
>         Environment: All 
>            Reporter: Robbie Minshall
>            Priority: Minor
>             Fix For: Java-SDO-Mx
>
>         Attachments: 708.patch
>
>
> TypeHelper.define returns List of Types that includes the DocumentRoot Type
> Perhaps is shoudl only include Types that are deifned within the XSD ( i.e 
> CompanyType, DeptartmentType etc ) 
> SDOUtil.getTypes( scope, uri ) explicidly removes the DocumentRoot Type 
>        result.remove(((TypeHelperImpl) 
> scope).getExtendedMetaData().getDocumentRoot(ePackage));
> Should the Types returned by TypeHelper.define(...) and SDOUtil(scope, uri ) 
> be consistent ?  They probably should at least treat DocumentRoot Type 
> consistently.
> FrankB says: Currently the DocumentRoot contains the global properties but he 
> current SDO spec does not say how they are handled.   

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

Reply via email to