validator/share/templates/en_US valid.tmpl,1.29,1.30

Update of /sources/public/validator/share/templates/en_US
In directory hutz:/tmp/cvs-serv13144/share/templates/en_US

Modified Files:
	valid.tmpl 
Log Message:
Patch to output badge/icon sample with RDFa when appropriate. 
Courtesy of Toby A Inkster.



Index: valid.tmpl
===================================================================
RCS file: /sources/public/validator/share/templates/en_US/valid.tmpl,v
retrieving revision 1.29
retrieving revision 1.30
diff -u -d -r1.29 -r1.30
--- valid.tmpl	14 Nov 2008 16:22:52 -0000	1.29
+++ valid.tmpl	16 Feb 2009 14:11:42 -0000	1.30
@@ -67,7 +67,9 @@
     <TMPL_IF NAME="badge_h">height="<TMPL_VAR NAME="badge_h">"</TMPL_IF>
     <TMPL_IF NAME="badge_w">width="<TMPL_VAR NAME="badge_w">"</TMPL_IF>
      /> <pre class="badgeSnippet">
-  &lt;p&gt;
+  &lt;p<TMPL_IF NAME="have_badge_rdfa"> about=""
+     resource="<TMPL_VAR NAME="badge_rdfa">"
+     rel="dct:conformsTo" xmlns:dc="http://purl.org/dc/terms/"</TMPL_IF>&gt;
     &lt;a href="<TMPL_VAR NAME="cfg_home_page" ESCAPE="HTML">check?uri=referer"&gt;&lt;img
         src="<TMPL_VAR NAME="badge_uri" ESCAPE="HTML">"
         <TMPL_IF NAME="badge_alt">alt="<TMPL_VAR NAME="badge_alt" ESCAPE="HTML">"</TMPL_IF> <TMPL_IF NAME="badge_h">height="<TMPL_VAR NAME="badge_h">"</TMPL_IF> <TMPL_IF NAME="badge_w">width="<TMPL_VAR NAME="badge_w">"</TMPL_IF><TMPL_VAR NAME="badge_tagc">&gt;&lt;/a&gt;
@@ -80,7 +82,9 @@
     <TMPL_IF NAME="badge_h">height="<TMPL_VAR NAME="badge_h">"</TMPL_IF>
     <TMPL_IF NAME="badge_w">width="<TMPL_VAR NAME="badge_w">"</TMPL_IF>
      /> <pre class="badgeSnippet">
-  &lt;p&gt;
+  &lt;p<TMPL_IF NAME="have_badge_rdfa"> about=""
+     resource="<TMPL_VAR NAME="badge_rdfa">"
+     rel="dct:conformsTo" xmlns:dc="http://purl.org/dc/terms/"</TMPL_IF>&gt;
     &lt;a href="<TMPL_VAR NAME="cfg_home_page" ESCAPE="HTML">check?uri=referer"&gt;&lt;img
         src="<TMPL_VAR NAME="badge_alt_uri" ESCAPE="HTML">"
         <TMPL_IF NAME="badge_alt">alt="<TMPL_VAR NAME="badge_alt" ESCAPE="HTML">"</TMPL_IF> <TMPL_IF NAME="badge_h">height="<TMPL_VAR NAME="badge_h">"</TMPL_IF> <TMPL_IF NAME="badge_w">width="<TMPL_VAR NAME="badge_w">"</TMPL_IF><TMPL_VAR NAME="badge_tagc">&gt;&lt;/a&gt;

Received on Monday, 16 February 2009 14:11:55 UTC