At 04:26 PM 1/8/02 -0700, Kimbro Staken wrote:

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.

Kimbro,


Excelon's XML database implements XPath and XSLT on the server, including variables. For XPath expressions embedded in a stylesheet, the variable bindings are created by the stylesheet. If XPath is used separately, both the server-side and client-side API's provide ways to bind variables. On the client, only string-valued variables can be specified. On the server, the XPath context object allow variables to be bound to any type of XPath value.

Paul

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/
----------------------------------------------------------------------


----------------------------------------------------------------------
Post a message:         mailto:[EMAIL PROTECTED]
Unsubscribe:            mailto:[EMAIL PROTECTED]
Contact administrator:  mailto:[EMAIL PROTECTED]
Read archived messages: http://archive.xmldb.org/
----------------------------------------------------------------------

Reply via email to