Closed (works as designed)
Project:
Feeds XPath Parser
Version:
6.x-1.x-dev
Component:
Documentation
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
1 May 2011 at 20:24 UTC
Updated:
7 Sep 2012 at 07:03 UTC
Say I have this
Node Field xpath query
title title
body $title
Shouldn't both title and body be the same? Right now the second field is still empty when I use the variable from the first field as input.
Comments
Comment #1
eaj commentedI just chased down the same problem. Since you're using the dev version, this ought to work for the value of the body field:
string("$title")
Not exactly intuitive to me, but then I'm not really that familiar with xpath either. Perhaps it's obvious to those in the know.
Comment #2
twistor commentedAs a clarification, $variable substitution, substitutes the value from another XPath query into another XPath query.
For instance:
To get the value of the albino attribute , you could do:
context: //entry
title: title
link: link/@$title
link would becom:
link: link/@kitten
This needs further documentation.
Comment #3
zazinteractive commentedSo you can't just use variables directly like I did in the original post?
Comment #4
twistor commentedYou can use them that way, but they won't be the same. The value that the XPath query "title" returns will be used as the XPath query for body.
Comment #5
twistor commented