Changes between Version 11 and Version 12 of schema/xpointer
- Timestamp:
- Mar 8, 2011, 12:51:12 PM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
schema/xpointer
v11 v12 1 1 == XPointers and XLink 2 2 3 === XLink ===4 See [http://www.w3.org/TR/xlink/ XML Linking Language (XLink) Version 1.0].5 6 Example:7 * <p>The best german punk band is <div xlink:href="http://slime.de/">Slime</div>.</p>8 9 10 3 === XPointer === 11 See [http://www.w3.org/TR/xptr-framework/ XML Pointer Language (XPointer)]. XPointer could be used in all URI attributes especially xlink:href.4 See [http://www.w3.org/TR/xptr-framework/ XML Pointer Language (XPointer)]. XPointer could be used in all URI attributes. 12 5 13 6 Examples: … … 33 26 * <p>See the <note xlink:href="http://mpdl.mpiwg-berlin.mpg.de/physics/einstein/diary.xml#xpointer((id('page53')/echo[1]/text[1]/body[1]/chap[1]/p[1]/s[2]/range(1.3, 1.10))">text passage on page 53, sentence 2, character 3 to 10</note>).</p> 34 27 35 === Support of XLink === 36 XLink will be supported in all elements of the TEI Lite schema (in the near future). 28 ==== Support of XPointer ==== 37 29 38 === Support of XPointer === 39 40 The MPDL project sets a special focus on the presentation of document pages. An important requirement for MPDL-XPointers is the support of pointers relative to document pages. Another special requirement is to point not only to elements on a page but also to text portions in elements (point or range). XPointer could be used in all URI attributes especially xlink:href. The MPDL project supports the following subset of XPointer (in the near future): 30 The MPDL project sets a special focus on the presentation of document pages. An important requirement for MPDL-XPointers is the support of pointers relative to document pages. Another special requirement is to point not only to elements on a page but also to text portions in elements (point or range). XPointer could be used in all TEI URI attributes. The MPDL project supports the following subset of XPointer (in the near future): 41 31 42 32 * XPointer to a page in an XML document. The result of the XPointer URL is the whole page. Example: 43 * <p>... (see < seg xlink:href="http://mpdl.mpiwg-berlin.mpg.de/music/ramones/ramones_2004.xml#xpointer((id('page6'))">Dick Porter: Ramones – The Complete Twisted History, London: Plexus, 2004. Page 6. ISBN 0859653269</seg>)33 * <p>... (see <ref target="http://mpdl.mpiwg-berlin.mpg.de/music/ramones/ramones_2004.xml#xpointer((id('page6'))">Dick Porter: Ramones – The Complete Twisted History, London: Plexus, 2004. Page 6. ISBN 0859653269</ref>) 44 34 * if the document contains no pages (no <pb/> elements) then the page number doesnt't have to be specified (all elements are on the first page internally) 45 35 * 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: 46 * <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 < seg xlink:href="http://mpdl.mpiwg-berlin.mpg.de/music/ramones/ramones_2004.xml#xpointer((id('page6')/tei[1]/text[1]/body[1]/chap[1]/p[1])">page 6, sentence 2</seg>).</p>36 * <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.mpiwg-berlin.mpg.de/music/ramones/ramones_2004.xml#xpointer((id('page6')/tei[1]/text[1]/body[1]/chap[1]/p[1])">page 6, sentence 2</ref>).</p> 47 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: 48 * <p>The Ramones started up in March 1974 (see < seg xlink:href="http://mpdl.mpiwg-berlin.mpg.de/music/ramones/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</seg>).</p>38 * <p>The Ramones started up in March 1974 (see <ref target="http://mpdl.mpiwg-berlin.mpg.de/music/ramones/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> 49 39 50 40 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: … … 53 43 * from character 22 to 34 in the first sentence of page 6: /music/ramones/ramones_2004.xml, page6, /tei[1]/text[1]/body[1]/chap[1]/p[1]/s[1], range(1.22, 1.34) 54 44 55 ==== Discussion ==== 45 === XLink === 46 See [http://www.w3.org/TR/xlink/ XML Linking Language (XLink) Version 1.0]. 47 Example: <p>The best german punk band is <bla xlink:href="http://slime.de/">Slime</bla>.</p> 48 49 XLink is not supported in TEI so far. So the MPDL project will support XLink when it is part of TEI. 50 51 === Discussion === 56 52 57 53 * document identifier: a persistent identifier of a document … … 133 129 134 130 135 === = Selection / Solution ====131 === Selection / Solution === 136 132 * document identifier 137 133 * http://mpdl.mpiwg-berlin.mpg.de/music/ramones/ramones_2004.xml … … 153 149 * compatible with XPointer, only this alternative 154 150 155 === = Implementation ====151 === Implementation === 156 152 157 153 * new presentation mode with dynamically generated xpath identifier for all elements … … 169 165 * different presentation modes: text, textPollux, gis, xml, pureXml 170 166 * in .../interface/page-fragment.xql and .../page-query-result.xql 171 * XLinkURI's172 * support xlink:href attributein Echo and TEI elements: not implemented yet167 * TEI URI's 168 * support URI attributes (e.g. ref(target) ptr(target)) in Echo and TEI elements: not implemented yet 173 169 * user objects such as user queries 174 170 * insert/update/delete user objects: dynamic storing of user queries (with user login)