[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.modeling.gmt] [TCS] Problem with serializer

Hi all,

I'm trying to finalize a TCS project but i have some problems with the serializer. Here is a problematic extract of an input file:

PREFIX vcard:   <http://www.w3.org/2001/vcard-rdf/3.0#>

which is defined like this in my TCS:

template PrefixDecl addToContext
: "PREFIX" name <no_space> ":" iref{as = uriSymbol} ;


an uriSymbol is defined like this:

primitiveTemplate uriSymbol for String default using IRI:
value = "%token%",
serializer="'<' + %value%.toCString() + '>'";


IRI
: '<'!
( ~('>')
)+
'>'!
%v3 (setText($text.substring(1, $text.length() - 1));} ;


In fact, the injection process goes well, but when trying an extraction i obtain this:

PREFIX vcard: "http://www.w3.org/2001/vcard-rdf/3.0#";

It seems that the serializer from the uriSymbol primitiveTemplate is not taken in account !
How can i resolve this ?


Thanks.