On 24.09.2009, at 18:33, hosema...@poczta.onet.pl wrote:
How to change language in doctype?
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd
">
When I use variable ${lang} from phptal
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//${lang}"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
the Parse error appears
Because it *is* an error to change language in the DOCTYPE. It's not
related to language of the page at all.
BTW: Transitional DTD is for pages that use <font>, <table bgcolor>,
etc. Use Strict DTD whenever you're designing page for something newer
than Netscape 3.0 :)
--
regards, Kornel
_______________________________________________
PHPTAL mailing list
PHPTAL@lists.motion-twin.com
http://lists.motion-twin.com/mailman/listinfo/phptal