Skip to content

Commit e6ee5f9

Browse files
committed
Added Infoset and DOM2 specifics to HTML5+RDFa draft.
1 parent 9803820 commit e6ee5f9

File tree

5 files changed

+502
-0
lines changed

5 files changed

+502
-0
lines changed

configs/rdfa.conf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,6 @@ include microsections/rdfa/rdfa-parsing-model
2121
include microsections/rdfa/rdfa-conformance-requirements
2222
include microsections/rdfa/rdfa-modifications-to-xhtml-rdfa
2323
include microsections/rdfa/rdfa-modifications-to-html5
24+
include microsections/rdfa/rdfa-infoset-based-processors
25+
include microsections/rdfa/rdfa-dom2-based-processors
2426
include microsections/rdfa/references

headers/header-w3c-rdfa-wd.in

Lines changed: 346 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,346 @@
1+
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
2+
"http://www.w3.org/TR/html4/strict.dtd">
3+
<html lang="en">
4+
<head>
5+
<title>HTML+RDFa</title>
6+
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
7+
<style type="text/css">
8+
pre { margin-left: 2em; white-space: pre-wrap; }
9+
h2 { margin: 3em 0 1em 0; }
10+
h3 { margin: 2.5em 0 1em 0; }
11+
h4 { margin: 2.5em 0 0.75em 0; }
12+
h5, h6 { margin: 2.5em 0 1em; }
13+
h1 + h2, h1 + h2 + h2 { margin: 0.75em 0 0.75em; }
14+
h2 + h3, h3 + h4, h4 + h5, h5 + h6 { margin-top: 0.5em; }
15+
p { margin: 1em 0; }
16+
hr:not(.top) { display: block; background: none; border: none; padding: 0; margin: 2em 0; height: auto; }
17+
dl, dd { margin-top: 0; margin-bottom: 0; }
18+
dt { margin-top: 0.75em; margin-bottom: 0.25em; clear: left; }
19+
dt + dt { margin-top: 0; }
20+
dd dt { margin-top: 0.25em; margin-bottom: 0; }
21+
dd p { margin-top: 0; }
22+
dd dl + p { margin-top: 1em; }
23+
dd table + p { margin-top: 1em; }
24+
p + * > li, dd li { margin: 1em 0; }
25+
dt, dfn { font-weight: bold; font-style: normal; }
26+
dt dfn { font-style: italic; }
27+
pre, code { font-size: inherit; font-family: monospace; font-variant: normal; }
28+
pre strong { color: black; font: inherit; font-weight: bold; background: yellow; }
29+
pre em { font-weight: bolder; font-style: normal; }
30+
@media screen { code { color: orangered; } code :link, code :visited { color: inherit; } }
31+
var sub { vertical-align: bottom; font-size: smaller; position: relative; top: 0.1em; }
32+
table { border-collapse: collapse; border-style: hidden hidden none hidden; }
33+
table thead { border-bottom: solid; }
34+
table tbody th:first-child { border-left: solid; }
35+
table td, table th { border-left: solid; border-right: solid; border-bottom: solid thin; vertical-align: top; padding: 0.2em; }
36+
blockquote { margin: 0 0 0 2em; border: 0; padding: 0; font-style: italic; }
37+
38+
.bad, .bad *:not(.XXX) { color: gray; border-color: gray; background: transparent; }
39+
.matrix, .matrix td { border: none; text-align: right; }
40+
.matrix { margin-left: 2em; }
41+
.dice-example { border-collapse: collapse; border-style: hidden solid solid hidden; border-width: thin; margin-left: 3em; }
42+
.dice-example caption { width: 30em; font-size: smaller; font-style: italic; padding: 0.75em 0; text-align: left; }
43+
.dice-example td, .dice-example th { border: solid thin; width: 1.35em; height: 1.05em; text-align: center; padding: 0; }
44+
.applies th > * { display: block; white-space: nowrap; }
45+
.applies thead code { display: block; }
46+
.applies td { text-align: center; }
47+
.applies .yes { background: yellow; }
48+
49+
.toc dfn, h1 dfn, h2 dfn, h3 dfn, h4 dfn, h5 dfn, h6 dfn { font: inherit; }
50+
img.extra { float: right; }
51+
pre.idl { border: solid thin; background: #EEEEEE; color: black; padding: 0.5em 1em; }
52+
pre.idl :link, pre.idl :visited { color: inherit; background: transparent; }
53+
pre.css { border: solid thin; background: #FFFFEE; color: black; padding: 0.5em 1em; }
54+
pre.css:first-line { color: #AAAA50; }
55+
dl.domintro { color: green; margin: 2em 0 2em 2em; padding: 0.5em 1em; border: none; background: #EEFFEE; }
56+
hr + dl.domintro, div.impl + dl.domintro { margin-top: 2.5em; margin-bottom: 1.5em; }
57+
dl.domintro dt, dl.domintro dt * { color: black; text-decoration: none; }
58+
dl.domintro dd { margin: 0.5em 0 1em 2em; padding: 0; }
59+
dl.domintro dd p { margin: 0.5em 0; }
60+
dl.switch { padding-left: 2em; }
61+
dl.switch > dt { text-indent: -1.5em; }
62+
dl.switch > dt:before { content: '\21AA'; padding: 0 0.5em 0 0; display: inline-block; width: 1em; text-align: right; line-height: 0.5em; }
63+
dl.triple { padding: 0 0 0 1em; }
64+
dl.triple dt, dl.triple dd { margin: 0; display: inline }
65+
dl.triple dt:after { content: ':'; }
66+
dl.triple dd:after { content: '\A'; white-space: pre; }
67+
.diff-old { text-decoration: line-through; color: silver; background: transparent; }
68+
.diff-chg, .diff-new { text-decoration: underline; color: green; background: transparent; }
69+
a .diff-new { border-bottom: 1px blue solid; }
70+
71+
h2 { page-break-before: always; }
72+
h1 + h2, hr + h2.no-toc { page-break-before: auto; }
73+
74+
p > span:not([title=""]):not([class="XXX"]):not([class="impl"]), li > span:not([title=""]):not([class="XXX"]):not([class="impl"]) { border-bottom: solid #9999CC; }
75+
76+
div.head { margin: 0 0 1em; padding: 1em 0 0 0; }
77+
div.head p { margin: 0; }
78+
div.head h1 { margin: 0; }
79+
div.head .logo { float: right; margin: 0 1em; }
80+
div.head .logo img { border: none } /* remove border from top image */
81+
div.head dl { margin: 1em 0; }
82+
p.copyright { font-size: x-small; font-style: oblique; margin: 0; }
83+
84+
body > .toc > li { margin-top: 1em; margin-bottom: 1em; }
85+
body > .toc.brief > li { margin-top: 0.35em; margin-bottom: 0.35em; }
86+
body > .toc > li > * { margin-bottom: 0.5em; }
87+
body > .toc > li > * > li > * { margin-bottom: 0.25em; }
88+
.toc, .toc li { list-style: none; }
89+
90+
.brief { margin-top: 1em; margin-bottom: 1em; line-height: 1.1; }
91+
.brief li { margin: 0; padding: 0; }
92+
.brief li p { margin: 0; padding: 0; }
93+
94+
.category-list { margin-top: -0.75em; margin-bottom: 1em; line-height: 1.5; }
95+
.category-list::before { content: '\21D2\A0'; font-size: 1.2em; font-weight: 900; }
96+
.category-list li { display: inline; }
97+
.category-list li:not(:last-child)::after { content: ', '; }
98+
.category-list li > span, .category-list li > a { text-transform: lowercase; }
99+
.category-list li * { text-transform: none; } /* don't affect <code> nested in <a> */
100+
101+
.XXX { color: #E50000; background: white; border: solid red; padding: 0.5em; margin: 1em 0; }
102+
.XXX > :first-child { margin-top: 0; }
103+
p .XXX { line-height: 3em; }
104+
.annotation { border: solid thin black; background: #0C479D; color: white; position: relative; margin: 8px 0 20px 0; }
105+
.annotation:before { position: absolute; left: 0; top: 0; width: 100%; height: 100%; margin: 6px -6px -6px 6px; background: #333333; z-index: -1; content: ''; }
106+
.annotation :link, .annotation :visited { color: inherit; }
107+
.annotation :link:hover, .annotation :visited:hover { background: transparent; }
108+
.annotation span { border: none ! important; }
109+
.note { color: green; background: transparent; font-family: sans-serif; }
110+
.warning { color: red; background: transparent; }
111+
.note, .warning { font-weight: bolder; font-style: italic; }
112+
p.note, div.note { padding: 0.5em 2em; }
113+
span.note { padding: 0 2em; }
114+
.note p:first-child, .warning p:first-child { margin-top: 0; }
115+
.note p:last-child, .warning p:last-child { margin-bottom: 0; }
116+
.warning:before { font-style: normal; }
117+
p.note:before { content: 'Note: '; }
118+
p.warning:before { content: '\26A0 Warning! '; }
119+
120+
.bookkeeping:before { display: block; content: 'Bookkeeping details'; font-weight: bolder; font-style: italic; }
121+
.bookkeeping { font-size: 0.8em; margin: 2em 0; }
122+
.bookkeeping p { margin: 0.5em 2em; display: list-item; list-style: square; }
123+
124+
h4 { position: relative; z-index: 3; }
125+
h4 + .element, h4 + div + .element { margin-top: -2.5em; padding-top: 2em; }
126+
.element {
127+
background: #EEEEFF;
128+
color: black;
129+
margin: 0 0 1em 0.15em;
130+
padding: 0 1em 0.25em 0.75em;
131+
border-left: solid #9999FF 0.25em;
132+
position: relative;
133+
z-index: 1;
134+
}
135+
.element:before {
136+
position: absolute;
137+
z-index: 2;
138+
top: 0;
139+
left: -1.15em;
140+
height: 2em;
141+
width: 0.9em;
142+
background: #EEEEFF;
143+
content: ' ';
144+
border-style: none none solid solid;
145+
border-color: #9999FF;
146+
border-width: 0.25em;
147+
}
148+
149+
.example {
150+
display: block;
151+
color: #222222;
152+
background: #FCFCFC;
153+
border-left: double;
154+
margin-left: 2em;
155+
padding-left: 1em;
156+
}
157+
158+
.tall-and-narrow {
159+
font-size: 0.6em;
160+
column-width: 25em;
161+
column-gap: 1em;
162+
-moz-column-width: 25em;
163+
-moz-column-gap: 1em;
164+
-webkit-column-width: 25em;
165+
-webkit-column-gap: 1em;
166+
}
167+
168+
ul.domTree, ul.domTree ul { padding: 0 0 0 1em; margin: 0; }
169+
ul.domTree li { padding: 0; margin: 0; list-style: none; position: relative; }
170+
ul.domTree li li { list-style: none; }
171+
ul.domTree li:first-child::before { position: absolute; top: 0; height: 0.6em; left: -0.75em; width: 0.5em; border-style: none none solid solid; content: ''; border-width: 0.1em; }
172+
ul.domTree li:not(:last-child)::after { position: absolute; top: 0; bottom: -0.6em; left: -0.75em; width: 0.5em; border-style: none none solid solid; content: ''; border-width: 0.1em; }
173+
ul.domTree span { font-style: italic; font-family: serif; }
174+
ul.domTree .t1 code { color: purple; font-weight: bold; }
175+
ul.domTree .t2 { font-style: normal; font-family: monospace; }
176+
ul.domTree .t2 .name { color: black; font-weight: bold; }
177+
ul.domTree .t2 .value { color: blue; font-weight: normal; }
178+
ul.domTree .t3 code, .domTree .t4 code, .domTree .t5 code { color: gray; }
179+
ul.domTree .t7 code, .domTree .t8 code { color: green; }
180+
ul.domTree .t10 code { color: teal; }
181+
182+
</style>
183+
<link href="data:text/css,"
184+
rel="stylesheet"
185+
title="Complete specification"
186+
type="text/css">
187+
<link href="data:text/css,.impl%20{%20display:%20none;%20}"
188+
rel="alternate stylesheet"
189+
title="Author documentation only">
190+
<link href="data:text/css,.impl%20{%20background:%20%23FFEEEE;%20}"
191+
rel="alternate stylesheet"
192+
title="Highlight implementation requirements">
193+
<link href="http://www.w3.org/StyleSheets/TR/W3C-WD"
194+
rel="stylesheet"
195+
type="text/css"><!-- ZZZ ED vs WD -->
196+
</head>
197+
<body>
198+
<div class="head">
199+
<p>
200+
<a href="http://www.w3.org/"><img alt="W3C"
201+
height="48"
202+
src="http://www.w3.org/Icons/w3c_home"
203+
width="72"></a>
204+
</p>
205+
<h1>HTML+RDFa</h1>
206+
<h2 class="no-num no-toc" id="a-mechanism-for-embedding-rdf-in-html">
207+
A mechanism for embedding RDF in HTML
208+
</h2>
209+
<h2 class="no-num no-toc" id="editor-s-draft-date-@DAY@-@MONTH@-@YEAR@">W3C Working Draft 15 January 2010</h2>
210+
<!--:ZZZ-->
211+
<dl>
212+
<!-- ZZZ: update the month/day (twice), (un)comment out
213+
<dt>This Version:</dt>
214+
<dd><a href="http://www.w3.org/TR/2009/WD-html5-20090423/">http://www.w3.org/TR/2009/WD-html5-20090423/</a></dd>
215+
:ZZZ -->
216+
217+
<dt>This Version</dt>
218+
<dd><a href="http://html5.digitalbazaar.com/specs/rdfa.html">http://html5.digitalbazaar.com/specs/rdfa.html</a></dd>
219+
<dt>Latest Version</dt>
220+
<dd><a href="http://www.w3.org/TR/rdfa-in-html/">http://www.w3.org/TR/rdfa-in-html/</a></dd>
221+
<dt>Previous Versions</dt>
222+
<dd><a href="http://www.w3.org/TR/2009/WD-rdfa-in-html-20091015/">http://www.w3.org/TR/2009/WD-rdfa-in-html-20091015/</a><</dd>
223+
<dt>
224+
<dt>Diff-marked version</dt>
225+
<dd><a href="http://html5.digitalbazaar.com/specs/rdfa-diff-20091015-20100115.html">http://html5.digitalbazaar.com/specs/rdfa-diff-20091015-20100115.html</a></dd>
226+
<dt>
227+
Authors (alphabetical order):
228+
</dt>
229+
<dd>
230+
Ben Adida (Chair, RDFa Task Force, Creative Commons)
231+
</dd>
232+
<dd>
233+
Mark Birbeck (Editor, XHTML+RDFa and inventor of RDFa concept, Web
234+
Backplane Ltd.)
235+
</dd>
236+
<dd>
237+
Shane McCarron (Editor, XHTML+RDFa, Applied Testing and Technology, Inc.)
238+
</dd>
239+
<dd>
240+
Steven Pemberton (Chair, XHTML2 and RDFa Task Force member, CWI)
241+
</dd>
242+
<dd>
243+
<a href="mailto:msporny@digitalbazaar.com">Manu Sporny</a>, (Editor, HTML+RDFa and RDFa Task Force member, Digital Bazaar, Inc.)
244+
</dd>
245+
</dl>
246+
<p class="copyright">
247+
<a href="http://www.w3.org/Consortium/Legal/ipr-notice#Copyright">Copyright</a> &copy; 2009 <a href="http://www.w3.org/"><abbr title="World Wide Web
248+
Consortium">W3C</abbr></a><sup>&reg;</sup> (<a href=
249+
"http://www.csail.mit.edu/"><abbr title="Massachusetts Institute of
250+
Technology">MIT</abbr></a>, <a href="http://www.ercim.org/"><abbr title=
251+
"European Research Consortium for Informatics and
252+
Mathematics">ERCIM</abbr></a>, <a href=
253+
"http://www.keio.ac.jp/">Keio</a>), All Rights Reserved. W3C <a href=
254+
"http://www.w3.org/Consortium/Legal/ipr-notice#Legal_Disclaimer">liability</a>,
255+
<a href="http://www.w3.org/Consortium/Legal/ipr-notice#W3C_Trademarks">trademark</a>
256+
and <a href="http://www.w3.org/Consortium/Legal/copyright-documents">document use</a>
257+
rules apply.
258+
</p>
259+
</div>
260+
<hr class="top">
261+
<h2 class="no-num no-toc"
262+
id="abstract">
263+
Abstract
264+
</h2>
265+
<p>
266+
This specification defines rules and guidelines for adapting the
267+
RDF in XHTML: Syntax and Processing (RDFa) specification for use in the
268+
HTML5 and XHTML5 members of the HTML family. The rules defined in this
269+
document not only apply to HTML5 documents in non-XML and XML mode,
270+
but also to HTML4 documents interpreted through the HTML5 parsing rules.
271+
</p>
272+
<h2 class="no-num no-toc"
273+
id="status-of-this-document">
274+
Status of this document
275+
</h2><!-- intro boilerplate (required) -->
276+
277+
<p><em>This section describes the status of this document at the time of its publication. Other documents may supersede this document. A list of current W3C publications and the latest revision of this technical report can be found in the <a href="http://www.w3.org/TR/">W3C technical reports index</a> at http://www.w3.org/TR/.</em></p>
278+
279+
<p>This is the First Public Working Draft of the "HTML+RDFa: A mechanism for embedding RDF in HTML" specification for review by W3C members and other interested parties.
280+
</p>
281+
282+
<p>
283+
If you wish to make comments regarding this document, please send them to
284+
<a href=
285+
"mailto:public-rdf-in-xhtml-tf@w3.org">public-rdf-in-xhtml-tf@w3.org</a>
286+
(<a href=
287+
"mailto:public-rdf-in-xhtml-tf-request@w3.org?subject=subscribe">subscribe</a>,
288+
<a href=
289+
"http://lists.w3.org/Archives/Public/public-rdf-in-xhtml-tf/">archives</a>)
290+
or to <a href="mailto:public-html-comments@w3.org">public-html-comments@w3.org</a> (<a href="mailto:public-html-comments-request@w3.org?subject=subscribe">subscribe</a>, <a href="http://lists.w3.org/Archives/Public/public-html-comments/">archives</a>), or submit them using the <a href="http://www.w3.org/Bugs/Public/enter_bug.cgi">W3C's public bug database</a>.
291+
</p>
292+
<!-- UNDER NO CIRCUMSTANCES IS THE FOLLOWING PARAGRAPH TO BE REMOVED OR EDITED WITHOUT TALKING TO IAN FIRST -->
293+
<!-- UNDER NO CIRCUMSTANCES IS THE PRECEDING PARAGRAPH TO BE REMOVED OR EDITED WITHOUT TALKING TO IAN FIRST --><!-- stability (required) -->
294+
<p>
295+
Implementors should be aware that this specification is not stable.
296+
<strong>Implementors who are not taking part in the discussions are likely
297+
to find the specification changing out from under them in incompatible
298+
ways.</strong> Vendors interested in implementing this specification
299+
before it eventually reaches the Candidate Recommendation stage should
300+
join the aforementioned mailing lists and take part in the discussions.
301+
</p><!-- not everyone agrees with html5 (requested before fpwd) -->
302+
<p>Publication as a Working Draft does not imply endorsement by the W3C Membership. This is a draft document and may be updated, replaced or obsoleted by other documents at any time. It is inappropriate to cite this document as other than work in progress.</p>
303+
<p>
304+
The publication of this document by the W3C as a W3C Working Draft does
305+
not imply that all of the participants in the W3C HTML working group
306+
endorse the contents of the specification. Indeed, for any section of the
307+
specification, one can usually find many members of the working group or
308+
of the W3C as a whole who object strongly to the current text, the
309+
existence of the section at all, or the idea that the working group should
310+
even spend time discussing the concept of that section.
311+
</p>
312+
<!-- UNDER NO CIRCUMSTANCES IS THE FOLLOWING PARAGRAPH TO BE REMOVED OR EDITED WITHOUT TALKING TO IAN FIRST --><!-- version history or list of changes (required) -->
313+
<p>
314+
The latest stable version of the editor's draft of this specification is
315+
always available on <a href=
316+
"http://dev.w3.org/html5/rdfa/">the W3C CVS server</a></a>.
317+
The <a href="http://html5.digitalbazaar.com/specs/rdfa.html">latest editor's working copy</a> (which may contain unfinished text in the process of
318+
being prepared) is also available.
319+
</p>
320+
<!-- UNDER NO CIRCUMSTANCES IS THE PRECEDING LIST TO BE REMOVED OR EDITED WITHOUT TALKING TO IAN FIRST --><!-- status of document, group responsible (required) -->
321+
<p>
322+
The W3C <a href="http://www.w3.org/html/wg/">HTML Working Group</a> is the
323+
W3C working group responsible for this specification's progress along the
324+
W3C Recommendation track.
325+
</p>
326+
<!-- UNDER NO CIRCUMSTANCES IS THE FOLLOWING PARAGRAPH TO BE REMOVED OR EDITED WITHOUT TALKING TO IAN FIRST --><!-- UNDER NO CIRCUMSTANCES IS THE PRECEDING PARAGRAPH TO BE REMOVED OR EDITED WITHOUT TALKING TO IAN FIRST --><!-- context and rationale (required) -->
327+
<p>
328+
This specification is an extension to the HTML5 language. All normative
329+
content in the HTML5 specification, unless specifically overridden by this
330+
specification, is intended to be the basis for this specification.
331+
</p>
332+
<!-- UNDER NO CIRCUMSTANCES IS THE FOLLOWING PARAGRAPH TO BE REMOVED OR EDITED WITHOUT TALKING TO IAN FIRST --><!-- required patent boilerplate -->
333+
<p>
334+
This document was produced by a group operating under the <a href=
335+
"http://www.w3.org/Consortium/Patent-Policy-20040205/">5 February 2004 W3C
336+
Patent Policy</a>. W3C maintains a <a href=
337+
"http://www.w3.org/2004/01/pp-impl/40318/status"
338+
rel="disclosure">public list of any patent disclosures</a> made in
339+
connection with the deliverables of the group; that page also includes
340+
instructions for disclosing a patent. An individual who has actual
341+
knowledge of a patent which the individual believes contains <a href=
342+
"http://www.w3.org/Consortium/Patent-Policy-20040205/#def-essential">Essential
343+
Claim(s)</a> must disclose the information in accordance with <a href=
344+
"http://www.w3.org/Consortium/Patent-Policy-20040205/#sec-Disclosure">section
345+
6 of the W3C Patent Policy</a>.
346+
</p>

0 commit comments

Comments
 (0)