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

Re: XML Schemas: Best Practices

  • From: Francis Norton <francis@r...>
  • To: "Roger L. Costello" <costello@m...>, xml-dev <xml-dev@l...>
  • Date: Tue, 28 Nov 2000 09:59:14 +0000

grammar best practices
"Roger L. Costello" wrote:
> 
> What do you think?  When you create a schema component should that
> component be expected to have the same semantics regardless of the
> application that uses it, i.e., universal semantics?  Or, should the
> component be able to "semantic-morph" to each application, i.e.,
> localized semantics?
> 
Syntax has to serve a purpose to succeed. But the "purpose" might be as
specific as a UK 2001 tax return or as general as XML-Schema. (How do
you tell the difference? Which of the two has a clear, black-and-white
functional requirement and a single, simple test for its success or
failure?)

Single-purpose grammars will have different change and evolution issues
from multi-purpose grammars. If you borrow a component from a
single-purpose grammar for different purpose you may find that the
grammar and associated tools evolves in ways that make it unsuitable for
your requirement.

I think that successful grammars will have clear documentation about how
specific or general their semantics are. Best practice in designing and
using schema components will be to follow best practice for component
design and usage in general, including allowing for evolution, and to
document how specific or flexible the component is intended to be.

A last thought - sometimes looking at how to do something wrong can cast
light on how to do it right. I am told that one of the problems of EDI
is that the spec is so rigid, and it is so hard to achieve official
variation (top-down authorisation required) that normal working practice
is to grab unused elements and re-use them to accomodate elements
missing from the official schema - I've certainly seen this happen in
corporate databases. How does that effect XML Schema best practices?

Francis.
-- 
Francis Norton.

why not?

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.