From: Dagmar W. <dag...@un...> - 2010-06-24 12:36:54
|
Richard Adams wrote: > Hi Dagmar, > I thought we'd agreed that the add/remove/change elements were to be > subelements of a 'changeXML' parent element. First, I thought to do that, too. But for RemoveXML a "newXML" attribute (as needed in AddXML and ChangeXML) would not be suitable anymore. So I thought to have them in parallel instead. > But this looks fine. > We could rename to 'xxxElement'? as this doesn't have so much XML > connotation. > Hmm, but xxxElement excludes xxxAttributes (from the XML point of view). For me, it would imply somehow that only (XML) elements are addressable. Could we just call them "Add", "Remove" and "Change" maybe (not absolutely convinced myself)? > Cheers > Richard > > >> Hello all, >> >> just to summarize the discussion we had on the Change class, and what I >> think is the current solution. >> >> The way that most people would like to go is having different classes >> AddXML, RemoveXML and ChangeXML. >> >> In the class hierarchy that might look like: >> >> - Change >> --- ComputeChange >> (to compute a change of a piece of XML addressed by an XPath by whatever >> the mathML expression defines) >> --- AddXML >> (to add a piece of XML as sub-element nested in the element addressed by >> an XPath) >> --- RemoveXML >> (to remove exactly the piece of XML that is addressed by the XPath) >> --- ChangeXML >> (to replace a piece of XML addressed by an XPath by what is inside the >> "newXML" attribute) >> >> >> Could we get rid of the ChangeAttribute class then? >> >> Does anyone want a different naming of yyXML in case we want to move >> away from XML in the future or is there no necessity for that? >> >> Does anyone want to see examples for how the changes would look like in >> a SED-ML XML file? >> >> If no complaints I will update the XML/UML accordingly. >> >> Dagmar >> >> ------------------------------------------------------------------------------ >> ThinkGeek and WIRED's GeekDad team up for the Ultimate >> GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the >> lucky parental unit. See the prize list and enter to win: >> http://p.sf.net/sfu/thinkgeek-promo >> _______________________________________________ >> SED-ML-discuss mailing list >> SED...@li... >> https://lists.sourceforge.net/lists/listinfo/sed-ml-discuss >> >> >> > > > > |