There are several ways to do this. The easiest is to use the uberjar release, which can be directly executed on any Java enabled platform. This makes it trivial to test and develop XPointer support in your applications, including server-side XPointer. The uberjar release contains a Java class org.CognitiveWeb.xpointer.XPointerDriver that provides a simple but flexible command line utility that exposes an XPointer processor. The XPointer is provided as a command line argument and the XML resource is read from stdin. The results are written on stdout by
Unlike its companions XLink and XML Base, XPointer has retreated from Candidate Recommendation to Last Call Working Draft status.
Daniel Veillard noted that:
"This second Last Call has been made necessary by a change required to XPointer to insure that URI References built using XPointer are context independant. This specific addition is detailed in section 5.2.1 of this XPointer Working Draft."
The problem appears to revolve around namespaces, as the spec now adds:
"For any XPointer part that uses the xpointer scheme, the evaluation context
XPointer is a system for addressing components of XML based internet media.
At the present time (late 2002), XPointer is divided among four specifications: a "framework" which forms the basis for identifying XML fragments, a positional element addressing scheme, a scheme for namespaces, and a scheme for XPath-based addressing.
The XPointer language is designed to address structural aspects of XML, including text content and other information objects created as a result of parsing the document. Thus, it could be used to point to a section of a