OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   RE: [xml-dev] ANN: xpath1() scheme for XPointer

[ Lists Home | Date Index | Thread 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: 
> 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@ntlworld.com
work: Michael.Kay@softwareag.com 





 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS