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

Re: Undeclared namespace

  • From: "Thomas B. Passin" <tpassin@i...>
  • To: "XML-DEV" <xml-dev@i...>
  • Date: Sat, 30 Oct 1999 22:56:35 -0400

reference to undeclared namespace prefix
Get rid of the "exp:" in the element definitions.  They are not part of the element names, they are part of the namespace, which is different.  Replace with the following in the DTD:
<!ELEMENT project (title,employer?,client?,duration?,team?,position?,description?,contribution?)>
I tested this in IE5 and it worked fine (see below for the correct declaration of the namespace).
Also, get rid of the xmlns:exp attribute in the DTD.  The namespace declaration is not an ordinary attribute even though it looks like one.  Declaring it in the DTD will not cause the experience element to use the exp: namespace.  You must include it in the actual <experience> element like so:
<experience xmlns:exp="ccc">
It doesn't matter what the value of the namespace is ("ccc").  Currently there is no mechanism to do anything with the value (except for the xsl: namespace in xslt stylesheets).
Thomas Passin
Thanx Richard
I ran the file thru the parser and everything worked out just fine .. But still i have the same error message cropping up .. Are there any known bugs with regards to namespaces in IE5. Below is the exact copy of the error message ..
Can any one make sense out of it

The XML page cannot be displayed
Cannot view XML input using style sheet. Please correct the error and then click the Refresh button, or try again later.


Reference to undeclared namespace prefix: 'exp'. Line 56, Position 1


Anand Raman

"Richard L. Goerwitz" wrote:

Anand Raman wrote:
> HI guys
> I am getting a Reference to undeclared namespace "exp:" error for the
> following code snippet when i try to view the document in IE 5.

If you want independent confirmation of the files' validity, please
feel free to run your files through out validator -



Richard Goerwitz
PGP key fingerprint:    C1 3E F4 23 7C 33 51 8D  3B 88 53 57 56 0D 38 A0
For more info (mail, phone, fax no.):  finger richard@g...


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.
First Name
Last Name
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.