You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "Simon Nash (JIRA)" <de...@tuscany.apache.org> on 2011/08/21 12:37:27 UTC

[jira] [Updated] (TUSCANY-2705) Incorrect XSD for dynamic types - xs:type attribute omitted for xs:element

     [ https://issues.apache.org/jira/browse/TUSCANY-2705?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Simon Nash updated TUSCANY-2705:
--------------------------------

    Fix Version/s: Java-SDO-Next

> Incorrect XSD for dynamic types - xs:type attribute omitted for xs:element
> --------------------------------------------------------------------------
>
>                 Key: TUSCANY-2705
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-2705
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SDO Implementation
>            Reporter: Andrey Utkin
>             Fix For: Java-SDO-Next
>
>
> I need to generate XSD for dynamic types. All works fine, but for DataType
> properties  represented by xsd:element (many==true or nullable==true)
> there are no "type" attribute generated in xsd.
> Here is patch provided by Frank Budinsky
> ===
> --- tuscany-sdo-1.1.1-src/impl/src/main/java/org/apache/tuscany/sdo/helper/SchemaBuilder.java	2008-07-10 16:53:43.000000000 +0400
> +++ /home/cind/apache-tuscany-sdo-1.1.1-patch/tuscany-sdo-1.1.1-src/impl/src/main/java/org/apache/tuscany/sdo/helper/SchemaBuilder.java	2008-12-02 23:38:27.000000000 +0300
> @@ -237,7 +237,7 @@
>              
>          }
>          
> -        if ( aProperty.isContainment() )
> +        if ( aProperty.isContainment() || aProperty.getType().isDataType())
>          {
>              element.setTypeDefinition(typeTable.getXSDTypeDef(elementSchemaType.getNamespaceURI(),
>                                                                  elementSchemaType.getLocalPart()));
> ===
> Please, see thread http://www.mail-archive.com/user@tuscany.apache.org/msg00854.html
> I have applied  suggested path and it works for me.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira