- XPointer
XPointer is a system for addressing components of
XML based internet media.As of
2002 , XPointer was 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 forXPath -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 document highlighted by a user through a mouse drag action.XPointer is covered by a royalty-free technology
patent held bySun Microsystems . [ [http://www.w3.org/2002/06/xptr_IPR_summary.html XPointer royalty-free patent statement] ]Positional Element Addressing
The element() scheme introduces positional addressing of child elements. This is similar to a simple XPath address, but subsequent steps can only be numbers representing the position of a descendant relative to its branch on the tree.
For instance, given the following fragment:
results as the following examples:
xpointer(id("foo")) => foobar xpointer(/foobar/1) => bar xpointer(//bom) => bom (a=1), bom (a=2) element(/1/2/1) => bom (a=1) (/1 descend into first element (foobar), descend into second child element (baz), select first child element (bom))
ee also
*
Fragment identifier
*XML
*HTML
*HyTime
*Text Encoding Initiative GuidelinesReferences
External links
* [http://www.w3.org/TR/xptr-framework/ XPointer Framework]
* [http://www.w3.org/TR/xptr-element/ Positional element addressing]
* [http://www.w3.org/TR/xptr-xmlns/ Namespacing]
* [http://www.w3.org/TR/xptr-xpointer/ Path based addressing]
* [http://lists.w3.org/Archives/Public/www-xml-linking-comments/2000OctDec/0092.html XPointer patent terms and conditions]
* [http://sourceforge.net/projects/cweb Open source implementation (CognitiveWeb)]
* [http://mvp-xml.sourceforge.net/xinclude/ GPL License .NET implementation (XInclude.NET)]
Wikimedia Foundation. 2010.