Hi,

I was imagining a case where there might be other types that might belong to
the namespace http://www.example.com/simple and for which the XSDs might
need to be generated.  In that case I might have to generate a schema for
this namespace anyways.  So if there are some Sdo types that fall into this
namespace I though I might as well consolidate them thro inlusion of those
schemas into this.  So finally when I import into the schema
http://www.example.com/dynamic there is just one import.  Won't this work?

An alternative would be to add serveral imports for the same namespace i.e.
http://www.example.com/simple <http://www.example.com/dynamic> but each with
different schemaLocatoin values.

Let me know if the implementation must be changed to this and I shall do it
rightaway :-)

A general question that  i have : If the schemaLocation attribute is not
mentioned does it default to the current document?

Thanks

Venkat



On 8/2/06, Frank Budinsky (JIRA) <[email protected]> wrote:

    [
http://issues.apache.org/jira/browse/TUSCANY-535?page=comments#action_12425313]

Frank Budinsky commented on TUSCANY-535:
----------------------------------------

Applied latest patch in revision 428070. I also made the change described
in TUSCANY-577 to this version.

I'm not sure this works properly. Here are a couple of things I noticed at
first glance:

1. Why does the testXSDGeneration_DynamicWithNestedStaticSDOType()
generate this (in addition to the "http://www.example.com/dynamic";
schema):

<xs:schema xmlns:sdo="commonj.sdo" xmlns:sdoJava="commonj.sdo/java"
xmlns:stn_4="http://www.example.com/simple"; xmlns:xs="
http://www.w3.org/2001/XMLSchema"; attributeFormDefault="qualified"
elementFormDefault="qualified" sdoJava:package="com.example.simple"
targetNamespace="http://www.example.com/simple";>
<xs:include schemaLocation="http://www.example.com/simple/xsd"/>
</xs:schema>

2. Since it calls the generate method passing a
namespaceToSchemaLocationMap:

            schemaLocationMap.put("http://www.example.com/simple";, "
http://www.example.com/simple/xsd";);
            xsd = xsdHelper.generate(types, schemaLocationMap);

    Why does this generated import not include a schemaLocation attribute:

            <xs:import namespace="http://www.example.com/simple"/>




> Implement XSDHelper.generate() method for generating XSD from SDO types
> -----------------------------------------------------------------------
>
>                 Key: TUSCANY-535
>                 URL: http://issues.apache.org/jira/browse/TUSCANY-535
>             Project: Tuscany
>          Issue Type: Improvement
>          Components: Java SDO Implementation
>    Affects Versions: Java-Mx
>            Reporter: Venkatakrishnan
>         Attachments: Tuscany-SDO-Impl-Patch-Jul-11.diff,
Tuscany-SDO-Impl-Patch-Jul-16.diff, Tuscany-SDO-Impl-Patch-Jul-30.diff
>
>
> Implement the XSDHelper.generate() method for generating XSDs from SDO
Types

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



Reply via email to