Lists Home |
Date Index |
> I've just published an IETF Internet-Draft that defines an
> xpath1() scheme for use inside the XPointer Framework.
> The I-D is available at:
> For those who aren't fond of huge amounts of whitespace, an
> HTML version is available at:
I would tighten it up by saying explicitly that variable references, and
function calls other than the core functions defined in XPath 1.0, are
not allowed, and that the XPath expression is evaluated with a context
position and size of 1, and a context node that is the element
containing the XPointer. It might also aid interoperability to say
something explicit about the handling of whitespace-only text nodes.
I'm a little surprised that you seem [from the last sentence of section
3] to see the scheme as providing a way of addressing within an XML
entity, rather than an XML document. In fact, I think it would be most
useful to say that both entity expansion and XInclude processing should
happen before XPath evaluation.
I've been looking for a way of defining a syntax for XPath expressions
that doesn't depend on the namespace context, for use in a dynamic
xx:evaluate(), and this XPointer scheme seems to provide the answer.