returnfield system needs to implement more xpath
The XPath system used when processing the returnfield params is inadequate when
you want to proceess data out of a document that contains a lot of xml
attributes. For instance, if you have an entity like this:
<sometag name="x" value="y"/>
It is impossible to pull the 'value' attribute from the xml based on the 'name'
attribute. The correct xpath query for pulling the value 'y' from this is
/sometag[@name=x]/@value. This syntax is not supported by the returnfield
processor, but it should be.
#1 Updated by Saurabh Garg about 14 years ago
If I understand the bug correctly, then this functionality is already present in
src/edu/ucsb/nceas/metacat/QuerySpecification.java. So what needs to be investigated first is that if the functionality is not working. Here is a test query which worked fine for me
<queryterm casesensitive="false" searchmode="contains">
#2 Updated by Chad Berkley almost 14 years ago
this is a duplicate of another ecogrid bug. the query statement in sid's comment does not do what the query statement in my original posting does. i.e. @docid is not the same as /x[@docid='x']/@value. I need to be able to be able to pull one attribute based on the value of another in the same element.
- This bug has been marked as a duplicate of 2650 ***