Jonathan Borden wrote:
>
> Lars, Kimbro:
>
> The XPointer spec http://www.w3.org/TR/xptr#ns-context addresses this
> specific issue. We should leverage it.
>
How would you see us applying this? Changing the input string to look
something like.
query("xmlns(x=http://example.com/foo) xpath(//x:bar)");
Or adding it as another arg.
query("//x:bar", "xmlns(x=http://example.com/foo)
xmlns(y=http://example.com/y)");
In this case though the xmlns part isn't really necessary.
query("//x:bar", "x=http://example.com/foo y=http://example.com/y");
Or maybe the second arg would be an array of decls.
namespaces[0] = "x=http://example.com/foo";
namespaces[1] = "y=http://example.com/y";
query("//x:bar", namespaces);
What I was orignally suggesting would look something like this.
query("//x:bar", "<ctx xmlns:x='http://example.com/foo'/>")
The name of the element is arbitrary. I don't see any added value in
doing this over any of the others.
> -Jonathan
>
> ----------------------------------------------------------------------
> Post a message: mailto:[EMAIL PROTECTED]
> Unsubscribe: mailto:[EMAIL PROTECTED]
> Contact adminstrator: mailto:[EMAIL PROTECTED]
> Read archived messages: http://archive.xmldb.org/
> ----------------------------------------------------------------------
--
Kimbro Staken
The dbXML Project
http://www.dbxml.org/
----------------------------------------------------------------------
Post a message: mailto:[EMAIL PROTECTED]
Unsubscribe: mailto:[EMAIL PROTECTED]
Contact adminstrator: mailto:[EMAIL PROTECTED]
Read archived messages: http://archive.xmldb.org/
----------------------------------------------------------------------