On Tuesday, January 8, 2002, at 10:46 AM, John Merrells wrote:
Yes there will always be an execution context. XPath could be being used within XSLT, or XQuery, or it could be being used standalone to filter documents in a collection. But, yes, even in that case there's an execution context. So, say my context has $foo bound to 'bar', and my XPath expression refers to $foo. How using XPathQueryService do I pass the variable bindings from my execution environment through to the XPath query service? The namespace prefix to uri mapping is also within the execution context, but in this case there are a set of methods provided for passing that through to the execution engine...
I've always seen variables as not really being part of XPath even though the XPath spec does define the syntax. No current XML database that I am aware of, supports variables in XPath expressions. That is why the API doesn't even consider them. It was assumed that any kind of variable support would come from XQuery. It's an interesting idea though. If you had the facility, how would you use it?
John
_________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com
---------------------------------------------------------------------- Post a message: mailto:[EMAIL PROTECTED] Unsubscribe: mailto:[EMAIL PROTECTED] Contact administrator: mailto:[EMAIL PROTECTED] Read archived messages: http://archive.xmldb.org/ ----------------------------------------------------------------------
Kimbro Staken XML Database Software, Consulting and Writing http://www.xmldatabases.org/
---------------------------------------------------------------------- Post a message: mailto:[EMAIL PROTECTED] Unsubscribe: mailto:[EMAIL PROTECTED] Contact administrator: mailto:[EMAIL PROTECTED] Read archived messages: http://archive.xmldb.org/ ----------------------------------------------------------------------
