Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » How to handle mixed attribute of an element in gmf model
How to handle mixed attribute of an element in gmf model [message #44478] Mon, 11 September 2006 05:46 Go to next message
Eclipse UserFriend
Originally posted by: techie_rahul.yahoo.com

I have a xsd file which has an element log of type logtype. The log
element contains some text which is reflected in xsd by mixed attribute
which is set to true.

The XSD file looks like this

<rootnode>
<xsd:element name="log" type="logType"></xsd:element>

<xsd:complexType name="logType" mixed="true">
<xsd:sequence>
<xsd:element ref="value" maxOccurs="unbounded"
minOccurs="1"></xsd:element>
</xsd:sequence>
<xsd:attribute ref="label" />
</xsd:complexType>
</rootnode>

Example of this xsd is :

<rootnode><log> This is text that needs to be handled</log></rootnode>


In the GMF model when I am associating a label with the logtype in the
gmfmap file then I am getting the mixed attribute also along with other
attributes.

Could you please suggest how to handle the text in the GMF model. What
kind of modifications i have to do in the .gmgraph,.gmfmap and .gmftool
files so that i can handle the text.

Thanks and regards
Rahul
Re: How to handle mixed attribute of an element in gmf model [message #149975 is a reply to message #44478] Tue, 11 September 2007 05:54 Go to previous message
Eclipse UserFriend
Originally posted by: michael.dev.NOSPAM.gmx.de

I also don't know how to handle this situation but i am facing the same
requirement. Can anybody tell us if this is just not supported or how to
do it.

Rahul schrieb:
> I have a xsd file which has an element log of type logtype. The log
> element contains some text which is reflected in xsd by mixed attribute
> which is set to true.
>
> The XSD file looks like this
>
> <rootnode>
> <xsd:element name="log" type="logType"></xsd:element>
>
> <xsd:complexType name="logType" mixed="true">
> <xsd:sequence>
> <xsd:element ref="value" maxOccurs="unbounded"
> minOccurs="1"></xsd:element>
> </xsd:sequence>
> <xsd:attribute ref="label" />
> </xsd:complexType>
> </rootnode>
>
> Example of this xsd is :
>
> <rootnode><log> This is text that needs to be handled</log></rootnode>
>
>
> In the GMF model when I am associating a label with the logtype in the
> gmfmap file then I am getting the mixed attribute also along with other
> attributes.
> Could you please suggest how to handle the text in the GMF model. What
> kind of modifications i have to do in the .gmgraph,.gmfmap and .gmftool
> files so that i can handle the text.
>
> Thanks and regards Rahul
Previous Topic:GMF Europa M7
Next Topic:feature seq initalizer: element creation refresh question
Goto Forum:
  


Current Time: Sun Aug 31 08:31:25 EDT 2025

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

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

Back to the top