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

Re: Why not PIs for namespace declarations?

  • From: james anderson <James.Anderson@m...>
  • To: XML-DEV <xml-dev@i...>
  • Date: Fri, 24 Dec 1999 15:04:34 +0100

Re: Why not PIs for namespace declarations?
Arjun Ray wrote:
> 
> On Thu, 23 Dec 1999, David Brownell wrote:
> 
> > What you're suggesting is that PIs be lexically scoped.
> > (That's what Andrew seems to mean by "tree" scope.)
> 
> Especially "local".  The "requirement" that had to be met, apparently, was
> that the syntactic device announcing a "local" lexical scope had to be
> "locally" available itself (thus ruling out, e.g., stuff in the internal
> subset that would be indefinitely "far away".)

I surmise that "stuff" here refers to a PI which would have preceeded or
followed the respective element tag. If this was the reason which, in fact,
swayed the decision, the cited quotation obtains a remarkable irony.

> 
> > And in fact, there's nothing in the world preventing the definition of
> > a particular PI from using lexical scope. One doesn't need all PIs to
> > work that way; only one.
> 
> Yes.  There are only two natural scoping constructs in XML: elements and
> marked sections.  There was no consensus on how MS syntax could be
> extended (if at all), so the issue effectively became one of working with
> the element structure.  A PI pointing to an ID could have been enough.
> 

As XML had, to that point in time, neither a storage nor a processing model,
any arguments regarding "natural" whould have been most suspect. A claim, for
example, that the present encoding does not place the encoding for the
namespace binding "indefinitely far away" from the encoding for the respective
element type depends on the presumption of a procesing structure akin to that
proposed in the recent strawman sax2. Namely one in which interning the type
name is deferred until the attributes have been read. A PI encoding with a
lexical scope covering the immediately succeeding element would not have made
this presumption.

> > I've no intention of reopening the debate on this topic (we're stuck
> > with attributes), but I've got this strange belief that truth should
> > be told, so I couldn't let this one slip by.
> 
> On the archive we've been refered to for the details, it was quoted:
> 
> "The making of laws, and of sausages, should be hidden from children"
>


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/ and on CD-ROM/ISBN 981-02-3594-1
To unsubscribe, mailto:majordomo@i... the following message;
unsubscribe 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.