add doctype dynamically....

add doctype dynamically....

am 06.09.2007 23:48:19 von WindAndWaves

Hi

For my google maps, I have to use the following doctype:

www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">


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?

Thank you

Nicolaas

Re: add doctype dynamically....

am 07.09.2007 01:03:13 von dorayme

In article
<1189115299.514256.212490@22g2000hsm.googlegroups.com>,
windandwaves wrote:

> Hi
>
> For my google maps, I have to use the following doctype:
>
> > www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
>
>
> 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?
>

It is no big deal that it does not validate if no trouble is
being experienced. I know, you don't like it though!

--
dorayme

Re: add doctype dynamically....

am 07.09.2007 10:30:03 von Benjamin Niemann

Hi,

windandwaves wrote:

> For my google maps, I have to use the following doctype:
>
> > www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
>
>
> 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/