OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   Re: Undeclared namespace

[ Lists Home | Date Index | Thread Index ]
  • From: "Thomas B. Passin" <tpassin@idsonline.com>
  • To: "XML-DEV" <xml-dev@ic.ac.uk>
  • Date: Sat, 30 Oct 1999 22:56:35 -0400

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

<resume>
^

Thanx
Bye
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 -

  http://mama.stg.brown.edu/service/xmlvalid/

--

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@goon.stg.brown.edu





 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS