Version 1 (modified by 14 years ago) (diff) | ,
---|
XPointers and XLink
XLink
See XML Linking Language (XLink) Version 1.0.
XLink could be used in all elements. Example:
- <p>The best german punk band is <div xlink:href="http://slime.de/">Slime</div>.</p>
XPointer
See XML Pointer Language (XPointer). XPointer could be used in all URI's especially those provided by XLink.
Examples:
- <p>This is discussed in <div xlink:href="example.xml#xpointer((//p)[1])">the first paragraph of the example document</div>.</p>
- <p>This is discussed in <div xlink:href="example.xml#xpointer(id('4711')/div[1])">the first division of the example document</div>.</p>
- <p>This is discussed in <div xlink:href="example.xml#element(/1/2)">the second element of the first element</div>.</p>
- <p>Einstein said in his diary that he doesn't like a further delay of his shipping tour to south america (see <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])">page 53, sentence 2</note>).</p>
XPoints
- Examples
- point(1.0) is just inside the beginning of the p element.
- point(1.2) is between the end of the em element and the following text node (which contains "world.").
- point(.0) immediately precedes the root node.
- point(1/2/1.1) immediately following the "b" in the middle text node.
Range
- xpointer(id("chap1")/range-to(id("chap2"))) (the range from the start point of the element with ID "chap1" to the end point of the element with ID "chap2")
- string-range(title,"Thomas Pynchon")[17] (the 17th of those "Thomas Pynchon" strings appearing in a title element)
- <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>
Support of XLink
XLink will be supported in all elements of the Echo and TEI Lite schema.
Support of XPointer
XPointer could be used in all URI's especially those provided by XLink. The following subset of XPointer is supported:
Examples:
- <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 <note 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[2])">page 6, sentence 2</note>).</p>
Attachments (1)
- xpoint.png (5.3 KB) - added by 14 years ago.
Download all attachments as: .zip