HTML Standard Tracker

Filter

File a bug

SVNBugCommentTime (UTC)
2552Example of using RDF in XHTML.2008-12-24 00:27
@@ -7136,20 +7136,48 @@ background: transparent">blue&lt;/span>.&lt;/p></pre>
 
   <p><dfn>Metadata content</dfn> is content that sets up the
   presentation or behavior of the rest of the content, or that sets
   up the relationship of the document with other documents, or that
   conveys other "out of band" information.</p>
 
   <p>Elements from other namespaces whose semantics are primarily
   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
   applications are categorized as <dfn>flow content</dfn>.</p>
 
   <p>As a general rule, elements whose content model allows any
   <span>flow content</span> should have either at least one
   descendant text node that is not <span>inter-element
   whitespace</span>, or at least one descendant element node that is

|