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

RE: Why not PIs for namespace declarations?

  • From: "Clark C. Evans" <clark.evans@m...>
  • To: Andrew Layman <andrewl@m...>
  • Date: Thu, 23 Dec 1999 15:01:00 -0500 (EST)

RE: Why not PIs for namespace declarations?
On Thu, 23 Dec 1999, Andrew Layman wrote:
> Clark Evans asks why PIs are not the mechanism for namespace declaration.
> That option was extensively debated during the design process (see the
> archives for details).  The short answer is that PIs do not have tree scope,
> so are unsuitable for modular document construction.

This specific problem points out to a flaw in the PI 
mechanism that could have been fixed... rather than 
creating a "work-around" -- as David pointed out, not
many tools were compliant anyway!  For example, this 
could have been easily fixed by altering the XML syntax 
to allow for PI's to occur within elements...

<parent>
  <child>
    <?pi?>
    <grandchild/>
    <!-- pi's scope ends here -->
  </child>
</parent>

I'm sure the "backward compatible" drum was used,
however, in the XML world, unlike the bulk of
programming tradition, the data outlives the
program, not the other way around.   Thus, this
would have been backward-data compatible, which
is the only concern.  Specific versions of programs
typically have a shelf life for less than 2-3 years,
where data can last for decades.  On the other hand, 
how is having xmlns:prefix="uri" going to mess up
programs that expect processing instructions to
appear in PIs -- ones that show attributes directly
to end-users.

So, is a long-term fix in the works?  Or are we going 
to keep using attributes for processing instructions
and deprechate the unapprechiated PI mechanism?

Best,

Clark




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.