Point Expressions

A point is selected using an XPath expression that points at a node; then suffixing it with /point()[position()=n] where n is the index of the point following that node that you want. The index refers to the point before nth child element if the context node is an element or root node, or to the nth character of the string value of the node otherwise. For example, to select the point immediately before the D in Domeniquette Celeste Baudean's NAME element,

/child::FAMILYTREE/descendant::*[position()=1]/child::NAME/child::text()/point()[position()=0]

To select the point after the last e in Domeniquette, since there are 12 letters in Domeniquette,

/child::FAMILYTREE/descendant::*[position()=1]/child::NAME/child::text()/point()[position()=12]


Previous | Next | Top | Cafe con Leche

Copyright 2000 Elliotte Rusty Harold
elharo@metalab.unc.edu
Last Modified February 1, 2000