Project

General

Profile

Bug #2769

XPath Returnfields

Added by David Sledge over 13 years ago. Updated over 13 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
metacat
Target version:
Start date:
02/12/2007
Due date:
% Done:

0%

Estimated time:
Bugzilla-Id:
2769

Description

Metacat can't handle angle brackets in XPath parameters, if go to the following URL (which leads to the Kepler Repository):

http://library.kepler-project.org/kepler/metacat?action=query&operator=INTERSECT&anyfield=%25&qformat=&enableediting=false&returndoctype=entity&returndoctype=kepler://kepler-project.org/kepler-moml-1.0.0&returnfield=entity/@name

It works fine. (The response of this URL is XML, but you need to "View Page Source" to see it.) But if I try to retrieve the karID by appending:

&returnfield=entity/property[@name=karID]/@value

to the end of the URL, this return field gets ignored.

History

#1 Updated by Matt Jones over 13 years ago

We don't fully support XPath syntax. Maybe we need this feature as well, but its lower prioroty than other bugs and features.

#2 Updated by David Sledge over 13 years ago

XPath syntax has been extended to allow predicates with the following limitations:

  • if using a comparison, xpath expression must come before the equal sign and a string literal after (the predicate may contian an xpath expression by itself)
  • '=' is the only comparison supported.
  • no function calls in predicates
  • supports multiple predicates, but not nested predicates

If any more enhancements are needed so that metacat comes closer to supporting the full XPath syntax, switching to an XQuery database should be considered.

#3 Updated by Redmine Admin over 7 years ago

Original Bugzilla ID was 2769

Also available in: Atom PDF