[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: ANN: xpath1() scheme for XPointer


xpath1 functions
> 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!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.