Undeclared namespace

Thomas B. Passin tpassin at idsonline.com
Sun Oct 31 02:56:34 GMT 1999


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
  From: Anand Raman 
  To: Richard_Goerwitz at Brown.EDU ; XML-DEV 

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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ic.ac.uk/pipermail/xml-dev/attachments/19991031/7bfd9e68/attachment.htm


More information about the Xml-dev mailing list