Re: XPath and XPointer

Paul Prescod wrote:

> Does XPath actually have provisions for creating new axes? 

No.

> The AxisName
> production is not extensible. It seems to me that XPointer should only
> extend XPath in ways that have been forseen in XPath.

I agree.
 
> If other axes are legal, is it legal for those axes to return object
> types (e.g. "range") that are not in the set of XPath data types:
> 
>  * node-set (an unordered collection of nodes without duplicates)
>  * boolean (true or false)
>  * number (a floating-point number)
>  * string (a sequence of UCS characters)

Even if extending the set of axes were legal, such axes would have to
return node-sets in order for the semantics well-defined.

(The range and string "axes" in XPointer should be functions not axes.)

James

Received on Friday, 13 August 1999 08:45:35 UTC