Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Modeling (top-level project) » Beginners trouble with modeling.
Beginners trouble with modeling. [message #582156] Mon, 25 September 2006 15:42
Conor Missing name is currently offline Conor Missing nameFriend
Messages: 159
Registered: July 2009
Senior Member
Hey,

I'm having trouble with building a model for gmf in a xsd file.

I want to start off with a very simple model that contains only one type
of element that can then be associated with other elements (a directed
association) of the same type. The element will have some attributes (or
should these be elements?) as well but it's doing the association I don't
understand.

What I want to model is a simple dialogue that is divided into segments.
Each node to be a segment in a graph structure.

So something like:

<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema
targetNamespace="http://www.example.org/dialoguegraph"
xmlns:dialoguegraph="http://www.example.org/dialoguegraph"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore">
<xsd:complexType name="DialogueSegment">
<xsd:attribute name="intro_text" type="xsd:string"/> //set to max of one
<xsd:attribute name="transcript" type="xsd:string"/> //set to max of one
<xsd:attribute name="outro_text" type="xsd:string"/> //0..*
</xsd:complexType>

//set the relatonship between nodes?????

</xsd:schema>
Previous Topic:Ignoring Notifications That Occur During Proxy Resolution
Next Topic:Beginners trouble with modeling.
Goto Forum:
  


Current Time: Tue Apr 23 10:44:07 GMT 2024

Powered by FUDForum. Page generated in 0.03113 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top