[great-users] RE: [udm-users] newlines

Feng Shi fengshi at isis.vanderbilt.edu
Wed Dec 8 13:15:53 CST 2004


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 the
newlines..

 

 

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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://list.isis.vanderbilt.edu/pipermail/great-users/attachments/20041208/80af3e99/attachment.htm


More information about the great-users mailing list