You are here: Re: Mix of xml and html « HTML « IT news, forums, messages
Re: Mix of xml and html

Posted by cwdjrxyz on 06/25/07 06:01

On Jun 24, 3:29 pm, Hans-Peter Diettrich <DrDiettri...@aol.com> wrote:
> I wonder what this header does mean:
>
> <?xml version="1.0" encoding="utf-8"?>
> <HTML xmlns:MSHelp="http://msdn.microsoft.com/mshelp">
> <HEAD>
> ...
> <META HTTP-EQUIV="Content-Type" Content="text/html; charset=utf-8"/>
> ...
>
> When such a file is saved as *.htm, it's displayed in an browser as
> HTML. When saved as *.xml, it's displayed as XML. When streamed directly
> into an browser, nothing is displayed at all. In the latter case, what's
> missing so that the browser cannot determine how to handle the document?
> (Maybe my streaming code doesn't work properly?)
>
> The most puzzling element in such HTML Help documents is:
> <MSHelp:link namespace= ...>Text</MSHelp:link>
>
> "Text" is displayed, but what is the intended interpretation of the
> surrounding decoration? It seems to be some XML element, that is ignored
> by an ordinary browser.
>
> What can or has to be done, in order to make such a construct have any
> effect? Actually I edit the files, converting the "link" into "A" tags,
> so that they work as HTML links. But that's a poor solution, couldn't
> this be done in another (the intended) way?

This is a typical case of Microsoftese and likely does not conform to
W3C standards and likely will not work properly on most modern
browsers that follow W3C standards. If you have to use this for some
reason, that is a pity. But I always avoid such silly Microsoft code
when I can find any other way to do what is needed using W3C web
standards. If someone here does not give the answer you need, you
might try asking at a Microsoft group.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация