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

Re: XML Schemas: Best Practices

  • From: Rick Jelliffe <ricko@a...>
  • To: xml-dev@l...
  • Date: Sat, 06 Jan 2001 16:36:52 +0800

xml schema best practise
 I'm not really sure if this applies, but I am very wary of the idea of
abstract "containers" unless they are treated as degerenate skeletons (i.e.
a skeleton with no head and an implied body grouping its contents): the
    skeleton
        head (housekeeping/metadata)
        body (data)
abstract structure runs throughout XML, from the bottom (attributes=head,
content=body) to the top (most DTDs seem to end up with a metadata section
if they evolve long enough.

So when thinking about adding information items to abstract containers, I
think it is best practise to first figure out if the intended information
item belongs (either for semantic/coherence reasons or operation reasons to
allow stream-processing or) in a head section that the container may not
have previously had.

Following this line of thought, I guess that it would be best practise for
public, extensible containers (not being presentation-oriented) to always
have some provision for a head element (the body element does not always
need to be explicit).  This might be an optional abstract element at the
start of the content model, for example.

One advantage of this is that it can allow localized metadata, during
cut-and-paste of a branch, it provides a parking space for information that
otherwise would be lost from the original context (given that we are still
along way from handling fragment-exchange context specifications during
cut-and-paste.)

Cheers
Rick Jelliffe


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.