OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help



   Vocabulary Combination

[ Lists Home | Date Index | Thread Index ]

We have it from unimpeachable authority that the Namespace mechanism isn't
really for "vocabulary combination" (even though the "Motivation" section
of the spec would seem to suggest that it might be).  Thus in


it is written: "The only reason namespaces exist, once again, is to give
elements and attributes programmer-friendly names that will be unique
across the whole Internet."

Nevertheless, the use of namespaced names raises interesting questions
from the perspective of vocabulary combination.  Consider the example from
the article cited above:

  <h:html xmlns:xdc="http://www.xml.com/books";
   <h:head><h:title>Book Review</h:title></h:head>
     <xdc:title>XML: A Primer</xdc:title>
      <h:tr align="center">
      <h:tr align="left">
       <h:td><xdc:author>Simon St. Laurent</xdc:author></h:td>

Let's suppose I want to reconstruct an "html view" and a "books view" of
this document.  One reason for this could be that I have dedicated modules
for the html and books vocabularies (assuming, of course, that a namespace
entitles me to think of a vocabulary), and I would like a parser-level
filter to feed each module separately with only the input it's designed to
handle.  Or I have just one module - say for the books vocabulary - and
I'd like to filter out irrelevant junk.

Judging from the intent of the example, I hypothesize that the relevant
views are, for the html-vocabulary:

    XML: A Primer
     <tr align="center">
     <tr align="left">
      <td>Simon St. Laurent</td>

and for the books-vocabulary: 

     <title>XML: A Primer</title>
     <author>Simon St. Laurent</author>

If this is acceptable, then my question is: What is the decision procedure
by which a generic parser-level filter could generate these views, if it's
to take namespaced names as a guide?

"It can't be done" is an acceptable answer, btw.


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS