[great-users] XML-Creation, Colon and - in Object-Name

Dominik Giel dominik.giel at gmx.de
Fri Nov 15 10:25:46 CST 2013


Hi again,
Thanks for your contribution. I had a similar idea to use id_type and then to transform it via separate code. XSD might also be an option. It would be better, if it could work different in GME though. ;)

Greetings from Stuttgart,

Dominik Giel
- Stuttgart -

Am 15.11.2013 um 17:18 schrieb Kevin Smyth <ksmyth at isis.vanderbilt.edu>:

> To be clear, attribute values can contain any character. Attribute names must be valid C identifiers (since we are generating code from them). So attribute names cannot contain : or -.
> 
> Perhaps you could generate "xsi_type" in GReAT, then use an XSL to transform "xsi_type" to "xsi:type"?
> 
> Kevin
> 
> 
> On 11/15/2013 9:04 AM, Daniel Balasubramanian wrote:
>> Hi Dominik,
>> 
>> If you are using the DOM backed for the GReAT transformation, you should be able to set a string attribute on an object to contain dashes and colons. In other words, if the output of your transformation is an XML file, it should be able to contain those characters. Is this not the case?
>> 
>> Regards,
>> Daniel
>> 
>> On Nov 15, 2013, at 8:46 AM, "Dominik Giel" <Dominik.Giel at gmx.de> wrote:
>> 
>>> Dear GReAT-Users,
>>> thanks for helping us out with the XML-issue we posted in September. This helped us to work efficiently and create the output we need.
>>> Concerning a special XML-Output I would be pleased, if you could help me again.
>>>  
>>> I want to model a standard, that uses a colon and a dash in object names and attributes. For instance an object should be named <f:wonderful></f:wonderful> or the Object is named "MyName" and has an attribute xsi:type="This is the type".
>>> In GME Metamodeling, there's a constraint not to use the colon and dash in those names. For this specific issue, it would be necessary though.
>>>  
>>> Is there a possibility in GReAT (GME) to use these punctuation marks for this special issues?
>>>  
>>> Thank you so much in advance to help me out.
>>>  
>>> Greetings from Germany,
>>> Dominik
>>> _______________________________________________
>>> great-users mailing list
>>> great-users at list.isis.vanderbilt.edu
>>> http://list.isis.vanderbilt.edu/mailman/listinfo/great-users
>> 
>> 
>> _______________________________________________
>> great-users mailing list
>> great-users at list.isis.vanderbilt.edu
>> http://list.isis.vanderbilt.edu/mailman/listinfo/great-users
> 
> _______________________________________________
> great-users mailing list
> great-users at list.isis.vanderbilt.edu
> http://list.isis.vanderbilt.edu/mailman/listinfo/great-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://list.isis.vanderbilt.edu/pipermail/great-users/attachments/20131115/3a4c4711/attachment.html 


More information about the great-users mailing list