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

Re: Namespaces and Parsers

  • From: james anderson <James.Anderson@m...>
  • To: "xml-dev@i..." <xml-dev@i...>
  • Date: Wed, 03 Jun 1998 20:23:03 +0200

xml illegal symbols
Peter Murray-Rust wrote:
> [lots about namespaces, including]
>
> There are some remaining problems:
> 
>         - unqualified names (i.e. prefix = null). Although I expect that in a
> year's time almost all XML will be using namespaces, there will be chunks
> which don't. Very often these will conform to a particular DTD (e.g. XHTML)
> but without qualification. I therefore have a (slightly dangerous)
> mechanism which I used in JUMBO1. It mapped all unqualified names to a
> prefix of "#DEFAULT" (a deliberately illegal Name). This could then be
> associated with a namespace either by an xml:namespace or through program
> operation. The advantage of this is that it then gives the user a chance to
> qualify their documents.
> 
this is a deficiency in the draft.
since you're dealing with "symbols" here (otherwise known as "universal
names"), and all symbols belong in a package ( to adopt a view from lisp), you
need a package for those symbols which do not themselves name a package. it
appears that you've been naming that package "#DEFAULT" and maintaining it as
a constant. if you go ahead and make it a first class value rather than a
special case, then there's no reason you can't bind any package to that prefix name.
as soon as the namespace spec provides a syntax for that operation, the
problem disappears. 
for my use i've just permitted the pi to contain "zero or one" prefix, with
zero meaning the namespace/package for names/symbols without prefixes.

bye for now,

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.