[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: ANN: xpath1() scheme for XPointer
> 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: > http://www.ietf.org/internet-drafts/draft-stlaurent-xpath-frag-00.txt > > For those who aren't fond of huge amounts of whitespace, an > HTML version is available at: > http://simonstl.com/ietf/draft-stlaurent-xpath-frag-00.html > Good stuff. 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. Michael Kay Software AG home: Michael.H.Kay@n... work: Michael.Kay@s...
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|