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

Re: More on Namespaces (also long, but also optimistic)

  • From: "David G. Durand" <dgd@c...>
  • To: XML Dev <xml-dev@i...>
  • Date: Sun, 16 Aug 1998 20:52:00 -0400

namespace standard
At 6:53 PM -0400 8/16/98, james anderson wrote:
>Peter Murray-Rust wrote:
>> ><?namespace prefix='VanityHG' ns="http://VanityHouseAndGarden.org.uk" ?>
>>
>> I'm lost with these PIs. I thought they had disappeared....
>>
>
>Ah, but since the standard no asserts an interpretation for them which
>precludes validation, a processor is free to use them in a way which
>enables validation.

I am assuming you meant to type "now asserts an interpretation..."

But this isn't true. It provides a facility which can be used in a
validation compatible way (just as the original facility), and which can
also be used in a validation-incompatible way, just like the earlier one.
In both cases you need to know what's in the instance to create a DTD which
will make an instance valid  -- that's an ineveitable side-effect of mixing
"namespaces" with out a namespace-aware validator. Interestingly, this
gives you no worse validation than architectural forms do, although AF
validation was one argument againt AFs and _for_ namespaces...  Anyway
that's water under the bridge.

The thing that the current proposal gives you if you are _not_ validating
-- and I take the NS people at their word when they claim that they think
they can live without validation -- is the ability to limit the scope of a
namespace prefix declaration, and thus, limit the region of the document
within which that prefix cannot be used to declare another namespace.

Since a prefix is essentially a variable, bound to a URI, and used to
differentiate like-named elements, this kind of scoping mechanism is not
unsensible.

The contextual dependency implied by the element-nesting of declarations
may create entity re-use problems, but with care those problems can be
avoided. Many people argue that there are other problems with entity reuse
(David Megginson and Eliot Kimber are two worthy adherents to this belief).

>Take them, for the sake of discussion, to establish a prefix/URI binding for
>which the scope is the remainder of the logical entity in which they appear.

To the extent that you are proposing a separate namespace standard, I hope
that you are unsuccessful. It's a hard thing sometimes to buckle under to
the fact that much of the time _any_ standard that is accepted is in fact
better than a custom solution that is not accepted.

Namespaces per se are unnecessary, since Architectural Forms can do the
same thing, but since we have a decent namespace standard, we should use it
where it makes sense.

  -- David

_________________________________________
David Durand              dgd@c...  \  david@d...
Boston University Computer Science        \  Sr. Analyst
http://www.cs.bu.edu/students/grads/dgd/   \  Dynamic Diagrams
--------------------------------------------\  http://www.dynamicDiagrams.com/
MAPA: mapping for the WWW                    \__________________________



xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@i...
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/
To (un)subscribe, mailto:majordomo@i... the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo@i... the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@i...)


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.