|
[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Namespaces and Parsers
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! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|
|||||||||

Cart








