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

Re: X-Schema syntax

  • From: Andy Dent <dent@o...>
  • To: xml-dev@i...
  • Date: Tue, 29 Jun 1999 05:14:10 +0800

schemae
At 17:17 -0400 27/6/99, Paul Prescod wrote:
>Although I am in favor of instance syntax in general I think that
>recasting regular expressions as nested elements is a big mistake from a
>usability point of view and a very small gain from an ease-of-parsing
>point of view.

I'm really not sure I understand what you're talking about here so 
the following comments may be totally inapplicable, but I think my 
point below is still valid.

 From a usability point of view (which drives a LOT of my API design) 
I think it is much easier for most people to understand definitions 
in context.

Many document types, and particularly database documents, will define 
elements that are only meaningful in a larger context (eg: LastName 
within Person).

The X-schema and DTD modes seem to support only defining all atomic 
elements separately from a context saying where they are used.

This requires the reader and writer of these schemae to build an 
abstract model in their heads that puts the definitions in context.

For both machine and human reading and writing of schemae, where 
nested contexts are meaningful, I found the following variation much 
easier to follow.

So did the programmers I tested it on - as a UI designer of several 
years experience I'm not so bold as to propose something on usability 
grounds without a focus group :-). The test group I picked range in 
programming experience, database experience and programming 
languages(VB, C & C++). The only common factor was their lack of XML 
or SGML background.

The contextual definition of elementTypes which are atomic 
(containing a dataTypeRef) also allows for reuse of element names 
which is essential for writing out database schemae.

       <elementType name='dbStudents'>
          <elementType name='Last_Name'>
             <datatypeRef name='string' length='25'/>
          </elementType>
          <elementType name='First_Name'>
             <datatypeRef name='string' length='15'/>
          </elementType>
       </elementType>

Andy Dent BSc MACS AACM, Software Designer, A.D. Software, Western Australia
OOFILE - Database, Reports, Graphs, GUI for c++ on Mac, Unix & Windows
PP2MFC - PowerPlant->MFC portability
http://www.oofile.com.au/

xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@i...
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/ and on CD-ROM/ISBN 981-02-3594-1
To (un)subscribe, mailto:majordomo@i... the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo@i... the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@i...)



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.