On Thursday, December 12, 2002, at 03:37 AM, Paul J. Caritj wrote:
Greetings, I have what I hope is a rather simple question, but I have been unable to find specific examples of how to do this in the documentation (perhaps it should be added).
How does one select the value of an attribute node?
To clarify further - my understanding is that Xindice returns only XML. The value of an attribute by itself is not valid XML. Therefore Xindice will not return attribute values. It makes sense if you think about it a while.
considering: <root> <item id="1" name="brick"/> <item id="2" name="brick"/> </root>
1 <- not valid XML id=1 <- not valid XML @id=1 <- not valid XML
Valid XML:
<?xml version="1.0"?>
<item xmlns:src="http://xml.apache.org/xindice/Query" src:col="/db/bricks"
src:key="1" id="1" name="brick"></id>
So let your program extract the attributes from the results returned.
