A while back I posted the following set of options. I'm currently leaning toward #4.
1. XPointer style all in one argument
query("xmlns(x=http://example.com/foo) xpath(//x:bar)");
2. Adding it as another arg.
query("//x:bar", "xmlns(x=http://example.com/foo)
xmlns(y=http://example.com/y)");3. The xmlns() part isn't really necessary.
query("//x:bar", "x=http://example.com/foo y=http://example.com/y");
4. Second arg as an array of decls.
namespaces[0] = "x=http://example.com/foo"; namespaces[1] = "y=http://example.com/y";
query("//x:bar", namespaces);
Kimbro Staken The dbXML Project htttp://www.dbxml.org ---------------------------------------------------------------------- Post a message: mailto:[EMAIL PROTECTED] Unsubscribe: mailto:[EMAIL PROTECTED] Contact administrator: mailto:[EMAIL PROTECTED] Read archived messages: http://archive.xmldb.org/ ----------------------------------------------------------------------
