XPointer
- XPointer defines the fragment
identifier syntax for XML resources
- goal is to be able to address parts of an XML document:
- compatible with HTML fragment ID
- allows to represent any user selection
- reuses XPath but extend it to allow finer addressing
- String searches
- specific hypertext extensions: here(), origin(), ...
A few examples:
- #Introduction
- #xpointer(id("Introduction"))
- #xpointer(/chapitre[2]/p[3])
- #xpointer(//chapitre[titre="Introduction"]/
descendant::p[position()=last()])
- #xpointer(id("sec2.1")//p[2]/range-to(id("sec2.2")//p[last()]))
- #xpointer(string-range(//title,"Thomas Pynchon"))