Namespace prefix question

Ken Sellers KSellers at GMANET.com
Thu Feb 3 20:01:48 GMT 2000


The Namespaces in XML spec, Section 5.1,
(http://www.w3.org/TR/REC-xml-names/#scoping) confirms that it is valid.

Ken Sellers

-----Original Message-----
From: Hunter, David [mailto:dhunter at Mobility.com]
Sent: February 03, 2000 2:28 PM
To: 'XML-dev'
Subject: Namespace prefix question


This is actually more of a confirmation than a question:  Can I use the same
namespace prefix more than once in an XML document, pointing to different
namespaces?  Like the following:

<hi:element xmlns:hi="http://www.sernaferna.com">
  <hi:element2 xmlns:hi="http://www.blah.com"/>
</hi:element>

Regardless of the fact that this is probably a bad idea, is it legal?  MSXML
doesn't complain, and neither does the XML parser bundled with XT (XP?).

David Hunter
MobileQ 
david.hunter at mobileq.com 
http://www.MobileQ.com

xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev at ic.ac.uk
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/ or CD-ROM/ISBN
981-02-3594-1
Please note: New list subscriptions and unsubscriptions
are  now ***CLOSED*** in preparation for list transfer to OASIS.

xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev at ic.ac.uk
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/ or CD-ROM/ISBN 981-02-3594-1
Please note: New list subscriptions and unsubscriptions
are  now ***CLOSED*** in preparation for list transfer to OASIS.





More information about the Xml-dev mailing list