[topicmapmail] Q.about xtm and dtd!

Andrew J. Scholand gt0540b@cad.gatech.edu
Mon, 9 Apr 2001 16:47:23 -0400 (EDT)


Hi Shabnam,
	Perhaps the following suggestions from Ronald Bourret
("Namespace Myths Exploded",
  http://www.xml.com/pub/a/2000/03/08/namespaces/index.html  )
will help:

"* Declare all xmlns attributes in the DTD
 * Use the same qualified names in the DTD and the body of the document
 * Use one prefix per XML namespace
 * Do not use the same prefix for more than one XML namespace
 * Use at most one default XML namespace"

OTOH, I just comment out the DTD declaration when I'm displaying not
validating.  But I'm lazy.

What version are you using?  I assume its IE.  You may want to try the 6.0
beta to see if its any better
( http://www.microsoft.com/windows/ie/preview/default.asp )

Good luck!
Cheers,
Andy


> 
> 
> --------------24B87A4A5C372BCB30BEC049
> Content-Type: text/plain; charset=us-ascii
> Content-Transfer-Encoding: 7bit
> 
> 
> I am a beginner in TM- concept and am trying to make a xtm file. I have
> also built a dtd- file to define the structure of my xtm.
> 
> There are following attributes for the topicMap(which is also defined in
> my dtd) :
> 
> <topicMap
>          xmlns='http://www.topicmaps.org/xtm/1.0/'
>          xml:base='http://www.topicmaps.org/xtm/1.0/'
>          xmlns:xlink='http://www.w3.org/1999/xlink/'
>          xlink:type="simple"
> >
>  The browser can show the xtm file when there is no pointer to "dtd",
> but I want to point to this file...it means I have the following
> sentence at the begining of my xtm:
> 
> <!DOCTYPE topicMap SYSTEM "file://E:/structure.dtd">
> 
> The problem is that, the browser showes an error and tells that I am
> pointing to   "xmlns:xlink" in xtm file, which is not declared!!!How can
> I remove this error?!?!
> If I don't point to the "dtd" how could my xtm understand which
> structure my  file have?!?!?!
> 
> I would be obliged, if somebody could answer my question!
> 
> Shabnam
> 
> --------------24B87A4A5C372BCB30BEC049
> Content-Type: text/html; charset=us-ascii
> Content-Transfer-Encoding: 7bit
> 
> <!doctype html public "-//w3c//dtd html 4.0 transitional//en">
> <html>
> &nbsp;
> <br>I am a beginner in TM- concept and am trying to make a xtm file. I
> have also built a dtd- file to define the structure of my xtm.
> <p>There are following attributes for the topicMap(<u>which is also defined
> in my dtd</u>) :
> <p>&lt;topicMap
> <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; xmlns='<A HREF="http://www.topicmaps.org/xtm/1.0/">http://www.topicmaps.org/xtm/1.0/</A>'
> <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; xml:base='<A HREF="http://www.topicmaps.org/xtm/1.0/">http://www.topicmaps.org/xtm/1.0/</A>'
> <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color="#FF0000">&nbsp;&nbsp;&nbsp;
> xmlns:xlink='<A HREF="http://www.w3.org/1999/xlink/">http://www.w3.org/1999/xlink/</A>'</font>
> <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; xlink:type="simple"
> <br>>
> <br>&nbsp;The browser can show the xtm file when there is no pointer to
> "dtd", but I want to point to this file...it means I have the following
> sentence at the begining of my xtm:
> <p>&lt;!DOCTYPE topicMap SYSTEM "<A HREF="file://E:/structure.dtd">file://E:/structure.dtd</A>">
> <p>The problem is that, the browser showes an error and tells that I am
> pointing to&nbsp;&nbsp; "xmlns:xlink" in xtm file, which is not declared!!!How
> can I remove this error?!?!
> <br>If I don't point to the "dtd" how could my xtm understand which structure
> my&nbsp; file have?!?!?!
> <p>I would be obliged, if somebody could answer my question!
> <p>Shabnam</html>
> 
> --------------24B87A4A5C372BCB30BEC049--
> 
> _______________________________________________
> topicmapmail mailing list
> topicmapmail@infoloom.com
> http://www.infoloom.com/mailman/listinfo/topicmapmail
>