Changes between Version 15 and Version 16 of schema/xpointer


Ignore:
Timestamp:
Mar 23, 2011, 3:04:27 PM (13 years ago)
Author:
jwillenborg
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • schema/xpointer

    v15 v16  
    3535* XPointer to an element on a page in an XML document. The result of the XPointer URL is the page and the requested element is highlighted. Example:
    3636  * <p>Joey Ramone said: "When we started up in March of ’74, it was because the bands we loved, the rock ’n’ roll that we knew, had disappeared. We were playing music for ourselves." (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[2])">page 6, sentence 2</ref>).</p>
    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>
    3943
    4044External 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:
    4145* 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)
    4246* 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)
    43 * from character 22 to 34 in the first sentence of page 6: /tei/en/ramones_2004.xml, page6, /tei[1]/text[1]/body[1]/chap[1]/p[1]/s[1], range(1.22, 1.34)
     47* from character 22 to 34 in the first sentence of page 6: /tei/en/ramones_2004.xml, page6, /tei[1]/text[1]/body[1]/chap[1]/p[1]/s[1], range(22, 34)
    4448
    4549=== XLink ===
     
    121125      * the id is not intuitive
    122126* point/range expression
    123   * point(.0) or point(.1) or range(1.22, 1.34)
     127  * point(.0) or point(.1) or range(22, 34)
    124128    * Advantages
    125129      * pointers could point to a text portion
     
    145149      * the broken link is sent to the older version of the document if a versioning system is running or an error message is given that the document has changed
    146150* point/range expression
    147   * point(.0) or point(.1) or range(1.22, 1.34)
     151  * point(.0) or point(.1) or range(22, 34)
    148152    * Reasons
    149153      * compatible with XPointer, only this alternative