Ranges and string ranges

#xpointer(string-range(//text(),'prolog'))

xpointer(//prod[@num='1']/range-to(//prod[@num='22']))