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
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/[EMAIL PROTECTED]/msg00854.html
I have applied suggested path and it works for me.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.