|
164 | 164 | rawDate: "2016-04-26",
|
165 | 165 | status: "Unofficial Draft"
|
166 | 166 | },
|
167 |
| - "selectors-states": { |
| 167 | + "selector-note": { |
168 | 168 | "authors": [
|
169 | 169 | "Ivan Herman",
|
170 | 170 | "Robert Sanderson",
|
171 | 171 | "Paolo Ciccarese",
|
172 | 172 | "Benjamin Young"
|
173 | 173 | ],
|
174 | 174 | title: "Selectors and States",
|
175 |
| - href: "http://w3c.github.io/web-annotation/selectors/", |
| 175 | + href: "http://w3c.github.io/web-annotation/selector-note/", |
176 | 176 | publisher: "W3C",
|
177 | 177 | rawDate: "2017-01-20",
|
178 | 178 | status: "Reference Note"
|
|
205 | 205 | <p>This Note describes and illustrates potential approaches for including annotations
|
206 | 206 | within HTML documents. Examples also are included illustrating the use within an HTML document
|
207 | 207 | of annotation Selectors as fragment identifiers . (The Working Group's Selectors and States Reference
|
208 |
| - Note [[selectors-states]] defines the syntax used for Selectors as fragment identifiers.)p> |
| 208 | + Note [[selector-note]] defines the syntax used for Selectors as fragment identifiers.)p> |
209 | 209 |
|
210 | 210 | <p>The approaches described in this document are incomplete and preliminary. They do not exhaust the full range of feasible options.
|
211 | 211 | The approaches discussed in this note have emerged from Working Group discussions and should be considered no more
|
@@ -597,40 +597,48 @@ Example
|
597 | 597 |
|
598 | 598 | <section>
|
599 | 599 | <h3>Web Annotation-based Citation URLsh3>
|
600 |
| - <p>The Selectors and States Note [[selectors-states]] published by the Web Annotation Working Group includes information on encoding |
601 |
| - <a data-cite="selectors-states#frags">Web Annotation Selectors and State classes as IRI Fragmenet Identifiersa>. The following |
| 600 | + <p>The Selectors and States Note [[selector-note]] published by the Web Annotation Working Group includes information on encoding |
| 601 | + <a data-cite="selector-note#frags">Web Annotation Selectors and State classes as IRI Fragment Identifiersa>. The following |
602 | 602 | examples show how these URLs could be used to reference portions of a Specific Resource on the Web via IRIs:
|
603 | 603 | p>
|
604 | 604 |
|
605 | 605 | <h4>Example using <blockquote> and <q> tagsh4>
|
606 | 606 |
|
607 | 607 | <pre class="example highlight" title="Example blockquote and q tags using the cite attribute">
|
608 |
| - <blockquote cite="https://www.w3.org/TR/annotation-model/"> |
| 608 | + <blockquote cite="https://www.w3.org/TR/annotation-model/#introduction"> |
609 | 609 | <q cite="https://www.w3.org/TR/annotation-model/#selector(type=TextPositionSelector,start=8424,end=8270)">
|
610 | 610 | An annotation is considered to be a set of connected resources, typically including
|
611 | 611 | a body and target, and conveys that the body is related to the target.</q>
|
612 | 612 |
|
613 | 613 | <q cite="https://www.w3.org/TR/annotation-model/#selector(type=TextPositionSelector,start=8651,end=8576)">
|
614 | 614 | This perspective results in a basic model with three parts, depicted below.</q>
|
615 | 615 |
|
616 |
| - <!-- TODO: how do we make this an annotation? --> |
617 |
| - <img src="images/intro_model.png" alt="Basic Model: Annotation, Body and Target" width="400"/> |
618 |
| - </blockquote> |
| 616 | + <q cite="https://www.w3.org/TR/annotation-model/#selector(type=XPathSelector,value=//*[@id%3D%22introduction%22]/img)"> |
| 617 | + <img src="images/intro_model.png" alt="Basic Model: Annotation, Body and Target" width="400"/> |
| 618 | + </q> |
| 619 | + blockquote> |
619 | 620 | pre>
|
620 | 621 |
|
621 |
| - <p>The Selectors and States Note [[selectors-states]] explains that fragment identifiers are technically defined when the media |
| 622 | + <p>In this example, the <code><blockquote>code>'s <code>citecode> attribute is set to a typical HTML fragment identifier. |
| 623 | + The <code><q>code> tags use <code>citecode> attribute values set to Web Annotation Selector Fragment Identifiers—which |
| 624 | + are convertable into Web Annotation Data Model [[annotation-model]] Selector statements. The <code><img>code> tag is also |
| 625 | + wrapped in a <code><q>code> as it's location is not directly contained in either of the previously quoted section. However, |
| 626 | + all of the quotations (within the <code><q>code> tags) exist within the <code>#introductioncode> section referenced |
| 627 | + by the surrounding <code><blockquote>code>. |
| 628 | + |
| 629 | + <p>The Selectors and States Note [[selector-note]] explains that fragment identifiers are technically defined when the media |
622 | 630 | type is specified. However in practice the utilization of fragment identifiers by publishers and developers ranges from
|
623 | 631 | browser state handling to anchoring highlights of quotations (as seen here).p>
|
624 | 632 |
|
625 |
| - <p>Using these fragement identifiers as values of the <code>citecode> attribute on <code><blockquote>code> |
| 633 | + <p>Using these fragment identifiers as values of the <code>citecode> attribute on <code><blockquote>code> |
626 | 634 | and <code><q>code> tags provides a means for both specificity and future extensibility. Site authors as well as
|
627 | 635 | browser, server, and JavaScript developers may take advantage of these citations identifiers for re-anchoring selection
|
628 |
| - or extracting (and verifying) quotions made within an HTML document which uses this method.p> |
| 636 | + or extracting (and verifying) quotations made within an HTML document which uses this method.p> |
629 | 637 |
|
630 | 638 | <h4>Example using an <a> tagh4>
|
631 | 639 |
|
632 | 640 | <p>Using the same methods described above, <code><a>code> tags may also be used to express a desired highlight or reference. However,
|
633 |
| - as mentioned above, the use of that fragement within the retrieved resource may vary.p> |
| 641 | + as mentioned above, the use of that fragment within the retrieved resource may vary.p> |
634 | 642 |
|
635 | 643 | <pre class="example highlight" title="Example using an anchor tag">
|
636 | 644 | <p>According to the Web Annotation Data Model spec
|
|
0 commit comments