Closed (fixed)
Project:
Feeds XPath Parser
Version:
6.x-1.9
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
5 Jun 2011 at 17:49 UTC
Updated:
7 Sep 2012 at 06:59 UTC
I have been working on theis for days now. My context is feed/entry/ and my xpath for the description is feed/entry/summary/div/dl/dd[2]
- <feed xmlns="http://www.w3.org/2005/Atom" xmlns:media="http://search.yahoo.com/mrss/">
<title>Mochi Games</title>
<subtitle>Free Games for Portals</subtitle>
<link href="http://www.mochimedia.com/feeds/games" rel="self" />
<icon>http://www.mochimedia.com/favicon.ico</icon>
- <author>
<email>team@mochimedia.com</email>
<name>Mochi Media, Inc.</name>
</author>
<id>urn:uuid:6b91fc41-ef25-4e91-ae40-f98a1e7b802a</id>
<updated>2011-06-05T14:17:03Z</updated>
- <entry>
<title>Roll It</title>
- <author>
<name>dreadfull_me</name>
<uri>https://www.mochimedia.com/community/profile/dreadfull_me</uri>
</author>
<link href="http://www.mochimedia.com/games/roll-it_v159406" rel="alternate" />
<link href="http://games.mochiads.com/c/g/roll-it_v159406/roll%20it.swf" rel="enclosure" type="application/x-shockwave-flash" />
<id>urn:uuid:54e3632d-5f83-36dc-a2ac-fd7a6f40fd57</id>
<media:player height="480" url="http://games.mochiads.com/c/g/roll-it_v159406/roll%20it.swf" width="640" />
<media:thumbnail height="100" url="http://games.mochiads.com/c/g/roll-it_v159406/_thumb_100x100.png" width="100" />
<media:title>Roll It</media:title>
<media:description>Roll the stone to the target. Easy to play physics game includes 15 variable levels.</media:description>
<media:keywords>box2d, en, physics, rolling</media:keywords>
<category term="Other" />
<updated>2011-06-04T17:28:31.684540-08:00</updated>
<published>2011-06-04T17:28:31.684540-08:00</published>
- <summary type="xhtml">
- <div xmlns="http://www.w3.org/1999/xhtml">
- <a href="http://www.mochimedia.com/games/roll-it_v159406">
<img class="thumbnail" src="http://games.mochiads.com/c/g/roll-it_v159406/_thumb_100x100.png" />
</a>
- <dl>
<dt>Tag</dt>
<dd class="tag">80328fc5cec7be5a</dd>
<dt>Description</dt>
<dd class="description">Roll the stone to the target. Easy to play physics game includes 15 variable levels.</dd>
<dt>Resolution</dt>
<dd class="resolution">640x480</dd>
<dt>Instructions</dt>
<dd class="instructions">Press left button on the playfield and move mouse to apply force to the stone. When you apply force, you loose your energy. Less energy - less maximum force you can apply.</dd>
<dt>Key Mappings</dt>
<dd class="key_mappings" />
<dt>Control Scheme</dt>
<dd class="control_scheme">{"fire": "na", "jump": "na", "movement": "mouse"}</dd>
<dt>Categories</dt>
<dd class="categories">Other</dd>
<dt>Keywords</dt>
<dd class="keywords">box2d, en, physics, rolling</dd>
<dt>Languages</dt>
<dd class="languages">en</dd>
<dt>Rating</dt>
<dd class="rating">Everyone</dd>
<dt>Leaderboards</dt>
<dd class="leaderboards">True</dd>
<dt>Embed</dt>
- <dd>
<code class="embed"><embed src="http://games.mochiads.com/c/g/roll-it_v159406/roll%20it.swf" menu="false" quality="high" width="640" height="480" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
Comments
Comment #1
llizards commentedContext is /feed/entry Sorry.
Comment #2
eneko1907 commentedThe way you describe your issue is a bit cryptic, you left us guessing what you expect. It seems that the "description" cck field (is it the Body of the node, using node processor?) is not getting the content you expect.
Where you expecting "Roll the stone to the target. Easy to play physics game includes 15 variable levels"?
I would use the debugger option to see the result of the Xpath. One of your first attempts would be to try this Xpath for your description field in the debugger "summary/div/dl/dd[2]", based on your context. Also, seeing the results of the other xpaths, and how where those formulated would help you (and whoever is out there reading this)
inigo
Comment #3
llizards commentedSorry about the vagueness, just so fustrated.... For some reason the summary/div/dl/dd[12] for example does not work... I finially figured it out this morning....
It would be
*[local-name()='summary' and namespace-uri()='http://www.w3.org/2005/Atom'][1]/*[local-name()='div' and namespace-uri()='http://www.w3.org/1999/xhtml'][1]/*[local-name()='dl' and namespace-uri()='http://www.w3.org/1999/xhtml'][1]/*[local-name()='dd' and namespace-uri()='http://www.w3.org/1999/xhtml'][12]/*[local-name()='code' and namespace-uri()='http://www.w3.org/1999/xhtml'][1]/text()[1]Comment #4
twistor commented