W3C home > Mailing lists > Public > xmlschema-dev@w3.org > October 2010

Re: What would be the consequence of prohibiting local element and attribute declarations?

From: Cheney, Edward A SSG RES USAR <austin.cheney@us.army.mil>
Date: Sat, 16 Oct 2010 20:18:10 -0500
To: "Costello, Roger L." <costello@mitre.org>
Cc: "xmlschema-dev@w3.org" <xmlschema-dev@w3.org>
Message-ID: <f74288c17b18.4cba0882@us.army.mil>
Mandatory use of global declarations forces structural decisions be made intentionally through name reference so as to prevent accidents.  It also strongly encourages reuse.

Here is an example of a markup language I wrote where all the name declarations are global and still the language is fully expressive with a descriptive nature that I believe to be vastly superior and more extensible than HTML allows.  You can see in my example that no functionality is lost.


Please do not read any external documentation associated with that schema.  There is no documentation or annotation provided with the linked file aside from an inception date.  The linked file is, aside from the inception date, XML Schema code only.

Austin Cheney - CISSP

> Hi Folks,
> Suppose a team has this XML Schema design policy:
>   No local element or attribute declarations
>   are permitted. All elements and attributes
>   must be globally declared. 
> This policy strips the XML Schema language of a significant 
> functionality. What are the consequences? Specifically what things 
> will not be expressible because of this policy? Would this policy 
> result in the creation of XML Schemas that don't integrate with 
> other XML technologies?
> /Roger
Received on Sunday, 17 October 2010 01:18:49 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:15:57 UTC