37 | | * XPointer to a text portion of an element on a page in an XML document. The result of the XPointer URL is the page and the requested text portion of the element is highlighted. Example: |
38 | | * <p>The Ramones started up in March 1974 (see <ref target="http://mpdl-proto.mpiwg-berlin.mpg.de/tei/en/ramones_2004.xml#xpointer(id('page6')/tei[1]/text[1]/body[1]/chap[1]/p[1]/s[1]/range(1.22, 1.34))">page 6, sentence 1, character 22 to 32</ref>).</p> |
| 37 | * XPointer to a text portion (range) of an element on a page in an XML document. The result of the XPointer URL is the page and the requested text portion of the element is highlighted. |
| 38 | * function range with two parameters (easy but not standard xpointer range notation): |
| 39 | * from: start point of the range as count of text characters from the beginning of all the text nodes of the element |
| 40 | * to: end point of the range as count of text characters from the beginning of all the text nodes of the element |
| 41 | * Example: |
| 42 | * <p>The Ramones started up in March 1974 (see <ref target="http://mpdl-proto.mpiwg-berlin.mpg.de/tei/en/ramones_2004.xml#xpointer(id('page6')/tei[1]/text[1]/body[1]/chap[1]/p[1]/s[1]/range(22, 34))">page 6, sentence 1, character 22 to 32</ref>).</p> |
39 | 43 | |
40 | 44 | External user annotations of documents are stored relative to document pages by mapping XPointer page points/ranges to an internal identifier as a combination of document identifier, page number, element xpath expression, and a point/range expression. Example: |
41 | 45 | * before the first sentence on page 6: /tei/en/ramones_2004.xml, page6, /tei[1]/text[1]/body[1]/chap[1]/p[1]/s[1], point(.0) |
42 | 46 | * after the first sentence on page 6: /tei/en/ramones_2004.xml, page6, /tei[1]/text[1]/body[1]/chap[1]/p[1]/s[1], point(.1) |