You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "Frank Budinsky (JIRA)" <tu...@ws.apache.org> on 2006/11/06 20:41:39 UTC

[jira] Created: (TUSCANY-899) DAS Config model should declare a global element named "Config"

DAS Config model should declare a global element named "Config"
---------------------------------------------------------------

                 Key: TUSCANY-899
                 URL: http://issues.apache.org/jira/browse/TUSCANY-899
             Project: Tuscany
          Issue Type: Improvement
          Components: Java DAS RDB
            Reporter: Frank Budinsky


You should add a "Config" global element declaration to config.xsd:

   <xsd:element name="Config" type="config:Config"/>

Doing this, however, will cause all your instance documents to fail when loading. The reason is because the instance documents currently use xsiNoNamespaceSchemaLocation as a hack to make it work without the "proper" global element defined:

<Config xsi:noNamespaceSchemaLocation="http:///org.apache.tuscany.das.rdb/config.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    ...
</Config>

The xsi:noNamespaceSchemaLocation needs to be removed and replace with xmlns="http:///org.apache.tuscany.das.rdb/config.xsd" instead.

One more change, to make it all work properly, is that you need to add elementFormDefault="qualified" in config.xsd, otherwise the nested elements won't be found when loading.

To summarize, you need to add elementFormDefault and global element to config.xsd. With these changes config.xsd should look something like this:

<xsd:schema
   xmlns:config="http:///org.apache.tuscany.das.rdb/config.xsd"
   xmlns:xsd="http://www.w3.org/2001/XMLSchema"
   targetNamespace="http:///org.apache.tuscany.das.rdb/config.xsd"
   elementFormDefault="qualified">

   <xsd:element name="Config" type="config:Config"/>

   <xsd:complexType name="Config">
   ...

All the instance files, e.g., CompanyConfig.xml, need to be changed so that the root element uses xmlns instead of xsi:noNamespaceSchemaLocation. The instance documents should all look something like this:

<Config xmlns="http:///org.apache.tuscany.das.rdb/config.xsd">	
	...
</Config>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


[jira] Closed: (TUSCANY-899) DAS Config model should declare a global element named "Config"

Posted by "Kevin Williams (JIRA)" <tu...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/TUSCANY-899?page=all ]

Kevin Williams closed TUSCANY-899.
----------------------------------

    Fix Version/s: Java-Mx
       Resolution: Fixed

Verified with revision:  470494

> DAS Config model should declare a global element named "Config"
> ---------------------------------------------------------------
>
>                 Key: TUSCANY-899
>                 URL: http://issues.apache.org/jira/browse/TUSCANY-899
>             Project: Tuscany
>          Issue Type: Improvement
>          Components: Java DAS RDB
>            Reporter: Frank Budinsky
>         Assigned To: Kevin Williams
>             Fix For: Java-Mx
>
>
> You should add a "Config" global element declaration to config.xsd:
>    <xsd:element name="Config" type="config:Config"/>
> Doing this, however, will cause all your instance documents to fail when loading. The reason is because the instance documents currently use xsiNoNamespaceSchemaLocation as a hack to make it work without the "proper" global element defined:
> <Config xsi:noNamespaceSchemaLocation="http:///org.apache.tuscany.das.rdb/config.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
>     ...
> </Config>
> The xsi:noNamespaceSchemaLocation needs to be removed and replace with xmlns="http:///org.apache.tuscany.das.rdb/config.xsd" instead.
> One more change, to make it all work properly, is that you need to add elementFormDefault="qualified" in config.xsd, otherwise the nested elements won't be found when loading.
> To summarize, you need to add elementFormDefault and global element to config.xsd. With these changes config.xsd should look something like this:
> <xsd:schema
>    xmlns:config="http:///org.apache.tuscany.das.rdb/config.xsd"
>    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
>    targetNamespace="http:///org.apache.tuscany.das.rdb/config.xsd"
>    elementFormDefault="qualified">
>    <xsd:element name="Config" type="config:Config"/>
>    <xsd:complexType name="Config">
>    ...
> All the instance files, e.g., CompanyConfig.xml, need to be changed so that the root element uses xmlns instead of xsi:noNamespaceSchemaLocation. The instance documents should all look something like this:
> <Config xmlns="http:///org.apache.tuscany.das.rdb/config.xsd">	
> 	...
> </Config>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


[jira] Assigned: (TUSCANY-899) DAS Config model should declare a global element named "Config"

Posted by "Kevin Williams (JIRA)" <tu...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/TUSCANY-899?page=all ]

Kevin Williams reassigned TUSCANY-899:
--------------------------------------

    Assignee: Kevin Williams

> DAS Config model should declare a global element named "Config"
> ---------------------------------------------------------------
>
>                 Key: TUSCANY-899
>                 URL: http://issues.apache.org/jira/browse/TUSCANY-899
>             Project: Tuscany
>          Issue Type: Improvement
>          Components: Java DAS RDB
>            Reporter: Frank Budinsky
>         Assigned To: Kevin Williams
>
> You should add a "Config" global element declaration to config.xsd:
>    <xsd:element name="Config" type="config:Config"/>
> Doing this, however, will cause all your instance documents to fail when loading. The reason is because the instance documents currently use xsiNoNamespaceSchemaLocation as a hack to make it work without the "proper" global element defined:
> <Config xsi:noNamespaceSchemaLocation="http:///org.apache.tuscany.das.rdb/config.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
>     ...
> </Config>
> The xsi:noNamespaceSchemaLocation needs to be removed and replace with xmlns="http:///org.apache.tuscany.das.rdb/config.xsd" instead.
> One more change, to make it all work properly, is that you need to add elementFormDefault="qualified" in config.xsd, otherwise the nested elements won't be found when loading.
> To summarize, you need to add elementFormDefault and global element to config.xsd. With these changes config.xsd should look something like this:
> <xsd:schema
>    xmlns:config="http:///org.apache.tuscany.das.rdb/config.xsd"
>    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
>    targetNamespace="http:///org.apache.tuscany.das.rdb/config.xsd"
>    elementFormDefault="qualified">
>    <xsd:element name="Config" type="config:Config"/>
>    <xsd:complexType name="Config">
>    ...
> All the instance files, e.g., CompanyConfig.xml, need to be changed so that the root element uses xmlns instead of xsi:noNamespaceSchemaLocation. The instance documents should all look something like this:
> <Config xmlns="http:///org.apache.tuscany.das.rdb/config.xsd">	
> 	...
> </Config>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org