OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   Re: X-Schema syntax

[ Lists Home | Date Index | Thread Index ]
  • From: Andy Dent <dent@oofile.com.au>
  • To: xml-dev@ic.ac.uk
  • Date: Tue, 29 Jun 1999 05:14:10 +0800

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@ic.ac.uk
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@ic.ac.uk the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo@ic.ac.uk the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@ic.ac.uk)






 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS