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

RE: Namespaces, schemas, Simon's filters.

  • From: "Fuchs, Matthew" <matthew.fuchs@c...>
  • To: "'francis@r...'" <francis@r...>
  • Date: Tue, 21 Aug 2001 11:45:58 -0700

xml processor design
Francis,

> -----Original Message-----
> From: Francis Norton [mailto:francis@r...]
> Sent: Tuesday, August 21, 2001 2:07 AM
> To: Fuchs, Matthew
> Cc: 'Tim Bray'; Xml-Dev
> Subject: Re: Namespaces, schemas, Simon's filters.
> 
> 
> 
> 
> "Fuchs, Matthew" wrote:
> > (an explanation for the default setting of elementFormDefault)
> 
> Thank you. This is the first explanation of the issue that I've found
> plausible and helpful. Could I summarise it by saying something like
> this?:
> 
> Namespaces provide a semantic context for processing 
> marked-up messages.
> A processor for a namespace is any program that knows how to process
> elements in the namespace. The fact that global elements may not have
> the same name but different types clearly simplifies processor design.
> Local elements, which may in different contexts have the same 
> names but
> different types, could complicate processor design. So taking them out
> of the namespace enforces a dependency on their ancestral global
> element, within which sub-context they are once again guaranteed to be
> uniquely typed, and processor design is once again simplified.
> 
> Francis.
> 

Almost.  The goal behind local elements is the same as the goal behind
namespaces - they're an extension of the requirement to allow a local name
to refer to different types while allowing those uses to be distinguished.
With namespaces, the goal was to distinguish local names from different
sources (intentionally vague).  With local names it's to distinguish names
from different contexts within a schema.  The NS rec provides a design
(namespaces) and an implementation (prefixes) for fulfiling their goal.
Local elements are a design for the extended goal, and XSDL provides one
implementation which functions as you specify, and another which doesn't.
I, personally, don't like either, even though I once argued vociferously for
the former implementation.

But yes, the goal should always be to aid processor design, in the general
sense of processor you give (which, of course, includes you and me).

Matthew

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.