Reply to Re: add doctype dynamically....

Your name:

Reply:


Posted by Benjamin Niemann on 09/07/07 08:30

Hi,

windandwaves wrote:

> For my google maps, I have to use the following doctype:
>
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://
> www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-
> microsoft-com:vml">
>
> This means that my page does not validate anymore.
>
> Is there a way to use this doctype AND validate the page at the same
> time?

You could try to create a DTD which adds the VML elements and attributes to
XHTML (or use an existing, if you can find one). But that would require a
different public identifier, probably forcing the browser into quirks
mode - that's probably a price you don't wanna pay...
You may also try to use a schema based validator, which is namespace aware -
DTD base validation is pretty much useless, when multiple namespaces are
used. Can't say, if that actually works without an example though...

HTH

--
Benjamin Niemann
Email: pink at odahoda dot de
WWW: http://pink.odahoda.de/

[Back to original 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

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