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

 


Help: OASIS Mailing Lists Help | MarkMail Help

topicmaps-comment message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]


Subject: Re: [topicmaps-comment] xtm.xml in IE


[Murray Altheim]

> "Thomas B. Passin" wrote:
> >
> > [david aumueller]
> > >
> > > Internet Explorer gives me a "reference to undeclared namespace
prefix:
> > xlink" error when I try to open a simple
> > > XTM file:
> > >
> > >
> > > <?xml version="1.0" encoding="UTF-8"?>
> > > <!DOCTYPE topicMap SYSTEM "xtm1.dtd">
> > > <topicMap xmlns="http://www.topicmaps.org/xtm/1.0/"
> > xmlns:xlink="http://www.w3.org/1999/xlink">
> > > ...
> > >
> > >
> > > Sure it works fine without the doctype-declaration...
> > >
> > I think that IE, noticing the document type declaration, is insisting on
> > validating the document.  If the dtd does not define the namespace
> > "attribute", IE would return this response.
>
> The DTD does define both namespace attributes. IE is simply trying to do
> some funky XML
>  namespace processing.
>
> > What to put in the DTD to
> > pursuade it to accept the namespcae prefix?  Sorry, I can't help, but
try
> > the obvious constructions.  How to get IE not to validate?  If you were
> > running msxml3 under program control you could, but I don't think you
can
> > when it's being run by the browser.
> >
> > I've seen these unwanted validating efforts too.  Not a lot of help, I'm
> > afraid.
>
> I don't think this is actually validation but an attempt to resolve the
> namespace URI, which isn't supposed to happen.
>
That's what I was alluding to by sayinbg "persuade it to accept the
namespace attribute.

> You could try processing this:
>
>    <?xml version="1.0"?>
>    <!DOCTYPE foo [
>      <!ELEMENT foo EMPTY >
>      <!ATTLIST foo
>          xmlns        CDATA  #FIXED "http://www.foo.com/2001/foo"
>          xmlns:xlink  CDATA  #FIXED "http://www.w3.org/1999/xlink"
>    ]>
>    <foo xmlns="http://www.foo.com/2001/foo"
>         xmlns:xlink="http://www.w3.org/1999/xlink" />
>
> This is a completely valid XML instance that should provide the same
> namespace test as the XTM DTD. If IE chokes on the above, it'll choke
> on any XTM document. This *might* help, but I don't use IE myself so
> I can't test this hypothesis.
>
I just did and IE5.5 SP2 with msxml3 did accept it (after I added the
closing bracket to the ATTLIST).

Cheers,

Tom P



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]


Powered by eList eXpress LLC