Setting a Global Doctype
Posted
by Batfan
on Stack Overflow
See other posts from Stack Overflow
or by Batfan
Published on 2010-04-23T20:09:52Z
Indexed on
2010/04/23
20:13 UTC
Read the original article
Hit count: 230
Is it possible using PHP (I was thinking may the phpinfo file or a php.ini file) or an .htaccess file to set a doctype for an entire subdirectory?
Basically, in a nutshell, I'm using a software that uses XSL templates to output data to a set of HTML files. Modifying the xsl:output tag to include the doctype breaks the template and therefore, does not work. Just adding the doctype in the XSL file, breaks it as well.
I need the proper doctypes in place for my CSS to function properly, cross-browser. I realize that I could add the doctype to the HTML files after export but, I'm really striving to automate this process.
Any thoughts?
© Stack Overflow or respective owner