Book a Demo

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - bennido

Pages: [1]
1
Suggestions and Requests / BUG: No global element for XSD Simple Types
« on: November 01, 2006, 04:53:40 pm »
The XML schema generated for XSD Simple Types should have a global element automatically generated as well.

Global elements are generated for complex types but not for simple types. Example ....

Code: [Select]

<?xml version="1.0"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="Test" type="Test"/>
<xs:complexType name="Test">
<xs:sequence>
<xs:element name="Benutzer" type="Benutzer" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
<xs:simpleType name="Benutzer">
<xs:restriction base="xs:string"/>
</xs:simpleType>
</xs:schema>

2
Suggestions and Requests / Additional XSD design patterns ...
« on: October 31, 2006, 03:05:01 pm »
Currently, EA can only generate XSD in the Garden Of Eden design pattern.

It would be great of the user could choose to generate the code in the Venetian Blind pattern - which is by far the most popular pattern in use today.

Thank you.

3
General Board / Re: XSD design pattern ...
« on: October 23, 2006, 10:28:46 pm »
Ok, no problem. Thanks for replying and letting me know the right course of action.

4
General Board / Re: XSD design pattern ...
« on: October 23, 2006, 05:14:59 pm »
Can anyone from EA please reply ? Thanks !

5
General Board / XSD design pattern ...
« on: October 17, 2006, 07:09:35 pm »
Hi,

EA currently generates XSDs using the Garden of Eden design pattern.

But most of my clients use the Venetian Blind design pattern as company standard.

Is Sparx / EA planning to include an option for choosing the XML Schema design pattern to use ? It would be great to have some flexibility.

Thanks !

6
General Board / Re: Package includes in XML UML Modelling ...
« on: October 10, 2006, 05:33:13 pm »
Ah ok, I see where I went wrong now.

I had the targetNamespace defined correctly but I was missing the extra tagged value for "schemaLocation" for the package to be included.

Thanks for the help !

7
General Board / Package includes in XML UML Modelling ...
« on: October 03, 2006, 07:09:59 pm »
Hi all,

I've been trying out UML modelling for XML schema and hitting a basic (?) problem.

I've created a simple class diagram and included (by drag drop as a Simple link) an XSD element from another package onto the class diagram.

According to EA help file, this should cause code generation to automatically produce an "xsd:include" statement for the linked package in the schema.

But it doesn't and as a result the XML schema is not valid the XSD element being referenced is not defined.

Is there a setting in EA that I missed or am I missing the point completely ?

Can someone please help ? Thanks !

8
Quote
It appears that I can't turn off the automatic creation of elements with the same name as a complexType. And it puts the top-level element at the bottom rather than at the top, where it is supposed to go.


This is a real pain for me as well. With the XML Schema that EA generates, there's no way of easily telling which element is meant to be the top-level element (as all the elements are top level!).

Is there a way of forcing EA to put a specified element to the top ? Anyone ? Thanks !

9
Automation Interface, Add-Ins and Tools / Re: XSD Generation Problem
« on: November 01, 2006, 04:42:27 pm »
Quote
Hi Christian,

EA does automatically generate the "type=" in the definition of the complex type.

If you create a Complex Type class associated with a Simple Type class, you should get the following XSD which I think is what you are looking for.

Code: [Select]
<?xml version="1.0"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="Test" type="Test"/>
<xs:complexType name="Test">
<xs:sequence>
<xs:element name="Benutzer" type="Benutzer" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
<xs:simpleType name="Benutzer">
<xs:restriction base="xs:string"/>
</xs:simpleType>
</xs:schema>

If you can post a link to your UML model image somewhere, I'll see if I can help you.

On your other question about the Simple Type global element, I agree with you. In a Garden Of Eden design pattern, a global element should be generated for the simple type and I can't seem to find a way to force EA to do it either.

Perhaps a bug ?



10
Excellent. Exactly what I was looking for. Thanks !

11
When I copy and paste a class diagram into a Word document, EA automatically puts a title like ("cdExample") on the top left hand corner of the image.

How do I get rid of it ? Thanks !

Pages: [1]