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

Re: XML Schema design: buffet or set menu?

  • From: Peter Flynn <peter@silmaril.ie>
  • To: xml-dev@lists.xml.org
  • Date: Sat, 3 Apr 2021 15:00:39 +0100

Re:  XML Schema design: buffet or set menu?
On 03/04/2021 14:03, Roger L Costello wrote:
Hi Folks,

As you know, a restaurant that offers a buffet style of dining lays out all foods on tables and then customers select the items they want. With a set menu style of dining the customer makes a choice and that determines all the items the customer will receive.

Should an XML Schema be written like a buffet: create a long list of optional elements and then let the instance document author select whichever ones he desires?

Or should an XML Schema be written like a set menu: there is a choice and once the instance document author selects a choice, that determines all the elements for that choice?
This is known as the Prescriptive vs Descriptive choice and is covered in many books and other documents on document type design (I included a question on it in my research on editor usability, Q.3.4.3.11 on p.199 at https://cora.ucc.ie/bitstream/handle/10468/1690/Human-Interfaces-to-Structured-Documents.pdf#page=228, and there is a section also in my book on SGML and XML Tools at http://xml.silmaril.ie/downloads/markup-uses.pdf).

Generally, it should be driven by the user requirements, if these are well-known, but it may also be driven by exogenous requirements like safety.

Peter

--
Peter Flynn
Cork 🇮🇪 Ireland 🇪🇺


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