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

Re: Namespace and URIs


due to abuse
Jonathan Borden wrote:
> 
>....
> 
> Note that the XML Namespaces recommendation states that XML namespaces _do_
> have internal structure (but does not specify what the structure is).
> 
> Formally, a space may generally be described as a pair:
> 
> <name, node*>
> 
> (This can be pictured by drawing a rectangle around a piece of a graph and
> giving it a name)
> 
> In the case of an XML Namespace:
> 
> <nsURI, term*>

It's more complicated than that because of this:

  http://www.w3.org/TR/REC-xml-names/#Philosophy

> In the RDDL model, each term can be represented as the ID of the
> rddl:resource element -- in this case the set of rddl:resource elements
> defines a set of names.

The spec says only:

4.1 id

The id attribute value may be used to give the resource description a
unique identifier.

How would I know reading the spec that these IDs are supposed to be
element type or attribute names? Also, how would I talk about an
attribute of an element where the attribute has no prefix.

And with all due respect to RDDL, the fundamental question of how to
combine namespaces is left un-addressed. So we've got the gravy but not
the meat. 

For example, I could argue that vocabulares which embed XHTML (like
RDDL) abuse it, or that XSLT does so when it uses XHTML elements as
literal result elements. If namespaces mean something beyond punctuation
then one or the other must be wrong.

I do know that I am miles away from a situation where: "a single XML
document may contain elements and attributes (here referred to as a
"markup vocabulary") that are defined for and used by multiple software
modules." 

Sure, I can do this today if I have a priori knowledge of how the
namespaces combine in a *particular document*. But in general I cannot
pick out the HTML:title elements and do anything useful with them
because in an XSLT or SOAP context they mean something totally different
than in a RDDL context. And you certainly can't know what I mean by them
here:

<foo:bar><html:title>Blah</html:title></foo:bar> (please assume
appropriate nsdecls)

So I need a priori knowledge, transmitted out of band. But if I depend
upon information transmitted out of band then I could just as easily
have transmitted the information of how to map local names like HTML_P
to global names without the headache of namespace declarations and URIs.
This information could be transmitted using either a DTD with
architectural forms or a schema with schema derivation.

If namespace URIs are to be useful to machines then they should be
pointers to the machine-readable information necessary to interpret what
it means for one namespace to occur within another. Considering the
range of namespace (ab)uses available today, from SOAP to XSLT to RDDL,
I can't imagine what that resource would look like. This suggests to me
that it is safest to view namespaces as "just punctuation" and not try
to do software dispatching on them without out-of-band knowledge that
this actually works for the particular process you are trying to execute
and the particular document you are working with.

> Each term or ID is itself associated with the rddl:resource tuple:
> 
> <id, nature, purpose, lang, href> [1]
> 
> Jonathan
> 
> [1] http://www.openhealth.org/RDDL/rddl.extreme.xml

wget http://www.openhealth.org/RDDL/extremepaper.xml.dtd

Connecting to www.openhealth.org:80... connected!
HTTP request sent, awaiting response... 404 Not Found
16:44:16 ERROR 404: Not Found.

 Paul Prescod

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.