[kepler-dev] ptolemy text attribute question
Edward A. Lee
eal at eecs.berkeley.edu
Mon Aug 22 13:49:04 PDT 2005
There is ConfigurableAttribute.
The plotter uses this for example to include "foreign" XML as
a parameter value for the actor. To see it, put a SequentialPlotter
actor in a model, change its formatting (by clicking on the format
button in the plot), and look at the resulting XML.
The fact that the plotter's CDATA is XML is irrelevant...
It could be arbitrary text (almost).
At 01:18 PM 8/22/2005 -0700, Chad Berkley wrote:
>I've been trying to figure out how to define an Attribute that allows
>the use of CDATA within the body of the <property> element. For instance:
> This is some docs...
>I don't see any current Attributes that will do this and upon looking at
>the MoMLParser code, it doesn't look like they can do this because the
>_handlePropertyElement() method is called before the charData() method
>gets called to handle the character data inside the element. This seems
>to limit the xml author to only including text inside the "value"
>attribute of the element. This would normally be fine, but I would like
>to include a lot of text. Maybe hundreds of lines. Putting the text
>into the "value" attribute doesn't lend itself to this very well.
>So, my question is, am I missing something and if not, would anyone
>object to me modifying the MoMLParser to be able to accept CDATA in leiu
>of the "value" attribute in a property element?
>Kepler-dev mailing list
>Kepler-dev at ecoinformatics.org
Edward A. Lee
Professor, Chair of the EE Division, Associate Chair of EECS
231 Cory Hall, UC Berkeley, Berkeley, CA 94720
phone: 510-642-0253 or 510-642-0455, fax: 510-642-2845
eal at eecs.Berkeley.EDU, http://ptolemy.eecs.berkeley.edu/~eal
More information about the Kepler-dev