[Home] [By Thread] [By Date] [Recent Entries]

  • From: Dan Brickley <Daniel.Brickley@b...>
  • To: XML Developers' List <xml-dev@i...>
  • Date: Tue, 9 Feb 1999 09:42:51 +0000 (GMT)

On Tue, 9 Feb 1999, Ronald Bourret wrote:

> Lars Marius Garshol wrote:
> 
> By the way, I was a little surprised to read that expat does not pass xmlns 
> attributes to the application.  I had always assumed that attributes were 
> part of the document's data and therefore the processor was required to 
> pass them to the application.  [...]

A pragmatic reason for passing on the xmlns:xyz information is that some
applications might want to go beyond what 'Namespaces in XML' itself
provides and use similarly abbreviated values _inside_ data attributes
instead of full URIs (eg. for data types), and make use of the XMLNS
info when doing so.

eg.
	<ABC dt:dt="http://xmlschemas.org/useful/datatypes/Float>22.2232</ABC>
	versus
	<ABC dt:dt="USEFUL:Float">22.2232</ABC>

	(where USEFUL has an xmlns:USEFUL declaration somewhere)

By cutting out this information at such a low level, applications won't
be able to consider doing this sort of thing.

Dan


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 (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...)


Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member