Project

General

Profile

Actions

Bug #2769

closed

XPath Returnfields

Added by David Sledge over 17 years ago. Updated about 17 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.

Actions #1

Updated by Matt Jones over 17 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.

Actions #2

Updated by David Sledge about 17 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.

Actions #3

Updated by Redmine Admin over 11 years ago

Original Bugzilla ID was 2769

Actions

Also available in: Atom PDF