URL: http://nerdfiles.net/seo-test/dtd-test-normal.html
Parse your markup as true XHTML under XML rules through the "application/xhtml+xml" mime type. Works with "application/xml". That is, use XHTML beyond the label, the buzzword. Provides an example of internally extending the DTD with the marginalized (irony) @longdesc.
Notes: Assumes PHP. Compatible with IE6-8 (invokes their XML rendering engine). Of course, the extension is nonessential to this template.
Instructions: 1. Add a file named "ie-xml-fix.xsl" ( http://snipplr.com/view/20432/iexmlfixxsl/ ) to the same directory as your index(.htm|.html|.php|.xhtml) file.
<?php header( 'Content-type: application/xhtml+xml' ); $xmldec = "<?xml version="1.0" encoding="utf-8"?>\n"; $xmldec .= "<?xml-stylesheet type="text/xsl" href="ie-xml-fix.xsl"?>\n"; echo html_entity_decode( $xmldec ); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.0//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-1.dtd" [ <!ATTLIST img longdesc CDATA #IMPLIED> ]> <html version="XHTML+RDFa 1.0" xmlns="http://www.w3.org/1999/xhtml" xmlns:dc="http://purl.org/dc/terms/" xmlns:xhv="http://www.w3.org/1999/xhtml/vocab#" xmlns:media="http://purl.org/media#" xmlns:commerce="http://purl.org/commerce#" xmlns:audio="http://purl.org/media/audio#" xml:lang="en" lang="en"> <head> <meta http-equiv="Content-Type" content="application/xhtml+xml;charset=utf-8" /> <!-- Site & Page URL Meta --> <base href="#" /> <link rel="canonical" href="#" /> <!-- Caching Meta --> <meta http-equiv="expires" content="#" /> <meta http-equiv="cache-control" content="#" /> <!-- Language Meta --> <meta name="content-language" content="#" /> <meta name="language" content="#" /> <!-- Production Meta --> <meta name="author" content="" /> <meta name="designer" content="" /> <meta name="copyright" content="(c) YYYY. All Rights Reserved." /> <!-- Site || Page Meta --> <meta name="keywords" content="" /> <meta name="description" content="" /> <!-- Search Engine Meta --> <meta name="robots" content="noydir,noodp,nosnippet" /> <meta name="googlebot" content="" /> <meta name="msnbot" content="" /> <meta name="slurp" content="" /> <!-- JavaScript Resources --> <!--[if lt IE 8]> <script src="http://ie7-js.googlecode.com/svn/version/2.0(beta3)/IE8.js" type="text/javascript"></script> <![endif]--> <!-- Style Resources --> <link rel="stylesheet" href="http://yui.yahooapis.com/2.7.0/build/reset/reset-min.css" type="text/css" media="screen" /> <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" /> </head> <body> </body> </html>
You need to login to post a comment.
