If you use something like this: xindice xpath -c /db/junk -s "glop=http://blah" -q "//glop:zork"
the result is unambiguous: <?xml version="1.0"?> <zork xmlns="http://blah" xmlns:src="http://xml.apache.org/xindice/Query" src:col="/db/xones/tupletest" src:key="nstest" xmlns:glop="http://blah">abc</zork> And <?xml version="1.0"?> <glop:zork xmlns:src="http://xml.apache.org/xindice/Query" src:col="/db/xones/tupletest" src:key="nstest" xmlns:glop="http://blah">xyz</glop:zork> (these are actual results) Your point is well taken, though: XPath is at best ambiguous with respect to namespaces because it matches only on prefixes, not URIs. As long as the context for the query/xpath expression is properly defined beforehand, it's not a problem. Dare Obasanjo wrote: > > --- Jeff Greif <[EMAIL PROTECTED]> wrote: >> Vanessa and Xindice developers, >> In the prior version (dbxml-1.0b4), using this >> document in the collection >> /db/junk, >> >> <?xml version="1.0" ?> >> <fur modtime="0" >> owner="/sysinfo/Webalo/users/sysroot" >> xmlns:glop="http://blah"> >> <ObjectId collection="junk" host="localhost" >> glop:urk="/rootview~!~"> >> <Uname>/rootview</Uname><VmcName></VmcName> >> </ObjectId> >> <glop:zork>xyz</glop:zork> >> <Body> >> </Body> >> </fur> >> >> the following queries worked as expected >> >> dbxml xpath -c /db/junk -q "//glop:zork" > > > And what is the expected result? How about if the XML > was > > <?xml version="1.0" ?> > <fur modtime="0" > owner="/sysinfo/Webalo/users/sysroot" > xmlns:glop="http://blah"> > <zork xmlns="http://blah">abc</zork> > <glop:zork>xyz</glop:zork> > <glop:zork > xmlns:glop="http://example.com">123</glop> > <Body> > </Body> > </fur> > > My bad for being pedantic, I'll go back to lurking. :) > > ===== > THINGS TO DO IF I BECOME AN EVIL OVERLORD #79 > If my doomsday device happens to come with a reverse switch, as soon as it has > been employed it will be melted down and made into limited-edition > commemorative coins. > > __________________________________________________ > Do You Yahoo!? > Yahoo! - Official partner of 2002 FIFA World Cup > http://fifaworldcup.yahoo.com
