Posted By

nerdfiles on 09/29/09


Tagged

php template dtd xhtml xml rdfa


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

LeeRJohnson


XHTML+RDFa 1.0 Template (external DTD)


 / Published in: XHTML
 

URL: http://nerdfiles.net/seo-test/

  1. <?php
  2. header( 'Content-type: application/xhtml+xml' );
  3. $xmldec = "&lt;&#63;xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;&#63;&gt;\n";
  4. $xmldec .= "&lt;&#63;xml-stylesheet type=&quot;text/xsl&quot; href=&quot;ie-xml-fix.xsl&quot;&#63;&gt;\n";
  5. echo html_entity_decode( $xmldec );
  6. ?>
  7. <!DOCTYPE html PUBLIC
  8. "-//W3C//DTD Custom XHTML+RDFa 1.1//EN"
  9. "xhtml+rdfa-10e.dtd">
  10. <html xmlns="http://www.w3.org/1999/xhtml" xmlns:dc="http://purl.org/dc/terms/" xml:lang="en" lang="en">
  11. <head>
  12. <meta http-equiv="Content-Type" content="application/xhtml+xml;charset=utf-8" />
  13.  
  14. <!-- Site & Page URL Meta -->
  15. <base href="#" />
  16. <link rel="canonical" href="#" />
  17.  
  18. <!-- Caching Meta -->
  19. <meta http-equiv="expires" content="#" />
  20. <meta http-equiv="cache-control" content="#" />
  21.  
  22. <!-- Language Meta -->
  23. <meta name="content-language" content="#" />
  24. <meta name="language" content="#" />
  25.  
  26. <!-- Production Meta -->
  27. <meta name="author" content="" />
  28. <meta name="designer" content="" />
  29. <meta name="copyright" content="(c) YYYY. All Rights Reserved." />
  30.  
  31. <!-- Site || Page Meta -->
  32. <meta name="keywords" content="" />
  33. <meta name="description" content="" />
  34.  
  35. <!-- Search Engine Meta -->
  36. <meta name="robots" content="noydir,noodp,nosnippet" />
  37. <meta name="googlebot" content="" />
  38. <meta name="msnbot" content="" />
  39. <meta name="slurp" content="" />
  40.  
  41. <title>New XHTML + RDFa Document</title>
  42.  
  43. <!-- Style Resources -->
  44. <link rel="stylesheet" href="http://yui.yahooapis.com/2.7.0/build/reset/reset-min.css" type="text/css" media="screen" />
  45. <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
  46.  
  47. <!-- JavaScript Resources -->
  48. <!--[if lt IE 8]>
  49. <script src="http://ie7-js.googlecode.com/svn/version/2.0(beta3)/IE8.js" type="text/javascript"></script>
  50. <![endif]-->
  51. <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
  52. </head>
  53. <body>
  54. <h1>XHTML + RDFa!</h1>
  55. <p property="dc:created" content="YYYY-MM-DD">I am an XHTML document, extended by RDFa. Hello, world!</p>
  56. <p about="" resource="http://www.w3.org/TR/rdfa-syntax" rel="dct:conformsTo" xmlns:dc="http://purl.org/dc/terms/"><a href="http://validator.w3.org/check?uri=referer"><img src="http://www.w3.org/Icons/valid-xhtml-rdfa-blue" alt="Valid XHTML + RDFa" longdesc="http://validator.w3.org/" /></a></p>
  57. </body>
  58. </html>
  59.  
  60. ********************************************************************
  61. *
  62. * Filename: xhtml+rdfa-10e.dtd
  63. *
  64. ********************************************************************
  65.  
  66. <!ATTLIST img longdesc CDATA #IMPLIED>
  67.  
  68. <!ENTITY % xhtmlrdfa PUBLIC
  69. "-//W3C//DTD XHTML+RDFa 1.0//EN"
  70. "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-1.dtd">
  71. %xhtmlrdfa;

Report this snippet  

You need to login to post a comment.