Edward A. Lee
Mon, 22 Aug 2005 15:10:16 -0700
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). Edward At 01:18 PM 8/22/2005 -0700, Chad Berkley wrote:
Hi, 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: <property name="documentation" class="org.kepler.moml.DocumentationAttribute"> This is some docs... </property> 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? thanks, chad _______________________________________________ Kepler-dev mailing list [EMAIL PROTECTED] http://mercury.nceas.ucsb.edu/ecoinformatics/mailman/listinfo/kepler-dev
------------ 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[EMAIL PROTECTED], http://ptolemy.eecs.berkeley.edu/~eal
---------------------------------------------------------------------------- Posted to the ptolemy-hackers mailing list. Please send administrative mail for this list to: [EMAIL PROTECTED]