[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: HTML5 and almost no namespaces

  • From: John Cowan <cowan@mercury.ccil.org>
  • To: David Lee <dlee@calldei.com>
  • Date: Thu, 2 Jun 2011 12:19:35 -0400

Re:  HTML5 and almost no namespaces
David Lee scripsit:

> A suggest in this example namespaces are irrelevant.  A scheme (or as
> you say the context) can clearly distinguish between the two "title"
> elements (they could be defined as local elements).

Certainly.  The question I was addressing is this: Is it good design
to use the same name for elements that have truly different semantics,
which is a sort of pun?  I'd say no, even if context disambiguates:

<myStuff>
  <rock>
    <hardness>7</hardness>
    <!-- on the Mohr scale: as hard as quartz -->
  </rock>
  <booze>
    <hardness>50</hardness>
    <!-- alcohol content: could be U.S. proof, U.K. proof, or percentage,
         you have to look in the documentation -->
  </booze>
</myStuff>

This design rule is orthogonal to the use of namespaces.

-- 
John Cowan   cowan@ccil.org    http://ccil.org/~cowan
If a soldier is asked why he kills people who have done him no harm, or a
terrorist why he kills innocent people with his bombs, they can always
reply that war has been declared, and there are no innocent people in an
enemy country in wartime.  The answer is psychotic, but it is the answer
that humanity has given to every act of aggression in history.  --Northrop Frye


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


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.