[Home] [By Thread] [By Date] [Recent Entries]

  • From: John Cowan <johnwcowan@g...>
  • To: "Costello, Roger L." <costello@m...>
  • Date: Fri, 7 Oct 2016 15:23:20 -0400


On Fri, Oct 7, 2016 at 2:20 PM, Costello, Roger L. <costello@m...> wrote:

<graduation date="2012-03-21"/>

<event type="graduation" date="2012-03-21"/>

The first design uses a “hardcoded approach to XML design.” The <graduation> element hardcodes the event.

In the generic approach the semantics is in the attribute value. In the hardcoded approach the semantics is in the element name.


They are both hardcoded: in one case the element name is hardcoded, in the other, the attribute name is hardcoded.   In fact, element names ("general identifiers" in SGML-speak) are simply the values of an attribute that has no name.

--
GMail doesn't have rotating .sigs, but you can see mine at http://www.ccil.org/~cowan/signatures


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member