Index: content.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/cck/Attic/content.module,v
retrieving revision 1.301.2.100
diff -u -p -r1.301.2.100 content.module
--- content.module	18 Mar 2009 19:20:52 -0000	1.301.2.100
+++ content.module	19 Apr 2009 16:48:44 -0000
@@ -2265,6 +2265,9 @@ function content_preprocess_content_fiel
     }
   }
 
+  // Defines the set of field types which will be mapped to an RDF property using the rel attribute.
+  $rdfa_rel_field_types = array('link', 'nodereference', 'image');
+  $mapped_property = _rdfcck_get_default_property($variables['node']->type, $field['field_name']);
   $additions = array(
     'field_type' => $field['type'],
     'field_name' => $field['field_name'],
@@ -2279,6 +2282,8 @@ function content_preprocess_content_fiel
       'content-field-'. $element['#node']->type,
       'content-field-'. $element['#field_name'] .'-'. $element['#node']->type,
     ),
+    'rdfa_property' => 'site:' . $field['field_name'] . ' ' . $mapped_property,
+    'rel' => in_array($field['type'], $rdfa_rel_field_types) ? 'site:' . $field['field_name'] . ' ' . $mapped_property : NULL,
   );
   $variables = array_merge($variables, $additions);
 }
Index: theme/content-field.tpl.php
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/cck/theme/Attic/content-field.tpl.php,v
retrieving revision 1.1.2.5
diff -u -p -r1.1.2.5 content-field.tpl.php
--- theme/content-field.tpl.php	3 Nov 2008 12:46:27 -0000	1.1.2.5
+++ theme/content-field.tpl.php	19 Apr 2009 16:48:45 -0000
@@ -39,7 +39,11 @@
             <div class="field-label-inline<?php print($delta ? '' : '-first')?>">
               <?php print t($label) ?>:&nbsp;</div>
           <?php } ?>
-          <?php print $item['view'] ?>
+          <?php if ($rel) : // rel is defined in content.module and is true if the property should be inserted in a rel attribute ?>
+            <div style="display: inline" rel="<?php print $rdfa_property ?>"><?php print $item['view'] ?></div>
+          <?php else : // div and display:inline necessary when there is HTML code in value of the field. ?>
+            <div style="display: inline" property="<?php print $rdfa_property ?>"><?php print $item['view'] ?></div>
+          <?php endif;?>
         </div>
       <?php $count++;
       endif;
