[html5] r2552 - [e] (0) Example of using RDF in XHTML.

whatwg at whatwg.org whatwg at whatwg.org
Tue Dec 23 16:27:12 PST 2008


Author: ianh
Date: 2008-12-23 16:27:11 -0800 (Tue, 23 Dec 2008)
New Revision: 2552

Modified:
   index
   source
Log:
[e] (0) Example of using RDF in XHTML.

Modified: index
===================================================================
--- index	2008-12-23 21:11:15 UTC (rev 2551)
+++ index	2008-12-24 00:27:11 UTC (rev 2552)
@@ -21,7 +21,7 @@
   <div class=head>
    <p><a class=logo href=http://www.whatwg.org/ rel=home><img alt=WHATWG src=/images/logo></a></p>
    <h1>HTML 5</h1>
-   <h2 class="no-num no-toc" id=draft-recommendation-—-date:-01-jan-1901>Draft Recommendation — 23 December 2008</h2>
+   <h2 class="no-num no-toc" id=draft-recommendation-—-date:-01-jan-1901>Draft Recommendation — 24 December 2008</h2>
    <p>You can take part in this work. <a href=http://www.whatwg.org/mailing-list>Join the working group's discussion list.</a></p>
    <p><strong>Web designers!</strong> We have a <a href=http://blog.whatwg.org/faq/>FAQ</a>, a <a href=http://forums.whatwg.org/>forum</a>, and a <a href=http://www.whatwg.org/mailing-list#help>help mailing list</a> for you!</p>
    <dl><dt>Multiple-page version:</dt>
@@ -7023,7 +7023,35 @@
   metadata-related (e.g. RDF) are also <a href=#metadata-content-0>metadata
   content</a>.</p>
 
+  <div class=example>
 
+   <p>Thus, in the XML serialisation, one can use RDF, like this:</p>
+
+   <pre><html xmlns="http://www.w3.org/1999/xhtml"
+      xmlns:r="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
+ <head>
+  <title>Hedral's Home Page</title>
+  <r:RDF>
+   <Person xmlns="http://www.w3.org/2000/10/swap/pim/contact#"
+           r:about="http://www.w3.org/People/EM/contact#me">
+    <fullName>Cat Hedral</fullName>
+    <mailbox r:resource="mailto:hedral at damowmow.com"/>
+    <personalTitle>Sir</personalTitle> 
+   </Person>
+  </r:RDF>
+ </head>
+ <body>
+  <h1>My home page</h1>
+  <p>I like playing with string, I guess. Sister says squirrels are fun
+  too so sometimes I follow her to play with them.</p>
+ </body>
+</html></pre>
+
+   <p>This isn't possible in the HTML serialisation, however.</p>
+
+  </div>
+
+
   <h5 id=flow-content><span class=secno>3.4.1.2 </span>Flow content</h5>
 
   <p>Most elements that are used in the body of documents and

Modified: source
===================================================================
--- source	2008-12-23 21:11:15 UTC (rev 2551)
+++ source	2008-12-24 00:27:11 UTC (rev 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><html xmlns="http://www.w3.org/1999/xhtml"
+      xmlns:r="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
+ <head>
+  <title>Hedral's Home Page</title>
+  <r:RDF>
+   <Person xmlns="http://www.w3.org/2000/10/swap/pim/contact#"
+           r:about="http://www.w3.org/People/EM/contact#me">
+    <fullName>Cat Hedral</fullName>
+    <mailbox r:resource="mailto:hedral at damowmow.com"/>
+    <personalTitle>Sir</personalTitle> 
+   </Person>
+  </r:RDF>
+ </head>
+ <body>
+  <h1>My home page</h1>
+  <p>I like playing with string, I guess. Sister says squirrels are fun
+  too so sometimes I follow her to play with them.</p>
+ </body>
+</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




More information about the Commit-Watchers mailing list