ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> xml-dev
xml-dev
Re: [xml-dev] Vocabulary Combination and optional namespaces
by Arjun Ray other posts by this author
May 30 2003 10:32PM messages near this date
Re: [xml-dev] Vocabulary Combination and optional namespaces | Re: [xml-dev] Vocabulary Combination and optional namespaces
"W. E. Perry" <wperry@[...].com>  wrote:

| As a poetics of vocabulary application and control it is comprehensive, 
| elegant and efficient--

Well, there are some details I left out, but yes, comprehensiveness is
easy here.  Elegance, I would think, flows from the protean simplicity of
the attribute mechanism - the name of the attribute dedicated to denoting
a semantic association, and the value to carry a referent instantiation -
especially when the referent is information of an externally fixed form
(such as a predefined name!).  

Efficiency is a different matter though.  Everyone rightly quails at the
prospect of verbose markup.  So, there's room to devise defaulting schemes
("scoping" is just a fancy word for minimization) at the cost of extra
processing overhead in the parser-level module supporting all this, but
there's no getting around the fact that at the level of "primitive"
discrimination operations, something is being "said" at each start-tag.

I might add that the principal difference between the schematic outlined
here and classical ArchForms is the lack of any dependency on schema
information.  The defaulting scheme in AFs, for instance, relies on schema
driven parsing ("auto-recognition of architectural names and content"),
besides of course requiring the original document to be itself valid
comprehensively with respect to some DTD.  This is an unnecessarily strong
coupling of vocabulary combination (which *can* be done through instance
markup alone) with schema combination (which *is* a much harder problem.)

| though it is not immediately concerned with ease of programmer's access 
| to the manipulation of XML

Filters can be built on something as simple as SAX1.  First, all names are
atomic strings - no slicing and dicing.  Second, support will be needed
for tokenization of control strings to get the mappings into usable form.
Third, the difference between this and SAX2-style namespace processing
will probably take the form of associating a namespace constant (the
"name" of the vocabulary itself) with *groups* of names - corresponding to
the relevants set of GI+attributes reconstituted into vocabulary specific
form - rather than individual names.  Sort of like viewing each element as
having potentially multiple interpretation contexts.

And believe it or not, for generic or formal organizational purposes such
as these, we could actually put colons to use, taking advantage of the
far-sighted move to include it in XML as a name-start character.  For
instance, we could require conventionally that all control attributes have
names starting with a colon, to indicate that they have significance for
*parsing* only, and are not part of the semantic freight for any of the
relvant vocabularies in the document.

(And as a side note, we might consider the use of just ':' by itself as
the conventionl name of the ID attribute!)


-----------------------------------------------------------------
The xml-dev list is sponsored by XML.org <http://www.xml.org> , an
initiative of OASIS <http://www.oasis-open.org> 

The list archives are at http://lists.xml.org/archives/xml-dev/

To subscribe or unsubscribe from this list use the subscription
manager: <http://lists.xml.org/ob/adm.pl> 
Thread:
Arjun Ray
Rick Jelliffe
james anderson
james anderson
K. Ari Krupnikov
Bob Foster
Arjun Ray
Thomas B. Passin
Thomas B. Passin
Bob Foster
Arjun Ray
K. Ari Krupnikov
Arjun Ray
K. Ari Krupnikov
Thomas B. Passin
Simon St.Laurent
Jonathan Borden
Thomas B. Passin
K. Ari Krupnikov
Arjun Ray
Simon St.Laurent
Chiusano Joseph
Arjun Ray
Chiusano Joseph
Chiusano Joseph
Arjun Ray
Thomas B. Passin
K. Ari Krupnikov
Arjun Ray
John Cowan
Arjun Ray
Bob Foster
W. E. Perry
Arjun Ray
Chiusano Joseph
Chiusano Joseph
Chiusano Joseph
W. E. Perry
Chiusano Joseph
Thomas B. Passin
Arjun Ray
John Cowan
Arjun Ray
John Cowan
Arjun Ray
K. Ari Krupnikov
james anderson
Arjun Ray
james anderson
Arjun Ray
Rick Jelliffe
james anderson
Arjun Ray
Jonathan Borden
=?ISO-8859-1?Q?Bill_de_h=D3ra?=
Arjun Ray
W. E. Perry
Arjun Ray
Rick Jelliffe
james anderson
Arjun Ray
Rick Jelliffe
Arjun Ray
Rick Jelliffe
Arjun Ray
james anderson
Simon St.Laurent
james anderson
Rich Salz
Jaywanth
Seairth Jacobs
Joe Gregorio
Arjun Ray
Arjun Ray
John Cowan
Simon St.Laurent
Arjun Ray
Paul Prescod
Arjun Ray
Paul Prescod
Arjun Ray
Tim Bray
MURATA Makoto
Arjun Ray
J.Pietschmann
Arjun Ray
Jason Diamond
Tim Bray
Tim Bray
Simon St.Laurent
Joe Gregorio
Paul Prescod
W. E. Perry
james anderson
james anderson
james anderson
Jonathan Borden
Miles Sabin
Simon St.Laurent
Jonathan Borden
Simon St.Laurent
W. E. Perry
Jonathan Borden
Simon St.Laurent
Thomas B. Passin
Jonathan Borden
Miles Sabin
Simon St.Laurent
Simon St.Laurent
Simon St.Laurent
Simon St.Laurent
Simon St.Laurent
Jonathan Borden
=?ISO-8859-1?Q?Bill_de_h=D3ra?=
Jonathan Borden
Miles Sabin
=?ISO-8859-1?Q?Bill_de_h=D3ra?=
james anderson
=?ISO-8859-1?Q?Bill_de_h=D3ra?=
Tim Bray
james anderson
John Cowan
=?ISO-8859-1?Q?Bill_de_h=D3ra?=
Arjun Ray
W. E. Perry
james anderson
=?ISO-8859-1?Q?Bill_de_h=D3ra?=
Joe Gregorio
Joe English
Paul Prescod
Joe English
Arjun Ray
=?ISO-8859-1?Q?Bill_de_h=D3ra?=
Simon St.Laurent
Arjun Ray
Joe English
Simon St.Laurent
Simon St.Laurent
Arjun Ray

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved