|
[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Namespaces !
Patrice Bonhomme wrote: > cowan@l... said: > ] The draft also says, "The namespace declaration is considered to apply > ] to the element where it is specified and to all elements within the > ] content of that element, unless overridden [...]." > > If the draft says it..... It sounds strange. My parser reads a tag name > (prefix+local) of an Element and has to wait for the namespace declaration to > qualified this name. For me, it is as if we put the Element Declaration > within the open tag of this Element, unthinkable. Not much of a problem, really, at least for SAX-style parsers that return the GI and the attribute map at the same time. > cowan@l... said: > ] All names beginning "xml" or "XML" or "xML" or whatever are already > ] reserved. > > I agree. But 'xmlns' is not xml! But "xmlns" *begins* with the string "xml", which is what is reserved. *Any* name beginning with those three letters is reserved, like "xml-foo" or "xml:bogus" or "xmlxml". > It is a detail. I'd use : > <?xml:namespace ns="urn:ISBN:0-395-36341-6" prefix="isbn"?> The trouble is that PIs don't nest within the element structure, and the whole point of the new draft (IMHO) is to localize prefix definitions so they are not just document-global. -- John Cowan http://www.ccil.org/~cowan cowan@c... You tollerday donsk? N. You tolkatiff scowegian? Nn. You spigotty anglease? Nnn. You phonio saxo? Nnnn. Clear all so! 'Tis a Jute.... (Finnegans Wake 16.5) 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








