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

  • From: Peter Flynn <peter@s...>
  • To: xml-dev@l...
  • Date: Sun, 27 Feb 2022 17:42:22 +0000

On 27/02/2022 16:22, G. Ken Holman wrote:
> Attribute vs. element has been long debated since SGML days. I think 
> someone may have picked up the movie rights.
Certainly NOT the SGML FAQ (http://www.flightlab.com/~joe/sgml/faq-not.txt):

>> Q. I'm designing my first DTD.  Should I use elements or 
>>    attributes to store data?
>> 
>> A. Of course.  What else would you use?
>> 
>> 
>> Q. What is the usual way to choose between using attributes >>    and children?
>> 
>>    [Update from David Carlisle:]
>> 
>>    In England, the normal method is to flip a coin in the air 
>>    and call heads it's attributes, tails it's children.
>> 
>>    Unfortunately I'm not sure what to suggest in other countries
>>    where you can't guarantee having the Queen's head on one side
>>    of every coin.

Peter


[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