[great-users] RE: [udm-users] newlines
Aditya Agrawal
aagrawa at us.ibm.com
Wed Dec 8 16:38:02 CST 2004
Endre,
How difficult will it be to write a parser that parses strings and
converts newline and other escape characters to some escape sequence? and
then when reading the string converts it back to the correct
representation?
Thanks,
Adi
-----------------------------------
Aditya Agrawal
Researcher
IBM T. J. Watson
mailto:aagrawa at us.ibm.com
+1 (914) 784-6068 (TL 863)
great-users-bounces at list.isis.vanderbilt.edu wrote on 12/08/2004 02:15:53
PM:
> Matt,
>
> Right now, the code generator doesn?t support the usage of global
> objects and Attila are working on that.
>
> Thanks,
> Feng
>
> -----Original Message-----
> From: Matthew J. Emerson
> Sent: Tuesday, December 07, 2004 10:20 PM
> To: udm-users; great-users
> Subject: [great-users] RE: [udm-users] newlines
>
> > I think that's because you use DOM backend, and Xerces removes
thenewlines..
>
>
> I guess I should shift this over to the GReAT mailing list then.
>
> Is there a way to use something besides the DOM backend for a GReAT
> transformation, in the interest of preserving the newlines? The
> formatting of these attribute values is important in my transformation.
>
> --Matt
>
> -----Original Message-----
> From: Attila Vizhanyo
> Sent: Tuesday, December 07, 2004 7:45 PM
> To: udm-users
> Subject: RE: [udm-users] newlines
>
> I think that's because you use DOM backend, and Xerces removes the
newlines..
>
> HTH,
> Attila
>
> -----Original Message-----
> From: Matthew J. Emerson
> Sent: Tuesday, December 07, 2004 17:46
> To: udm-users
> Subject: [udm-users] newlines
> Is there some UDM issue with newlines, where if you set a string-
> valued attribute of some object in UDM to a string which includes a
> newline, the newline is removed?
>
> Basically, in a GReAT transformation I?m setting an attribute to
>
> std::string("\n") + GetType(Parameter) + std::
> string("\t") + std::string(Parameter.name())
>
> Where GetType is a function I wrote which returns a string.
> Everything works fine, but when I look at the output model of the
> transformation, all of the newlines have been stripped out of that
> attribute value.
>
> --Matt_______________________________________________
> 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/20041208/36e00986/attachment.htm
More information about the great-users
mailing list