Short URL: http://html5.org/r/2552
| SVN | Bug | Comment | Time (UTC) |
|---|---|---|---|
| 2552 | Example 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><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@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