You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xindice-users@xml.apache.org by ja...@axxessit.no on 2003/07/03 12:06:54 UTC
Greetings - followed by a newbie question.
Hello all!
I'm sitting here evaluating XML:DB and XIndice, and I've come up with a
question I've
not found an answer to in the available docs:
It's best examplified with the following command line output:
(1) D:\xml-persist\xml-xindice-1.0\bin>xindice.bat xpath -c
/db/data/MyTest -q //jhb
<?xml version="1.0"?>
<jhb var="one" xmlns:src="http://xml.apache.org/xindice/Query"
src:col="/db/data/MyTest" src:key="jhbTest">
Yo!</jhb>
(2) D:\xml-persist\xml-xindice-1.0\bin>xindice.bat xpath -c
/db/data/MyTest -q //jhb/@var
D:\xml-persist\xml-xindice-1.0\bin>
The query run in (1) works as expected (by testing using XPath Explorer) -
the query in (2) does not return anything though.
Shouldn't it return "var=\"one\"" (as an "Attr" node)?
I did the same test using the reference implementation from XML:DB, here I
corrected the source in org.xmldb.api.reference.ResourceSetImpl
at line 130 so that is also handles nodes of type Node.ATTRIBUTE_NODE.
Please feel free to point out my ignorance!
Cheers, Jan-Helge Bergesen / AXXESSIT ASA | http://www.axxessit.no