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

RE: Include data that may be objectively generated some day?

  • From: "David Lee" <dlee@calldei.com>
  • To: "'Michael Kay'" <mike@saxonica.com>, <xml-dev@l...>
  • Date: Mon, 28 Nov 2011 12:55:38 -0500

RE:  Include data  that may be objectively generated some day?
I think "Foresight" is the key.  Fundamentally this is the same
problem/question on any DB/Data language/platform.  What is the effect of
adding an unused "future" field to say
* A relational Table
* A C++ or Java object
* A method signature
* A paper form
* A contact 
* Your desk drawer
* A wall outlet
* A standard connector (DB25 etc. ...)

The difference, IMHO, with XML is in the greater likelihood of data
*interchange* ... although it may be similar to say a field in a web
service.

My opinion

1) Unless you *are absolutely certain* what this field will be in the future
and how it is supposed to be interpreted, and is documented.  Don't do it.

2) If you do it,  make it *optional* so that document instances do not have
to populate this "future" field/attribute.

3) Create a V1 schema which makes the field required to be empty (???)
OR
4) Why not simply omit it from the V1 schema ? and add it later if needed ?

5) Don't do it.




----------------------------------------
David A. Lee
dlee@calldei.com
http://www.xmlsh.org

-----Original Message-----
From: Michael Kay [mailto:mike@saxonica.com] 
Sent: Monday, November 28, 2011 12:41 PM
To: xml-dev@lists.xml.org
Subject: Re:  Include data that may be objectively generated some
day?


 >More generally, what will be the consequence of adding this element to 
the Book XML vocabulary?

It's an open invitation to tag abuse: someone will discover that nothing 
breaks if they use this field to hold a readability metric for the book, 
and so they will use it for that, or for something else.

Of course, "tag abuse" is a loaded term. I have seen examples where tag 
abuse delivered superb new functionality in a system at very low cost. 
But perhaps that could have been achieved without tag abuse if the 
designers had had more foresight.

Michael Kay
Saxonica


_______________________________________________________________________

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.