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

Re: Evaluation Criteria for Markup Languages

  • From: Michael Kay <mike@saxonica.com>
  • To: "Costello, Roger L." <costello@mitre.org>, "xml-dev@l..." <xml-dev@l...>
  • Date: Sun, 28 Aug 2011 23:37:30 +0100

Re:  Evaluation Criteria for Markup Languages

Very often XML is used to convey data which itself is a model of 
reality. If reality is complex, then the rules for the data may also be 
complex. An important criterion for assessing the markup language is not 
whether or not it is complex, but whether or not it is an accurate model 
of reality.

For example, the real-world "rules" for personal names and addresses are 
incredibly complex. If you assess a vocabulary for names and addresses 
by its complexity, then you may end up deciding that the best vocabulary 
is one that is in fact incapable of modelling the real world.

Of course, producing a simple model of a complex reality is a desirable 
goal; it's a process called abstraction and it's the key to all good 
design. But there's a difference between being simple and being 
simplistic, and it's very fine line between the two.


Michael Kay
Saxonica


On 28/08/2011 23:17, Costello, Roger L. wrote:
> Hi Folks,
>
> I propose the following two criteria for evaluating XML markup languages.
>
> -------------------
> Criterion #1
> -------------------
> Markup languages must clearly distinguish between:
>
> - Markup for expressing individual concepts, i.e., markup combinators.
> - Mechanisms for combining markup combinators. When markup is combined, the meaning of the combined markup must be specified.
>
> Analogy: each digit 0 - 9 expresses an individual, well-defined concept. The digits may be juxtaposed and the meaning of the combined digits is well-defined. Thus, each digit is a digit combinator and juxtaposition is the mechanism for combining them.
>
> Example: XML Schema does a good job with this criterion. For example, xs:element is clearly markup for expressing individual concepts, and xs:sequence is clearly a mechanism for combining them. The meaning of the combined elements is that they possess a sequential ordering.
>
> Example: The Extensible Business Reporting Language (XBRL) does a fantastic job of separating markup combinators from the mechanisms for combining them. In XBRL the markup combinators are defined in an XML Schema and the mechanisms for combining them are specified in a separate XLink document.
>
> -------------------
> Criterion #2
> -------------------
> The rules defined in markup languages must be general. Scientists and mathematicians are never satisfied with principles or theorems that apply in only some cases. They seek general rules. So too, markup language designers must seek general rules for combining markup. Rules that apply only some of the time--that is, rules with exceptions--must be avoided.
>
> Example: XML Schema does not do well with this criterion. Many of its rules have exceptions. Here are examples of rules with exceptions:
>
> Rule: a xs:sequence contains any xs:elements.
> Exception: if two xs:elements have the same name but different data types then they cannot both be in xs:sequence.
>
> Rule: The value of the base attribute in<xs:extension base="...">  must reference a xs:complexType.
> Exception: if the parent of xs:extension is xs:simpleContent then the value of the base attribute may reference either a xs:complexType or a xs:simpleType.
>
> John Cowan reports that XML Schema has nearly 100 rules with exceptions. These make the language difficult to use and understand.
>
> Comments?
>
> /Roger
>
>
> _______________________________________________________________________
>
> XML-DEV is a publicly archived, unmoderated list hosted by OASIS
> to support XML implementation and development. To minimize
> spam in the archives, you must subscribe before posting.
>
> [Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
> Or unsubscribe: xml-dev-unsubscribe@lists.xml.org
> subscribe: xml-dev-subscribe@lists.xml.org
> List archive: http://lists.xml.org/archives/xml-dev/
> List Guidelines: http://www.oasis-open.org/maillists/guidelines.php
>
>



[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.