Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[e] (0) Example of using RDF in XHTML.
git-svn-id: http://svn.whatwg.org/webapps@2552 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Dec 24, 2008
1 parent b3385e2 commit ab18067
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 1 deletion.
30 changes: 29 additions & 1 deletion index
Expand Up @@ -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-&mdash;-date:-01-jan-1901>Draft Recommendation &mdash; 23 December 2008</h2>
<h2 class="no-num no-toc" id=draft-recommendation-&mdash;-date:-01-jan-1901>Draft Recommendation &mdash; 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>
Expand Down Expand Up @@ -7023,6 +7023,34 @@ background: transparent"&gt;blue&lt;/span&gt;.&lt;/p&gt;</pre>
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>&lt;html xmlns="http://www.w3.org/1999/xhtml"
xmlns:r="http://www.w3.org/1999/02/22-rdf-syntax-ns#"&gt;
&lt;head&gt;
&lt;title&gt;Hedral's Home Page&lt;/title&gt;
&lt;r:RDF&gt;
&lt;Person xmlns="http://www.w3.org/2000/10/swap/pim/contact#"
r:about="http://www.w3.org/People/EM/contact#me"&gt;
&lt;fullName&gt;Cat Hedral&lt;/fullName&gt;
&lt;mailbox r:resource="mailto:hedral@damowmow.com"/&gt;
&lt;personalTitle&gt;Sir&lt;/personalTitle&gt;
&lt;/Person&gt;
&lt;/r:RDF&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;h1&gt;My home page&lt;/h1&gt;
&lt;p&gt;I like playing with string, I guess. Sister says squirrels are fun
too so sometimes I follow her to play with them.&lt;/p&gt;
&lt;/body&gt;
&lt;/html&gt;</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>

Expand Down
28 changes: 28 additions & 0 deletions source
Expand Up @@ -7143,6 +7143,34 @@ background: transparent">blue&lt;/span>.&lt;/p></pre>
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>

Expand Down

0 comments on commit ab18067

Please sign in to comment.