HTML Standard Tracker

Diff (omit for latest revision)
Filter

Short URL: http://html5.org/r/2552

File a bug

SVNBugCommentTime (UTC)
2552Example of using RDF in XHTML.2008-12-24 00:27
Index: source
===================================================================
--- source	(revision 2551)
+++ source	(revision 2552)
@@ -7143,7 +7143,35 @@
   metadata-related (e.g. RDF) are also <span>metadata
   content</span>.</p>
 
+  <div class="example">
 
+   <p>Thus, in the XML serialisation, one can use RDF, like this:</p>
+
+   <pre>&lt;html xmlns="http://www.w3.org/1999/xhtml"
+      xmlns:r="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
+ &lt;head>
+  &lt;title>Hedral's Home Page&lt;/title>
+  &lt;r:RDF>
+   &lt;Person xmlns="http://www.w3.org/2000/10/swap/pim/contact#"
+           r:about="http://www.w3.org/People/EM/contact#me">
+    &lt;fullName>Cat Hedral&lt;/fullName>
+    &lt;mailbox r:resource="mailto:hedral@damowmow.com"/>
+    &lt;personalTitle>Sir&lt;/personalTitle> 
+   &lt;/Person>
+  &lt;/r:RDF>
+ &lt;/head>
+ &lt;body>
+  &lt;h1>My home page&lt;/h1>
+  &lt;p>I like playing with string, I guess. Sister says squirrels are fun
+  too so sometimes I follow her to play with them.&lt;/p>
+ &lt;/body>
+&lt;/html></pre>
+
+   <p>This isn't possible in the HTML serialisation, however.</p>
+
+  </div>
+
+
   <h5>Flow content</h5>
 
   <p>Most elements that are used in the body of documents and

|